@@ -12,23 +12,23 @@ Feature: Observability Pipelines
1212 Scenario : Create a new pipeline returns "Bad Request" response
1313 Given operation "CreatePipeline" enabled
1414 And new "CreatePipeline" request
15- And body with value {"data" : {"attributes" : {"config" : {"destinations" : [{"id" : "datadog-logs-destination" , "inputs" : ["filter -processor" ], "type" : "datadog_logs" }], "processors" : [{"id" : "unknown-processor" , "include" : "service:my-service" , "inputs" : ["datadog-agent-source" ], "type" : "filter" }], "sources" : [{"id" : "datadog-agent-source" , "type" : "datadog_agent" }]}, "name" : "Main Observability Pipeline" }, "type" : "pipelines" }}
15+ And body with value {"data" : {"attributes" : {"config" : {"destinations" : [{"id" : "datadog-logs-destination" , "inputs" : ["my -processor-group " ], "type" : "datadog_logs" }], "processors" : [{"enabled" : true, " id" : "unknown-processor" , "include" : "service:my-service" , "inputs" : ["datadog-agent-source" ], "processors" : [{ "enabled" : true, "id" : "filter-processor" , "include" : "status:error" , " type" : "filter" }] }], "sources" : [{"id" : "datadog-agent-source" , "type" : "datadog_agent" }]}, "name" : "Main Observability Pipeline" }, "type" : "pipelines" }}
1616 When the request is sent
1717 Then the response status is 400 Bad Request
1818
1919 @generated @skip @team:DataDog/observability-pipelines
2020 Scenario : Create a new pipeline returns "Conflict" response
2121 Given operation "CreatePipeline" enabled
2222 And new "CreatePipeline" request
23- And body with value {"data" : {"attributes" : {"config" : {"destinations" : [{"id" : "datadog-logs-destination" , "inputs" : ["filter-processor" ], "type" : "datadog_logs" }], "processors" : [{"id" : "filter -processor" , "include" : "service:my-service" , "inputs" : ["datadog-agent-source" ], "type" : "filter" }], "sources" : [{"id" : "datadog-agent-source" , "type" : "datadog_agent" }]}, "name" : "Main Observability Pipeline" }, "type" : "pipelines" }}
23+ And body with value {"data" : {"attributes" : {"config" : {"destinations" : [{"id" : "datadog-logs-destination" , "inputs" : ["filter-processor" ], "type" : "datadog_logs" }], "processors" : [{"enabled" : true, " id" : "my -processor-group " , "include" : "service:my-service" , "inputs" : ["datadog-agent-source" ], "processors" : [{ "enabled" : true, "id" : "filter-processor" , "include" : "status:error" , " type" : "filter" }] }], "sources" : [{"id" : "datadog-agent-source" , "type" : "datadog_agent" }]}, "name" : "Main Observability Pipeline" }, "type" : "pipelines" }}
2424 When the request is sent
2525 Then the response status is 409 Conflict
2626
2727 @team:DataDog/observability-pipelines
2828 Scenario : Create a new pipeline returns "OK" response
2929 Given operation "CreatePipeline" enabled
3030 And new "CreatePipeline" request
31- And body with value {"data" : {"attributes" : {"config" : {"destinations" : [{"id" : "datadog-logs-destination" , "inputs" : ["filter -processor" ], "type" : "datadog_logs" }], "processors" : [{"id" : "filter -processor" , "include" : "service:my-service" , "inputs" : ["datadog-agent-source" ], "type" : "filter" }], "sources" : [{"id" : "datadog-agent-source" , "type" : "datadog_agent" }]}, "name" : "Main Observability Pipeline" }, "type" : "pipelines" }}
31+ And body with value {"data" : {"attributes" : {"config" : {"destinations" : [{"id" : "datadog-logs-destination" , "inputs" : ["my -processor-group " ], "type" : "datadog_logs" }], "processors" : [{"enabled" : true, " id" : "my -processor-group " , "include" : "service:my-service" , "inputs" : ["datadog-agent-source" ], "processors" : [{ "enabled" : true, "id" : "filter-processor" , "include" : "status:error" , " type" : "filter" }] }], "sources" : [{"id" : "datadog-agent-source" , "type" : "datadog_agent" }]}, "name" : "Main Observability Pipeline" }, "type" : "pipelines" }}
3232 When the request is sent
3333 Then the response status is 201 OK
3434 And the response "data" has field "id"
@@ -106,7 +106,7 @@ Feature: Observability Pipelines
106106 And new "UpdatePipeline" request
107107 And there is a valid "pipeline" in the system
108108 And request contains "pipeline_id" parameter from "pipeline.data.id"
109- And body with value {"data" : {"attributes" : {"config" : {"destinations" : [{"id" : "datadog-logs-destination" , "inputs" : ["filter -processor" ], "type" : "datadog_logs" }], "processors" : [{"id" : "unknown-processor" , "include" : "service:my-service" , "inputs" : ["datadog-agent-source" ], "type" : "filter" }], "sources" : [{"id" : "datadog-agent-source" , "type" : "datadog_agent" }]}, "name" : "Main Observability Pipeline" }, "id" : "3fa85f64-5717-4562-b3fc-2c963f66afa6" , "type" : "pipelines" }}
109+ And body with value {"data" : {"attributes" : {"config" : {"destinations" : [{"id" : "datadog-logs-destination" , "inputs" : ["my -processor-group " ], "type" : "datadog_logs" }], "processors" : [{"enabled" : true, " id" : "unknown-processor" , "include" : "service:my-service" , "inputs" : ["datadog-agent-source" ], "processors" : [{ "enabled" : true, "id" : "filter-processor" , "include" : "status:error" , " type" : "filter" }] }], "sources" : [{"id" : "datadog-agent-source" , "type" : "datadog_agent" }]}, "name" : "Main Observability Pipeline" }, "id" : "3fa85f64-5717-4562-b3fc-2c963f66afa6" , "type" : "pipelines" }}
110110 When the request is sent
111111 Then the response status is 400 Bad Request
112112
@@ -115,7 +115,7 @@ Feature: Observability Pipelines
115115 Given operation "UpdatePipeline" enabled
116116 And new "UpdatePipeline" request
117117 And request contains "pipeline_id" parameter from "REPLACE.ME"
118- And body with value {"data" : {"attributes" : {"config" : {"destinations" : [{"id" : "datadog-logs-destination" , "inputs" : ["filter-processor" ], "type" : "datadog_logs" }], "processors" : [{"id" : "filter -processor" , "include" : "service:my-service" , "inputs" : ["datadog-agent-source" ], "type" : "filter" }], "sources" : [{"id" : "datadog-agent-source" , "type" : "datadog_agent" }]}, "name" : "Main Observability Pipeline" }, "id" : "3fa85f64-5717-4562-b3fc-2c963f66afa6" , "type" : "pipelines" }}
118+ And body with value {"data" : {"attributes" : {"config" : {"destinations" : [{"id" : "datadog-logs-destination" , "inputs" : ["filter-processor" ], "type" : "datadog_logs" }], "processors" : [{"enabled" : true, " id" : "my -processor-group " , "include" : "service:my-service" , "inputs" : ["datadog-agent-source" ], "processors" : [{ "enabled" : true, "id" : "filter-processor" , "include" : "status:error" , " type" : "filter" }] }], "sources" : [{"id" : "datadog-agent-source" , "type" : "datadog_agent" }]}, "name" : "Main Observability Pipeline" }, "id" : "3fa85f64-5717-4562-b3fc-2c963f66afa6" , "type" : "pipelines" }}
119119 When the request is sent
120120 Then the response status is 409 Conflict
121121
@@ -124,7 +124,7 @@ Feature: Observability Pipelines
124124 Given operation "UpdatePipeline" enabled
125125 And new "UpdatePipeline" request
126126 And request contains "pipeline_id" parameter with value "3fa85f64-5717-4562-b3fc-2c963f66afa6"
127- And body with value {"data" : {"attributes" : {"config" : {"destinations" : [{"id" : "datadog-logs-destination" , "inputs" : ["filter -processor" ], "type" : "datadog_logs" }], "processors" : [{"id" : "filter -processor" , "include" : "service:my-service" , "inputs" : ["datadog-agent-source" ], "type" : "filter" }], "sources" : [{"id" : "datadog-agent-source" , "type" : "datadog_agent" }]}, "name" : "Main Observability Pipeline" }, "id" : "3fa85f64-5717-4562-b3fc-2c963f66afa6" , "type" : "pipelines" }}
127+ And body with value {"data" : {"attributes" : {"config" : {"destinations" : [{"id" : "datadog-logs-destination" , "inputs" : ["my -processor-group " ], "type" : "datadog_logs" }], "processors" : [{"enabled" : true, " id" : "my -processor-group " , "include" : "service:my-service" , "inputs" : ["datadog-agent-source" ], "processors" : [{ "enabled" : true, "id" : "filter-processor" , "include" : "status:error" , " type" : "filter" }] }], "sources" : [{"id" : "datadog-agent-source" , "type" : "datadog_agent" }]}, "name" : "Main Observability Pipeline" }, "id" : "3fa85f64-5717-4562-b3fc-2c963f66afa6" , "type" : "pipelines" }}
128128 When the request is sent
129129 Then the response status is 404 Not Found
130130
@@ -134,7 +134,7 @@ Feature: Observability Pipelines
134134 And there is a valid "pipeline" in the system
135135 And new "UpdatePipeline" request
136136 And request contains "pipeline_id" parameter from "pipeline.data.id"
137- And body with value {"data" : {"attributes" : {"config" : {"destinations" : [{"id" : "updated-datadog-logs-destination-id" , "inputs" : ["filter -processor" ], "type" : "datadog_logs" }], "processors" : [{"id" : "filter -processor" , "include" : "service:my-service" , "inputs" : ["datadog-agent-source" ], "type" : "filter" }], "sources" : [{"id" : "datadog-agent-source" , "type" : "datadog_agent" }]}, "name" : "Updated Pipeline Name" }, "id" : "3fa85f64-5717-4562-b3fc-2c963f66afa6" , "type" : "pipelines" }}
137+ And body with value {"data" : {"attributes" : {"config" : {"destinations" : [{"id" : "updated-datadog-logs-destination-id" , "inputs" : ["my -processor-group " ], "type" : "datadog_logs" }], "processors" : [{"enabled" : true, " id" : "my -processor-group " , "include" : "service:my-service" , "inputs" : ["datadog-agent-source" ], "processors" : [{ "enabled" : true, "id" : "filter-processor" , "include" : "status:error" , " type" : "filter" }] }], "sources" : [{"id" : "datadog-agent-source" , "type" : "datadog_agent" }]}, "name" : "Updated Pipeline Name" }, "id" : "3fa85f64-5717-4562-b3fc-2c963f66afa6" , "type" : "pipelines" }}
138138 When the request is sent
139139 Then the response status is 200 OK
140140 And the response "data" has field "id"
@@ -149,7 +149,7 @@ Feature: Observability Pipelines
149149 Scenario : Validate an observability pipeline returns "Bad Request" response
150150 Given operation "ValidatePipeline" enabled
151151 And new "ValidatePipeline" request
152- And body with value {"data" : {"attributes" : {"config" : {"destinations" : [{"id" : "datadog-logs-destination" , "inputs" : ["filter -processor" ], "type" : "datadog_logs" }], "processors" : [{"id" : "filter -processor" , "inputs" : ["datadog-agent-source" ], "type" : "filter" }], "sources" : [{"id" : "datadog-agent-source" , "type" : "datadog_agent" }]}, "name" : "Main Observability Pipeline" }, "type" : "pipelines" }}
152+ And body with value {"data" : {"attributes" : {"config" : {"destinations" : [{"id" : "datadog-logs-destination" , "inputs" : ["my -processor-group " ], "type" : "datadog_logs" }], "processors" : [{"enabled" : true, " id" : "my -processor-group " , "inputs" : ["datadog-agent-source" ], "processors" : [{ "enabled" : true, "id" : "filter-processor" , " type" : "filter" }] }], "sources" : [{"id" : "datadog-agent-source" , "type" : "datadog_agent" }]}, "name" : "Main Observability Pipeline" }, "type" : "pipelines" }}
153153 When the request is sent
154154 Then the response status is 400 Bad Request
155155 And the response "errors[0].title" is equal to "Field 'include' is required"
@@ -161,7 +161,7 @@ Feature: Observability Pipelines
161161 Scenario : Validate an observability pipeline returns "OK" response
162162 Given operation "ValidatePipeline" enabled
163163 And new "ValidatePipeline" request
164- And body with value {"data" : {"attributes" : {"config" : {"destinations" : [{"id" : "datadog-logs-destination" , "inputs" : ["filter -processor" ], "type" : "datadog_logs" }], "processors" : [{"id" : "filter -processor" , "include" : "service:my-service" , "inputs" : ["datadog-agent-source" ], "type" : "filter" }], "sources" : [{"id" : "datadog-agent-source" , "type" : "datadog_agent" }]}, "name" : "Main Observability Pipeline" }, "type" : "pipelines" }}
164+ And body with value {"data" : {"attributes" : {"config" : {"destinations" : [{"id" : "datadog-logs-destination" , "inputs" : ["my -processor-group " ], "type" : "datadog_logs" }], "processors" : [{"enabled" : true, " id" : "my -processor-group " , "include" : "service:my-service" , "inputs" : ["datadog-agent-source" ], "processors" : [{ "enabled" : true, "id" : "filter-processor" , "include" : "status:error" , " type" : "filter" }] }], "sources" : [{"id" : "datadog-agent-source" , "type" : "datadog_agent" }]}, "name" : "Main Observability Pipeline" }, "type" : "pipelines" }}
165165 When the request is sent
166166 Then the response status is 200 OK
167167 And the response "errors" has length 0
0 commit comments