@@ -10,21 +10,21 @@ Feature: Service Definition
10
10
@generated @skip @team:DataDog/service-catalog
11
11
Scenario : Create or update service definition returns "Bad Request" response
12
12
Given new "CreateOrUpdateServiceDefinitions" request
13
- And body with value {"application" : "my-app" , "contacts" : [{"contact" : "https://teams.microsoft.com/myteam" , "name" : "My team channel" , "type" : "slack" }], "dd-service" : "my-service" , "description" : "My service description" , "extensions" : {"myorg/extension" : "extensionValue" }, "integrations" : {"opsgenie" : {"region" : "US" , "service-url" : "https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000" }, "pagerduty" : {"service-url" : "https://my-org.pagerduty.com/service-directory/PMyService" }}, "languages" : ["dotnet" , "go" , "java" , "js" , "php" , "python" , "ruby" , "c++" ], "lifecycle" : "sandbox" , "links" : [{"name" : "Runbook" , "provider" : "Github" , "type" : "runbook" , "url" : "https://my-runbook" }], "schema-version" : "v2.2" , "tags" : ["my:tag" , "service:tag" ], "team" : "my-team" , "tier" : "High" , "type" : "web" }
13
+ And body with value {"application" : "my-app" , "ci-pipeline-fingerprints" : [ "j88xdEy0J5lc" , "eZ7LMljCk8vo" ], " contacts" : [{"contact" : "https://teams.microsoft.com/myteam" , "name" : "My team channel" , "type" : "slack" }], "dd-service" : "my-service" , "description" : "My service description" , "extensions" : {"myorg/extension" : "extensionValue" }, "integrations" : {"opsgenie" : {"region" : "US" , "service-url" : "https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000" }, "pagerduty" : {"service-url" : "https://my-org.pagerduty.com/service-directory/PMyService" }}, "languages" : ["dotnet" , "go" , "java" , "js" , "php" , "python" , "ruby" , "c++" ], "lifecycle" : "sandbox" , "links" : [{"name" : "Runbook" , "provider" : "Github" , "type" : "runbook" , "url" : "https://my-runbook" }], "schema-version" : "v2.2" , "tags" : ["my:tag" , "service:tag" ], "team" : "my-team" , "tier" : "High" , "type" : "web" }
14
14
When the request is sent
15
15
Then the response status is 400 Bad Request
16
16
17
17
@generated @skip @team:DataDog/service-catalog
18
18
Scenario : Create or update service definition returns "CREATED" response
19
19
Given new "CreateOrUpdateServiceDefinitions" request
20
- And body with value {"application" : "my-app" , "contacts" : [{"contact" : "https://teams.microsoft.com/myteam" , "name" : "My team channel" , "type" : "slack" }], "dd-service" : "my-service" , "description" : "My service description" , "extensions" : {"myorg/extension" : "extensionValue" }, "integrations" : {"opsgenie" : {"region" : "US" , "service-url" : "https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000" }, "pagerduty" : {"service-url" : "https://my-org.pagerduty.com/service-directory/PMyService" }}, "languages" : ["dotnet" , "go" , "java" , "js" , "php" , "python" , "ruby" , "c++" ], "lifecycle" : "sandbox" , "links" : [{"name" : "Runbook" , "provider" : "Github" , "type" : "runbook" , "url" : "https://my-runbook" }], "schema-version" : "v2.2" , "tags" : ["my:tag" , "service:tag" ], "team" : "my-team" , "tier" : "High" , "type" : "web" }
20
+ And body with value {"application" : "my-app" , "ci-pipeline-fingerprints" : [ "j88xdEy0J5lc" , "eZ7LMljCk8vo" ], " contacts" : [{"contact" : "https://teams.microsoft.com/myteam" , "name" : "My team channel" , "type" : "slack" }], "dd-service" : "my-service" , "description" : "My service description" , "extensions" : {"myorg/extension" : "extensionValue" }, "integrations" : {"opsgenie" : {"region" : "US" , "service-url" : "https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000" }, "pagerduty" : {"service-url" : "https://my-org.pagerduty.com/service-directory/PMyService" }}, "languages" : ["dotnet" , "go" , "java" , "js" , "php" , "python" , "ruby" , "c++" ], "lifecycle" : "sandbox" , "links" : [{"name" : "Runbook" , "provider" : "Github" , "type" : "runbook" , "url" : "https://my-runbook" }], "schema-version" : "v2.2" , "tags" : ["my:tag" , "service:tag" ], "team" : "my-team" , "tier" : "High" , "type" : "web" }
21
21
When the request is sent
22
22
Then the response status is 200 CREATED
23
23
24
24
@generated @skip @team:DataDog/service-catalog
25
25
Scenario : Create or update service definition returns "Conflict" response
26
26
Given new "CreateOrUpdateServiceDefinitions" request
27
- And body with value {"application" : "my-app" , "contacts" : [{"contact" : "https://teams.microsoft.com/myteam" , "name" : "My team channel" , "type" : "slack" }], "dd-service" : "my-service" , "description" : "My service description" , "extensions" : {"myorg/extension" : "extensionValue" }, "integrations" : {"opsgenie" : {"region" : "US" , "service-url" : "https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000" }, "pagerduty" : {"service-url" : "https://my-org.pagerduty.com/service-directory/PMyService" }}, "languages" : ["dotnet" , "go" , "java" , "js" , "php" , "python" , "ruby" , "c++" ], "lifecycle" : "sandbox" , "links" : [{"name" : "Runbook" , "provider" : "Github" , "type" : "runbook" , "url" : "https://my-runbook" }], "schema-version" : "v2.2" , "tags" : ["my:tag" , "service:tag" ], "team" : "my-team" , "tier" : "High" , "type" : "web" }
27
+ And body with value {"application" : "my-app" , "ci-pipeline-fingerprints" : [ "j88xdEy0J5lc" , "eZ7LMljCk8vo" ], " contacts" : [{"contact" : "https://teams.microsoft.com/myteam" , "name" : "My team channel" , "type" : "slack" }], "dd-service" : "my-service" , "description" : "My service description" , "extensions" : {"myorg/extension" : "extensionValue" }, "integrations" : {"opsgenie" : {"region" : "US" , "service-url" : "https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000" }, "pagerduty" : {"service-url" : "https://my-org.pagerduty.com/service-directory/PMyService" }}, "languages" : ["dotnet" , "go" , "java" , "js" , "php" , "python" , "ruby" , "c++" ], "lifecycle" : "sandbox" , "links" : [{"name" : "Runbook" , "provider" : "Github" , "type" : "runbook" , "url" : "https://my-runbook" }], "schema-version" : "v2.2" , "tags" : ["my:tag" , "service:tag" ], "team" : "my-team" , "tier" : "High" , "type" : "web" }
28
28
When the request is sent
29
29
Then the response status is 409 Conflict
30
30
0 commit comments