You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/v2/cassettes/test_scenarios/test_create_or_update_service_definition_using_schema_v21_returns_created_response.yaml
Copy file name to clipboardExpand all lines: tests/v2/features/service_definition.feature
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -40,11 +40,11 @@ Feature: Service Definition
40
40
@team:DataDog/service-catalog
41
41
Scenario: Create or update service definition using schema v2-1 returns "CREATED" response
42
42
Given new "CreateOrUpdateServiceDefinitions" request
43
-
And body with value {"contacts":[{"contact":"[email protected]","name":"Team Email","type":"email"}],"dd-service":"service-{{ unique }}","extensions":{"myorgextension":"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"}},"links":[{"name":"Runbook","type":"runbook","url":"https://my-runbook"},{"name":"Source Code","type":"repo","provider":"GitHub","url":"https://github.com/DataDog/schema"},{"name":"Architecture","type":"doc","provider":"Gigoogle drivetHub","url":"https://my-runbook"}],"schema-version":"v2.1","tags":["my:tag","service:tag"],"team":"my-team"}
43
+
And body with value {"contacts":[{"contact":"[email protected]","name":"Team Email","type":"email"}],"dd-service":"service-{{ unique_lower_alnum }}","extensions":{"myorgextension":"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"}},"links":[{"name":"Runbook","type":"runbook","url":"https://my-runbook"},{"name":"Source Code","type":"repo","provider":"GitHub","url":"https://github.com/DataDog/schema"},{"name":"Architecture","type":"doc","provider":"Gigoogle drivetHub","url":"https://my-runbook"}],"schema-version":"v2.1","tags":["my:tag","service:tag"],"team":"my-team"}
44
44
When the request is sent
45
45
Then the response status is 200 CREATED
46
46
And the response "data[0].attributes.meta.ingested-schema-version" is equal to "v2.1"
47
-
And the response "data[0].attributes.schema.dd-service" is equal to "service-{{ unique_lower }}"
47
+
And the response "data[0].attributes.schema.dd-service" is equal to "service-{{ unique_lower_alnum }}"
48
48
49
49
@generated@skip@team:DataDog/service-catalog
50
50
Scenario: Delete a single service definition returns "Bad Request" response
0 commit comments