@@ -10,14 +10,14 @@ Feature: Software Catalog
10
10
@generated @skip @team:DataDog/service-catalog
11
11
Scenario : Create or update entities returns "ACCEPTED" response
12
12
Given new "UpsertCatalogEntity" request
13
- And body with value {"apiVersion" : "v3" , "datadog" : {"codeLocations" : [{"paths" : []}], "events" : [{}], "logs" : [{}], "performanceData" : {"tags" : []}, "pipelines" : {"fingerprints" : []}}, "integrations" : {"opsgenie" : {"serviceURL" : "https://www.opsgenie.com/service/shopping-cart" }, "pagerduty" : {"serviceURL" : "https://www.pagerduty.com/service-directory/Pshopping-cart" }}, "kind" : "service" , "metadata" : {"additionalOwners" : [{"name" : "" }], "contacts" : [{"contact" : "https://slack/" , "type" : "slack" }], "id" : "4b163705-23c0-4573-b2fb-f6cea2163fcb" , "inheritFrom" : "application:default/myapp" , "links" : [{"name" : "mylink" , "type" : "link" , "url" : "https://mylink" }], "name" : "myService" , "namespace" : "default" , "tags" : ["this:tag" , "that:tag" ]}, "spec" : {"dependsOn" : [], "languages" : []}}
13
+ And body with value {"apiVersion" : "v3" , "datadog" : {"codeLocations" : [{"paths" : []}], "events" : [{}], "logs" : [{}], "performanceData" : {"tags" : []}, "pipelines" : {"fingerprints" : []}}, "integrations" : {"opsgenie" : {"serviceURL" : "https://www.opsgenie.com/service/shopping-cart" }, "pagerduty" : {"serviceURL" : "https://www.pagerduty.com/service-directory/Pshopping-cart" }}, "kind" : "service" , "metadata" : {"additionalOwners" : [{"name" : "" }], "contacts" : [{"contact" : "https://slack/" , "type" : "slack" }], "id" : "4b163705-23c0-4573-b2fb-f6cea2163fcb" , "inheritFrom" : "application:default/myapp" , "links" : [{"name" : "mylink" , "type" : "link" , "url" : "https://mylink" }], "name" : "myService" , "namespace" : "default" , "tags" : ["this:tag" , "that:tag" ]}, "spec" : {"componentOf" : [], " dependsOn" : [], "languages" : []}}
14
14
When the request is sent
15
15
Then the response status is 202 ACCEPTED
16
16
17
17
@generated @skip @team:DataDog/service-catalog
18
18
Scenario : Create or update entities returns "Bad Request" response
19
19
Given new "UpsertCatalogEntity" request
20
- And body with value {"apiVersion" : "v3" , "datadog" : {"codeLocations" : [{"paths" : []}], "events" : [{}], "logs" : [{}], "performanceData" : {"tags" : []}, "pipelines" : {"fingerprints" : []}}, "integrations" : {"opsgenie" : {"serviceURL" : "https://www.opsgenie.com/service/shopping-cart" }, "pagerduty" : {"serviceURL" : "https://www.pagerduty.com/service-directory/Pshopping-cart" }}, "kind" : "service" , "metadata" : {"additionalOwners" : [{"name" : "" }], "contacts" : [{"contact" : "https://slack/" , "type" : "slack" }], "id" : "4b163705-23c0-4573-b2fb-f6cea2163fcb" , "inheritFrom" : "application:default/myapp" , "links" : [{"name" : "mylink" , "type" : "link" , "url" : "https://mylink" }], "name" : "myService" , "namespace" : "default" , "tags" : ["this:tag" , "that:tag" ]}, "spec" : {"dependsOn" : [], "languages" : []}}
20
+ And body with value {"apiVersion" : "v3" , "datadog" : {"codeLocations" : [{"paths" : []}], "events" : [{}], "logs" : [{}], "performanceData" : {"tags" : []}, "pipelines" : {"fingerprints" : []}}, "integrations" : {"opsgenie" : {"serviceURL" : "https://www.opsgenie.com/service/shopping-cart" }, "pagerduty" : {"serviceURL" : "https://www.pagerduty.com/service-directory/Pshopping-cart" }}, "kind" : "service" , "metadata" : {"additionalOwners" : [{"name" : "" }], "contacts" : [{"contact" : "https://slack/" , "type" : "slack" }], "id" : "4b163705-23c0-4573-b2fb-f6cea2163fcb" , "inheritFrom" : "application:default/myapp" , "links" : [{"name" : "mylink" , "type" : "link" , "url" : "https://mylink" }], "name" : "myService" , "namespace" : "default" , "tags" : ["this:tag" , "that:tag" ]}, "spec" : {"componentOf" : [], " dependsOn" : [], "languages" : []}}
21
21
When the request is sent
22
22
Then the response status is 400 Bad Request
23
23
0 commit comments