From 86971396b8fedeb7a3323d251a970820090e4906 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 14 Nov 2022 19:05:17 +0000 Subject: [PATCH] Regenerate client from commit aaa18608 of spec repo --- .apigentools-info | 8 +-- .generator/schemas/v2/openapi.yaml | 8 +-- .../model_service_definition_v2_opsgenie.go | 40 +++++++-------- .../CreateOrUpdateServiceDefinitions.go | 4 +- .../DeleteServiceDefinition.go | 2 +- .../GetServiceDefinition.go | 2 +- ...definition_returns_CREATED_response.freeze | 2 +- ...e_definition_returns_CREATED_response.yaml | 12 ++--- ...vice_definition_returns_OK_response.freeze | 2 +- ...ervice_definition_returns_OK_response.yaml | 44 ++-------------- ...vice_definition_returns_OK_response.freeze | 2 +- ...ervice_definition_returns_OK_response.yaml | 50 +++---------------- ...rvice_definitions_returns_OK_response.yaml | 8 +-- tests/scenarios/features/v2/given.json | 2 +- .../features/v2/service_definition.feature | 18 +++---- 15 files changed, 64 insertions(+), 140 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 9d8b8e81183..2e169948350 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.4", - "regenerated": "2022-11-09 16:22:58.929339", - "spec_repo_commit": "a896c6f6" + "regenerated": "2022-11-14 19:04:07.954261", + "spec_repo_commit": "aaa18608" }, "v2": { "apigentools_version": "1.6.4", - "regenerated": "2022-11-09 16:22:58.941427", - "spec_repo_commit": "a896c6f6" + "regenerated": "2022-11-14 19:04:07.967183", + "spec_repo_commit": "aaa18608" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index e9d590c56c8..288fcd69332 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -9701,12 +9701,12 @@ components: properties: region: $ref: '#/components/schemas/ServiceDefinitionV2OpsgenieRegion' - service-id: - description: Opsgenie service id. - example: 123e4567-e89b-12d3-a456-426614174000 + service-url: + description: Opsgenie service url. + example: https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000 type: string required: - - service-id + - service-url type: object ServiceDefinitionV2OpsgenieRegion: description: Opsgenie instance region. diff --git a/api/datadogV2/model_service_definition_v2_opsgenie.go b/api/datadogV2/model_service_definition_v2_opsgenie.go index eb2e6c7dcbb..83026c4411c 100644 --- a/api/datadogV2/model_service_definition_v2_opsgenie.go +++ b/api/datadogV2/model_service_definition_v2_opsgenie.go @@ -13,8 +13,8 @@ import ( type ServiceDefinitionV2Opsgenie struct { // Opsgenie instance region. Region *ServiceDefinitionV2OpsgenieRegion `json:"region,omitempty"` - // Opsgenie service id. - ServiceId string `json:"service-id"` + // Opsgenie service url. + ServiceUrl string `json:"service-url"` // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct UnparsedObject map[string]interface{} `json:"-"` AdditionalProperties map[string]interface{} @@ -24,9 +24,9 @@ type ServiceDefinitionV2Opsgenie struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed. -func NewServiceDefinitionV2Opsgenie(serviceId string) *ServiceDefinitionV2Opsgenie { +func NewServiceDefinitionV2Opsgenie(serviceUrl string) *ServiceDefinitionV2Opsgenie { this := ServiceDefinitionV2Opsgenie{} - this.ServiceId = serviceId + this.ServiceUrl = serviceUrl return &this } @@ -66,27 +66,27 @@ func (o *ServiceDefinitionV2Opsgenie) SetRegion(v ServiceDefinitionV2OpsgenieReg o.Region = &v } -// GetServiceId returns the ServiceId field value. -func (o *ServiceDefinitionV2Opsgenie) GetServiceId() string { +// GetServiceUrl returns the ServiceUrl field value. +func (o *ServiceDefinitionV2Opsgenie) GetServiceUrl() string { if o == nil { var ret string return ret } - return o.ServiceId + return o.ServiceUrl } -// GetServiceIdOk returns a tuple with the ServiceId field value +// GetServiceUrlOk returns a tuple with the ServiceUrl field value // and a boolean to check if the value has been set. -func (o *ServiceDefinitionV2Opsgenie) GetServiceIdOk() (*string, bool) { +func (o *ServiceDefinitionV2Opsgenie) GetServiceUrlOk() (*string, bool) { if o == nil { return nil, false } - return &o.ServiceId, true + return &o.ServiceUrl, true } -// SetServiceId sets field value. -func (o *ServiceDefinitionV2Opsgenie) SetServiceId(v string) { - o.ServiceId = v +// SetServiceUrl sets field value. +func (o *ServiceDefinitionV2Opsgenie) SetServiceUrl(v string) { + o.ServiceUrl = v } // MarshalJSON serializes the struct using spec logic. @@ -98,7 +98,7 @@ func (o ServiceDefinitionV2Opsgenie) MarshalJSON() ([]byte, error) { if o.Region != nil { toSerialize["region"] = o.Region } - toSerialize["service-id"] = o.ServiceId + toSerialize["service-url"] = o.ServiceUrl for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -110,18 +110,18 @@ func (o ServiceDefinitionV2Opsgenie) MarshalJSON() ([]byte, error) { func (o *ServiceDefinitionV2Opsgenie) UnmarshalJSON(bytes []byte) (err error) { raw := map[string]interface{}{} required := struct { - ServiceId *string `json:"service-id"` + ServiceUrl *string `json:"service-url"` }{} all := struct { - Region *ServiceDefinitionV2OpsgenieRegion `json:"region,omitempty"` - ServiceId string `json:"service-id"` + Region *ServiceDefinitionV2OpsgenieRegion `json:"region,omitempty"` + ServiceUrl string `json:"service-url"` }{} err = json.Unmarshal(bytes, &required) if err != nil { return err } - if required.ServiceId == nil { - return fmt.Errorf("required field service-id missing") + if required.ServiceUrl == nil { + return fmt.Errorf("required field service-url missing") } err = json.Unmarshal(bytes, &all) if err != nil { @@ -141,6 +141,6 @@ func (o *ServiceDefinitionV2Opsgenie) UnmarshalJSON(bytes []byte) (err error) { return nil } o.Region = all.Region - o.ServiceId = all.ServiceId + o.ServiceUrl = all.ServiceUrl return nil } diff --git a/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.go b/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.go index c1266d5d8a0..3347280029d 100644 --- a/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.go +++ b/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.go @@ -37,8 +37,8 @@ func main() { }, Integrations: &datadogV2.ServiceDefinitionV2Integrations{ Opsgenie: &datadogV2.ServiceDefinitionV2Opsgenie{ - Region: datadogV2.SERVICEDEFINITIONV2OPSGENIEREGION_US.Ptr(), - ServiceId: "123e4567-e89b-12d3-a456-426614174000", + Region: datadogV2.SERVICEDEFINITIONV2OPSGENIEREGION_US.Ptr(), + ServiceUrl: "https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000", }, Pagerduty: datadog.PtrString("https://my-org.pagerduty.com/service-directory/PMyService"), }, diff --git a/examples/v2/service-definition/DeleteServiceDefinition.go b/examples/v2/service-definition/DeleteServiceDefinition.go index 968219471fd..eca6b725081 100644 --- a/examples/v2/service-definition/DeleteServiceDefinition.go +++ b/examples/v2/service-definition/DeleteServiceDefinition.go @@ -16,7 +16,7 @@ func main() { configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewServiceDefinitionApi(apiClient) - r, err := api.DeleteServiceDefinition(ctx, "service-Example-Delete_a_single_service_definition_returns_OK_response") + r, err := api.DeleteServiceDefinition(ctx, "service-definition-test") if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ServiceDefinitionApi.DeleteServiceDefinition`: %v\n", err) diff --git a/examples/v2/service-definition/GetServiceDefinition.go b/examples/v2/service-definition/GetServiceDefinition.go index d95e2111273..e400343c0a2 100644 --- a/examples/v2/service-definition/GetServiceDefinition.go +++ b/examples/v2/service-definition/GetServiceDefinition.go @@ -17,7 +17,7 @@ func main() { configuration := datadog.NewConfiguration() apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewServiceDefinitionApi(apiClient) - resp, r, err := api.GetServiceDefinition(ctx, "service-Example-Get_a_single_service_definition_returns_OK_response") + resp, r, err := api.GetServiceDefinition(ctx, "service-definition-test") if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ServiceDefinitionApi.GetServiceDefinition`: %v\n", err) diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Create_or_update_service_definition_returns_CREATED_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Create_or_update_service_definition_returns_CREATED_response.freeze index 73a4725426b..be705da1fc7 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Create_or_update_service_definition_returns_CREATED_response.freeze +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Create_or_update_service_definition_returns_CREATED_response.freeze @@ -1 +1 @@ -2022-10-11T16:11:15.904Z \ No newline at end of file +2022-11-10T21:14:44.544Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Create_or_update_service_definition_returns_CREATED_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Create_or_update_service_definition_returns_CREATED_response.yaml index 97c75cda9ce..f716129029b 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Create_or_update_service_definition_returns_CREATED_response.yaml +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Create_or_update_service_definition_returns_CREATED_response.yaml @@ -1,7 +1,7 @@ interactions: - request: body: | - {"contacts":[{"contact":"contact@datadoghq.com","name":"Team Email","type":"email"}],"dd-service":"service-Test-Create_or_update_service_definition_returns_CREATED_response-1665504675","dd-team":"my-team","docs":[{"name":"Architecture","provider":"google drive","url":"https://gdrive/mydoc"}],"extensions":{"myorgextension":"extensionvalue"},"integrations":{"opsgenie":{"region":"US","service-id":"123e4567-e89b-12d3-a456-426614174000"},"pagerduty":"https://my-org.pagerduty.com/service-directory/PMyService"},"links":[{"name":"Runbook","type":"runbook","url":"https://my-runbook"}],"repos":[{"name":"Source Code","provider":"GitHub","url":"https://github.com/DataDog/schema"}],"schema-version":"v2","tags":["my:tag","service:tag"],"team":"my-team"} + {"contacts":[{"contact":"contact@datadoghq.com","name":"Team Email","type":"email"}],"dd-service":"service-Test-Create_or_update_service_definition_returns_CREATED_response-1668114884","dd-team":"my-team","docs":[{"name":"Architecture","provider":"google drive","url":"https://gdrive/mydoc"}],"extensions":{"myorgextension":"extensionvalue"},"integrations":{"opsgenie":{"region":"US","service-url":"https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000"},"pagerduty":"https://my-org.pagerduty.com/service-directory/PMyService"},"links":[{"name":"Runbook","type":"runbook","url":"https://my-runbook"}],"repos":[{"name":"Source Code","provider":"GitHub","url":"https://github.com/DataDog/schema"}],"schema-version":"v2","tags":["my:tag","service:tag"],"team":"my-team"} form: {} headers: Accept: @@ -11,10 +11,10 @@ interactions: method: POST url: https://api.datadoghq.com/api/v2/services/definitions response: - body: '{"data":[{"attributes":{"meta":{"ingested-schema-version":"v2","ingestion-source":"api","last-modified-time":"2022-10-11T16:11:16.302119241Z","github-html-url":"","warnings":[]},"schema":{"links":[{"url":"https://my-runbook","type":"runbook","name":"Runbook"}],"contacts":[{"contact":"contact@datadoghq.com","type":"email","name":"Team - Email"}],"docs":[{"url":"https://gdrive/mydoc","name":"Architecture","provider":"google - drive"}],"repos":[{"url":"https://github.com/DataDog/schema","name":"Source - Code","provider":"GitHub"}],"tags":["my:tag","service:tag"],"dd-team":"my-team","integrations":{"opsgenie":{"region":"US","service-id":"123e4567-e89b-12d3-a456-426614174000"},"pagerduty":"https://my-org.pagerduty.com/service-directory/PMyService"},"schema-version":"v2","team":"my-team","extensions":{},"dd-service":"service-test-create_or_update_service_definition_returns_created_response-1665504675"}},"type":"service-definition"}]} + body: '{"data":[{"type":"service-definition","attributes":{"meta":{"last-modified-time":"2022-11-10T21:14:45.52228008Z","github-html-url":"","ingestion-source":"api","warnings":[],"ingested-schema-version":"v2"},"schema":{"schema-version":"v2","dd-service":"service-test-create_or_update_service_definition_returns_created_response-1668114884","dd-team":"my-team","team":"my-team","contacts":[{"name":"Team + Email","type":"email","contact":"contact@datadoghq.com"}],"links":[{"name":"Runbook","type":"runbook","url":"https://my-runbook"}],"repos":[{"name":"Source + Code","provider":"GitHub","url":"https://github.com/DataDog/schema"}],"docs":[{"name":"Architecture","provider":"google + drive","url":"https://gdrive/mydoc"}],"tags":["my:tag","service:tag"],"integrations":{"pagerduty":"https://my-org.pagerduty.com/service-directory/PMyService","opsgenie":{"service-url":"https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000","region":"US"}},"extensions":{"myorgextension":"extensionvalue"}}}}]} ' code: 200 @@ -30,7 +30,7 @@ interactions: Accept: - '*/*' method: DELETE - url: https://api.datadoghq.com/api/v2/services/definitions/service-test-create_or_update_service_definition_returns_created_response-1665504675 + url: https://api.datadoghq.com/api/v2/services/definitions/service-test-create_or_update_service_definition_returns_created_response-1668114884 response: body: '{"errors":["Not Found"],"error_details":[{}]} diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Delete_a_single_service_definition_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Delete_a_single_service_definition_returns_OK_response.freeze index 7c200fe8888..a7789885ac5 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Delete_a_single_service_definition_returns_OK_response.freeze +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Delete_a_single_service_definition_returns_OK_response.freeze @@ -1 +1 @@ -2022-10-10T12:48:37.381Z \ No newline at end of file +2022-11-14T18:19:52.943Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Delete_a_single_service_definition_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Delete_a_single_service_definition_returns_OK_response.yaml index d1614f83a4d..9a1d6fc6428 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Delete_a_single_service_definition_returns_OK_response.yaml +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Delete_a_single_service_definition_returns_OK_response.yaml @@ -1,26 +1,4 @@ interactions: -- request: - body: | - {"dd-service":"service-Test-Delete_a_single_service_definition_returns_OK_response-1665406117","dd-team":"my-team","docs":[{"name":"Architecture","provider":"google drive","url":"https://gdrive/mygivedoc"}],"extensions":{"frogextension":"extensionfrogvalue"},"integrations":{"opsgenie":{"region":"US","service-id":"123e4567-e89b-12d3-a456-426614174000"},"pagerduty":"https://my-org.pagerduty.com/service-directory/PMyService"},"links":[{"name":"Runbook","type":"runbook","url":"https://my-runbook"}],"repos":[{"name":"Source Code","provider":"GitHub","url":"https://github.com/DataDog/given"}],"schema-version":"v2","tags":["this:tag","service:tag"],"team":"super-team"} - form: {} - headers: - Accept: - - application/json - Content-Type: - - application/json - method: POST - url: https://api.datadoghq.com/api/v2/services/definitions - response: - body: '{"data":[{"attributes":{"meta":{"ingested-schema-version":"v2","ingestion-source":"api","last-modified-time":"2022-10-10T12:48:37.797458518Z","github-html-url":"","warnings":[]},"schema":{"links":[{"url":"https://my-runbook","type":"runbook","name":"Runbook"}],"contacts":[],"docs":[{"url":"https://gdrive/mygivedoc","name":"Architecture","provider":"google - drive"}],"repos":[{"url":"https://github.com/DataDog/given","name":"Source Code","provider":"GitHub"}],"tags":["service:tag","this:tag"],"dd-team":"my-team","integrations":{"opsgenie":{"region":"US","service-id":"123e4567-e89b-12d3-a456-426614174000"},"pagerduty":"https://my-org.pagerduty.com/service-directory/PMyService"},"schema-version":"v2","team":"super-team","extensions":{},"dd-service":"service-test-delete_a_single_service_definition_returns_ok_response-1665406117"}},"type":"service-definition"}]} - - ' - code: 200 - duration: '' - headers: - Content-Type: - - application/json - status: 200 OK - request: body: '' form: {} @@ -28,29 +6,13 @@ interactions: Accept: - '*/*' method: DELETE - url: https://api.datadoghq.com/api/v2/services/definitions/service-Test-Delete_a_single_service_definition_returns_OK_response-1665406117 + url: https://api.datadoghq.com/api/v2/services/definitions/service-definition-test response: body: '' code: 204 duration: '' - headers: {} - status: 204 No Content -- request: - body: '' - form: {} - headers: - Accept: - - '*/*' - method: DELETE - url: https://api.datadoghq.com/api/v2/services/definitions/service-test-delete_a_single_service_definition_returns_ok_response-1665406117 - response: - body: '{"errors":["Not Found"],"error_details":[{}]} - - ' - code: 404 - duration: '' headers: Content-Type: - - application/json - status: 404 Not Found + - text/html; charset=utf-8 + status: 204 No Content version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Get_a_single_service_definition_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Get_a_single_service_definition_returns_OK_response.freeze index ebe71cdc853..a64523565fc 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Get_a_single_service_definition_returns_OK_response.freeze +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Get_a_single_service_definition_returns_OK_response.freeze @@ -1 +1 @@ -2022-10-10T12:33:59.012Z \ No newline at end of file +2022-11-14T18:09:34.511Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Get_a_single_service_definition_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Get_a_single_service_definition_returns_OK_response.yaml index ec03ca9091b..6c2fb1a6a2b 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Get_a_single_service_definition_returns_OK_response.yaml +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Get_a_single_service_definition_returns_OK_response.yaml @@ -1,26 +1,4 @@ interactions: -- request: - body: | - {"dd-service":"service-Test-Get_a_single_service_definition_returns_OK_response-1665405239","dd-team":"my-team","docs":[{"name":"Architecture","provider":"google drive","url":"https://gdrive/mygivedoc"}],"extensions":{"frogextension":"extensionfrogvalue"},"integrations":{"opsgenie":{"region":"US","service-id":"123e4567-e89b-12d3-a456-426614174000"},"pagerduty":"https://my-org.pagerduty.com/service-directory/PMyService"},"links":[{"name":"Runbook","type":"runbook","url":"https://my-runbook"}],"repos":[{"name":"Source Code","provider":"GitHub","url":"https://github.com/DataDog/given"}],"schema-version":"v2","tags":["this:tag","service:tag"],"team":"super-team"} - form: {} - headers: - Accept: - - application/json - Content-Type: - - application/json - method: POST - url: https://api.datadoghq.com/api/v2/services/definitions - response: - body: '{"data":[{"attributes":{"meta":{"ingested-schema-version":"v2","ingestion-source":"api","last-modified-time":"2022-10-10T12:33:59.412229035Z","github-html-url":"","warnings":[]},"schema":{"links":[{"url":"https://my-runbook","type":"runbook","name":"Runbook"}],"contacts":[],"docs":[{"url":"https://gdrive/mygivedoc","name":"Architecture","provider":"google - drive"}],"repos":[{"url":"https://github.com/DataDog/given","name":"Source Code","provider":"GitHub"}],"tags":["service:tag","this:tag"],"dd-team":"my-team","integrations":{"opsgenie":{"region":"US","service-id":"123e4567-e89b-12d3-a456-426614174000"},"pagerduty":"https://my-org.pagerduty.com/service-directory/PMyService"},"schema-version":"v2","team":"super-team","extensions":{},"dd-service":"service-test-get_a_single_service_definition_returns_ok_response-1665405239"}},"type":"service-definition"}]} - - ' - code: 200 - duration: '' - headers: - Content-Type: - - application/json - status: 200 OK - request: body: '' form: {} @@ -28,32 +6,18 @@ interactions: Accept: - application/json method: GET - url: https://api.datadoghq.com/api/v2/services/definitions/service-Test-Get_a_single_service_definition_returns_OK_response-1665405239 - response: - body: '{"data":{"attributes":{"meta":{"ingested-schema-version":"v2","ingestion-source":"api","last-modified-time":"2022-10-10T12:24:16Z","github-html-url":"","warnings":[]},"schema":{"links":[{"url":"https://my-runbook","type":"runbook","name":"Runbook"}],"contacts":[],"docs":[{"url":"https://gdrive/mygivedoc","name":"Architecture","provider":"google - drive"}],"repos":[{"url":"https://github.com/DataDog/given","name":"Source Code","provider":"GitHub"}],"tags":["service:tag","this:tag"],"dd-team":"my-team","integrations":{"opsgenie":{"region":"US","service-id":"123e4567-e89b-12d3-a456-426614174000"},"pagerduty":"https://my-org.pagerduty.com/service-directory/PMyService"},"schema-version":"v2","team":"super-team","extensions":{},"dd-service":"service-test-get_a_single_service_definition_returns_ok_response-1665405239"}},"type":"service-definition","id":"d6822c235d26b96b47ded1a3eecba6c1"}}' - code: 200 - duration: '' - headers: - Content-Type: - - application/json - status: 200 Not Found -- request: - body: '' - form: {} - headers: - Accept: - - '*/*' - method: DELETE - url: https://api.datadoghq.com/api/v2/services/definitions/service-test-get_a_single_service_definition_returns_ok_response-1665405239 + url: https://api.datadoghq.com/api/v2/services/definitions/service-definition-test response: - body: '{"errors":["Not Found"],"error_details":[{}]} + body: '{"data":{"type":"service-definition","id":"77ae46b484fcfd92dc568170b1c534fe","attributes":{"meta":{"last-modified-time":"2022-11-14T18:03:35Z","github-html-url":"","ingestion-source":"api","warnings":[],"ingested-schema-version":"v2"},"schema":{"schema-version":"v2","dd-service":"service-definition-test","dd-team":"my-team","team":"super-team","contacts":[{"name":"Team + Email","type":"email","contact":"contact@datadoghq.com"}],"links":[{"name":"Runbook","type":"runbook","url":"https://my-runbook"}],"repos":[{"name":"Source + Code","provider":"GitHub","url":"https://github.com/DataDog/schema"}],"docs":[{"name":"Architecture","provider":"google + drive","url":"https://gdrive/mydoc"}],"tags":["service:tag","my:tag"],"integrations":{"pagerduty":"https://my-org.pagerduty.com/service-directory/PMyService","opsgenie":{"service-url":"https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000","region":"US"}},"extensions":{"myorgextension":"extensionvalue"}}}}} ' - code: 404 + code: 200 duration: '' headers: Content-Type: - application/json - status: 404 Not Found + status: 200 OK version: 1 diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Get_all_service_definitions_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Get_all_service_definitions_returns_OK_response.yaml index 7beab075560..2834a12dd30 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Get_all_service_definitions_returns_OK_response.yaml +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Service_Definition/Scenario_Get_all_service_definitions_returns_OK_response.yaml @@ -33,7 +33,7 @@ interactions: service Wiki","provider":"wiki"}],"repos":[{"url":"http://github/shopping-cart","name":"shopping-cart source code","provider":"github"}],"tags":["cost-center:engineering","business-unit:retail"],"dd-team":"e-commerce","integrations":{"pagerduty":"https://www.pagerduty.com/service-directory/Pshopping-cart"},"schema-version":"v2","team":"E Commerce","extensions":{"datadoghq.com/shopping-cart":{"customField":"customValue"}},"dd-service":"tf-testaccdatadogservicedefinition_basic-local-1665189327"}},"type":"service-definition","id":"11c76361fe9a02282257f8281c3a7e84"},{"attributes":{"meta":{"ingested-schema-version":"v2","ingestion-source":"api","last-modified-time":"2022-10-10T12:48:37Z","github-html-url":"","warnings":[]},"schema":{"links":[{"url":"https://my-runbook","type":"runbook","name":"Runbook"}],"contacts":[],"docs":[{"url":"https://gdrive/mygivedoc","name":"Architecture","provider":"google - drive"}],"repos":[{"url":"https://github.com/DataDog/given","name":"Source Code","provider":"GitHub"}],"tags":["this:tag","service:tag"],"dd-team":"my-team","integrations":{"opsgenie":{"region":"US","service-id":"123e4567-e89b-12d3-a456-426614174000"},"pagerduty":"https://my-org.pagerduty.com/service-directory/PMyService"},"schema-version":"v2","team":"super-team","extensions":{},"dd-service":"service-test-delete_a_single_service_definition_returns_ok_response-1665406117"}},"type":"service-definition","id":"142c3ef445627d2db24dc2efe071feaf"},{"attributes":{"meta":{"ingested-schema-version":"v2","ingestion-source":"api","last-modified-time":"2022-09-17T00:37:54Z","github-html-url":"","warnings":[]},"schema":{"links":[{"url":"https://runbook/shopping-cart","type":"runbook","name":"shopping-cart + drive"}],"repos":[{"url":"https://github.com/DataDog/given","name":"Source Code","provider":"GitHub"}],"tags":["this:tag","service:tag"],"dd-team":"my-team","integrations":{"opsgenie":{"region":"US","service-url":"https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000"},"pagerduty":"https://my-org.pagerduty.com/service-directory/PMyService"},"schema-version":"v2","team":"super-team","extensions":{},"dd-service":"service-test-delete_a_single_service_definition_returns_ok_response-1665406117"}},"type":"service-definition","id":"142c3ef445627d2db24dc2efe071feaf"},{"attributes":{"meta":{"ingested-schema-version":"v2","ingestion-source":"api","last-modified-time":"2022-09-17T00:37:54Z","github-html-url":"","warnings":[]},"schema":{"links":[{"url":"https://runbook/shopping-cart","type":"runbook","name":"shopping-cart runbook"}],"contacts":[{"contact":"https://www.slack.com/archives/shopping-cart","type":"slack","name":"Support Slack"},{"contact":"team@shopping.com","type":"email","name":"Support Email"}],"docs":[{"url":"https://google.drive/shopping-cart-architecture","name":"shopping-cart architecture","provider":"gdoc"},{"url":"https://wiki/shopping-cart","name":"shopping-cart @@ -82,7 +82,7 @@ interactions: service Wiki","provider":"wiki"}],"repos":[{"url":"http://github/shopping-cart","name":"shopping-cart source code","provider":"github"}],"tags":["business-unit:retail","cost-center:engineering"],"dd-team":"e-commerce","integrations":{"pagerduty":"https://www.pagerduty.com/service-directory/Pshopping-cart"},"schema-version":"v2","team":"E Commerce","extensions":{"datadoghq.com/shopping-cart":{"customField":"customValue"}},"dd-service":"tf-testaccdatadogservicedefinition_basic-local-1663503431"}},"type":"service-definition","id":"37636efa41bc8106beb35ccb2048e67d"},{"attributes":{"meta":{"ingested-schema-version":"v2","ingestion-source":"api","last-modified-time":"2022-10-10T12:33:59Z","github-html-url":"","warnings":[]},"schema":{"links":[{"url":"https://my-runbook","type":"runbook","name":"Runbook"}],"contacts":[],"docs":[{"url":"https://gdrive/mygivedoc","name":"Architecture","provider":"google - drive"}],"repos":[{"url":"https://github.com/DataDog/given","name":"Source Code","provider":"GitHub"}],"tags":["service:tag","this:tag"],"dd-team":"my-team","integrations":{"opsgenie":{"region":"US","service-id":"123e4567-e89b-12d3-a456-426614174000"},"pagerduty":"https://my-org.pagerduty.com/service-directory/PMyService"},"schema-version":"v2","team":"super-team","extensions":{},"dd-service":"service-test-get_a_single_service_definition_returns_ok_response-1665405239"}},"type":"service-definition","id":"3f712fd0846e734cf273d8bf10aba358"},{"attributes":{"meta":{"ingested-schema-version":"v2","ingestion-source":"api","last-modified-time":"2022-10-04T12:23:57Z","github-html-url":"","warnings":[]},"schema":{"links":[{"url":"https://runbook/shopping-cart","type":"runbook","name":"shopping-cart + drive"}],"repos":[{"url":"https://github.com/DataDog/given","name":"Source Code","provider":"GitHub"}],"tags":["service:tag","this:tag"],"dd-team":"my-team","integrations":{"opsgenie":{"region":"US","service-url":"https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000"},"pagerduty":"https://my-org.pagerduty.com/service-directory/PMyService"},"schema-version":"v2","team":"super-team","extensions":{},"dd-service":"service-test-get_a_single_service_definition_returns_ok_response-1665405239"}},"type":"service-definition","id":"3f712fd0846e734cf273d8bf10aba358"},{"attributes":{"meta":{"ingested-schema-version":"v2","ingestion-source":"api","last-modified-time":"2022-10-04T12:23:57Z","github-html-url":"","warnings":[]},"schema":{"links":[{"url":"https://runbook/shopping-cart","type":"runbook","name":"shopping-cart runbook"}],"contacts":[{"contact":"https://www.slack.com/archives/shopping-cart","type":"slack","name":"Support Slack"},{"contact":"team@shopping.com","type":"email","name":"Support Email"}],"docs":[{"url":"https://google.drive/shopping-cart-architecture","name":"shopping-cart architecture","provider":"gdoc"},{"url":"https://wiki/shopping-cart","name":"shopping-cart @@ -197,7 +197,7 @@ interactions: service Wiki","provider":"wiki"}],"repos":[{"url":"http://github/shopping-cart","name":"shopping-cart source code","provider":"github"}],"tags":["cost-center:engineering","business-unit:retail"],"dd-team":"e-commerce","integrations":{"pagerduty":"https://www.pagerduty.com/service-directory/Pshopping-cart"},"schema-version":"v2","team":"E Commerce","extensions":{"datadoghq.com/shopping-cart":{"customField":"customValue"}},"dd-service":"tf-testaccdatadogservicedefinition_basic-local-1663417258"}},"type":"service-definition","id":"866a88946ed335a8f3de72a9617fa39d"},{"attributes":{"meta":{"ingested-schema-version":"v2","ingestion-source":"api","last-modified-time":"2022-10-10T10:29:06Z","github-html-url":"","warnings":[]},"schema":{"links":[{"url":"https://my-runbook","type":"runbook","name":"Runbook"}],"contacts":[],"docs":[{"url":"https://gdrive/mygivedoc","name":"Architecture","provider":"google - drive"}],"repos":[{"url":"https://github.com/DataDog/given","name":"Source Code","provider":"GitHub"}],"tags":["this:tag","service:tag"],"dd-team":"my-team","integrations":{"opsgenie":{"region":"US","service-id":"123e4567-e89b-12d3-a456-426614174000"},"pagerduty":"https://my-org.pagerduty.com/service-directory/PMyService"},"schema-version":"v2","team":"super-team","extensions":{},"dd-service":"service-test-get_a_single_service_definition_returns_ok_response-1665397746"}},"type":"service-definition","id":"8b2110b5ac6ad3b8ced03af62700f96a"},{"attributes":{"meta":{"ingested-schema-version":"v2","ingestion-source":"api","last-modified-time":"2022-09-20T12:31:41Z","github-html-url":"","warnings":[]},"schema":{"links":[{"url":"https://runbook/shopping-cart","type":"runbook","name":"shopping-cart + drive"}],"repos":[{"url":"https://github.com/DataDog/given","name":"Source Code","provider":"GitHub"}],"tags":["this:tag","service:tag"],"dd-team":"my-team","integrations":{"opsgenie":{"region":"US","service-url":"https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000"},"pagerduty":"https://my-org.pagerduty.com/service-directory/PMyService"},"schema-version":"v2","team":"super-team","extensions":{},"dd-service":"service-test-get_a_single_service_definition_returns_ok_response-1665397746"}},"type":"service-definition","id":"8b2110b5ac6ad3b8ced03af62700f96a"},{"attributes":{"meta":{"ingested-schema-version":"v2","ingestion-source":"api","last-modified-time":"2022-09-20T12:31:41Z","github-html-url":"","warnings":[]},"schema":{"links":[{"url":"https://runbook/shopping-cart","type":"runbook","name":"shopping-cart runbook"}],"contacts":[{"contact":"https://www.slack.com/archives/shopping-cart","type":"slack","name":"Support Slack"},{"contact":"team@shopping.com","type":"email","name":"Support Email"}],"docs":[{"url":"https://google.drive/shopping-cart-architecture","name":"shopping-cart architecture","provider":"gdoc"},{"url":"https://wiki/shopping-cart","name":"shopping-cart @@ -294,7 +294,7 @@ interactions: service Wiki","provider":"wiki"}],"repos":[{"url":"http://github/shopping-cart","name":"shopping-cart source code","provider":"github"}],"tags":["cost-center:engineering","business-unit:retail"],"dd-team":"e-commerce","integrations":{"pagerduty":"https://www.pagerduty.com/service-directory/Pshopping-cart"},"schema-version":"v2","team":"E Commerce","extensions":{"datadoghq.com/shopping-cart":{"customField":"customValue"}},"dd-service":"tf-testaccdatadogservicedefinition_basic-local-1665318281"}},"type":"service-definition","id":"d4d04320f1daf9db2e3ff75de377edaa"},{"attributes":{"meta":{"ingested-schema-version":"v2","ingestion-source":"api","last-modified-time":"2022-10-10T12:24:16Z","github-html-url":"","warnings":[]},"schema":{"links":[{"url":"https://my-runbook","type":"runbook","name":"Runbook"}],"contacts":[],"docs":[{"url":"https://gdrive/mygivedoc","name":"Architecture","provider":"google - drive"}],"repos":[{"url":"https://github.com/DataDog/given","name":"Source Code","provider":"GitHub"}],"tags":["this:tag","service:tag"],"dd-team":"my-team","integrations":{"opsgenie":{"region":"US","service-id":"123e4567-e89b-12d3-a456-426614174000"},"pagerduty":"https://my-org.pagerduty.com/service-directory/PMyService"},"schema-version":"v2","team":"super-team","extensions":{},"dd-service":"service-test-get_a_single_service_definition_returns_ok_response-1665404656"}},"type":"service-definition","id":"d6822c235d26b96b47ded1a3eecba6c1"},{"attributes":{"meta":{"ingested-schema-version":"v2","ingestion-source":"api","last-modified-time":"2022-10-06T12:23:44Z","github-html-url":"","warnings":[]},"schema":{"links":[{"url":"https://runbook/shopping-cart","type":"runbook","name":"shopping-cart + drive"}],"repos":[{"url":"https://github.com/DataDog/given","name":"Source Code","provider":"GitHub"}],"tags":["this:tag","service:tag"],"dd-team":"my-team","integrations":{"opsgenie":{"region":"US","service-url":"https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000"},"pagerduty":"https://my-org.pagerduty.com/service-directory/PMyService"},"schema-version":"v2","team":"super-team","extensions":{},"dd-service":"service-test-get_a_single_service_definition_returns_ok_response-1665404656"}},"type":"service-definition","id":"d6822c235d26b96b47ded1a3eecba6c1"},{"attributes":{"meta":{"ingested-schema-version":"v2","ingestion-source":"api","last-modified-time":"2022-10-06T12:23:44Z","github-html-url":"","warnings":[]},"schema":{"links":[{"url":"https://runbook/shopping-cart","type":"runbook","name":"shopping-cart runbook"}],"contacts":[{"contact":"https://www.slack.com/archives/shopping-cart","type":"slack","name":"Support Slack"},{"contact":"team@shopping.com","type":"email","name":"Support Email"}],"docs":[{"url":"https://google.drive/shopping-cart-architecture","name":"shopping-cart architecture","provider":"gdoc"},{"url":"https://wiki/shopping-cart","name":"shopping-cart diff --git a/tests/scenarios/features/v2/given.json b/tests/scenarios/features/v2/given.json index 105688da2e1..70b0c4b646f 100644 --- a/tests/scenarios/features/v2/given.json +++ b/tests/scenarios/features/v2/given.json @@ -302,7 +302,7 @@ "parameters": [ { "name": "body", - "value": "{\n \"dd-service\": \"service-{{ unique}}\",\n \"dd-team\": \"my-team\",\n \"docs\": [{\"name\": \"Architecture\",\n \"provider\": \"google drive\",\n \"url\": \"https://gdrive/mygivedoc\"}],\n \"extensions\": {\"frogextension\": \"extensionfrogvalue\"},\n \"integrations\": {\"opsgenie\": {\"region\": \"US\",\n \"service-id\": \"123e4567-e89b-12d3-a456-426614174000\"},\n \"pagerduty\": \"https://my-org.pagerduty.com/service-directory/PMyService\"},\n \"links\": [{\"name\": \"Runbook\", \"type\": \"runbook\", \"url\": \"https://my-runbook\"}],\n \"repos\": [{\"name\": \"Source Code\",\n \"provider\": \"GitHub\",\n \"url\": \"https://github.com/DataDog/given\"}],\n \"schema-version\": \"v2\",\n \"tags\": [\"this:tag\", \"service:tag\"],\n \"team\": \"super-team\"\n}" + "value": "{\n \"dd-service\": \"service-{{ unique}}\",\n \"dd-team\": \"my-team\",\n \"docs\": [{\"name\": \"Architecture\",\n \"provider\": \"google drive\",\n \"url\": \"https://gdrive/mygivedoc\"}],\n \"extensions\": {\"frogextension\": \"extensionfrogvalue\"},\n \"integrations\": {\"opsgenie\": {\"region\": \"US\",\n \"service-url\": \"https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000\"},\n \"pagerduty\": \"https://my-org.pagerduty.com/service-directory/PMyService\"},\n \"links\": [{\"name\": \"Runbook\", \"type\": \"runbook\", \"url\": \"https://my-runbook\"}],\n \"repos\": [{\"name\": \"Source Code\",\n \"provider\": \"GitHub\",\n \"url\": \"https://github.com/DataDog/given\"}],\n \"schema-version\": \"v2\",\n \"tags\": [\"this:tag\", \"service:tag\"],\n \"team\": \"super-team\"\n}" } ], "step": "there is a valid \"service_definition\" in the system", diff --git a/tests/scenarios/features/v2/service_definition.feature b/tests/scenarios/features/v2/service_definition.feature index ce38544c400..0074c10cc3d 100644 --- a/tests/scenarios/features/v2/service_definition.feature +++ b/tests/scenarios/features/v2/service_definition.feature @@ -10,14 +10,14 @@ Feature: Service Definition @generated @skip @team:DataDog/apm-insights Scenario: Create or update service definition returns "Bad Request" response Given new "CreateOrUpdateServiceDefinitions" request - And body with value {"contacts": [{"contact": "contact@datadoghq.com", "name": "Team Email", "type": "email"}], "dd-service": "my-service", "dd-team": "my-team", "docs": [{"name": "Architecture", "provider": "google drive", "url": "https://gdrive/mydoc"}], "extensions": {"myorg/extension": "extensionValue"}, "integrations": {"opsgenie": {"region": "US", "service-id": "123e4567-e89b-12d3-a456-426614174000"}, "pagerduty": "https://my-org.pagerduty.com/service-directory/PMyService"}, "links": [{"name": "Runbook", "type": "runbook", "url": "https://my-runbook"}], "repos": [{"name": "Source Code", "provider": "GitHub", "url": "https://github.com/DataDog/schema"}], "schema-version": "v2", "tags": ["my:tag", "service:tag"], "team": "my-team"} + And body with value {"contacts": [{"contact": "contact@datadoghq.com", "name": "Team Email", "type": "email"}], "dd-service": "my-service", "dd-team": "my-team", "docs": [{"name": "Architecture", "provider": "google drive", "url": "https://gdrive/mydoc"}], "extensions": {"myorg/extension": "extensionValue"}, "integrations": {"opsgenie": {"region": "US", "service-url": "https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000"}, "pagerduty": "https://my-org.pagerduty.com/service-directory/PMyService"}, "links": [{"name": "Runbook", "type": "runbook", "url": "https://my-runbook"}], "repos": [{"name": "Source Code", "provider": "GitHub", "url": "https://github.com/DataDog/schema"}], "schema-version": "v2", "tags": ["my:tag", "service:tag"], "team": "my-team"} When the request is sent Then the response status is 400 Bad Request @team:DataDog/apm-insights Scenario: Create or update service definition returns "CREATED" response Given new "CreateOrUpdateServiceDefinitions" request - And body with value {"contacts": [{"contact": "contact@datadoghq.com", "name": "Team Email", "type": "email"}], "dd-service": "service-{{ unique }}", "dd-team": "my-team", "docs": [{"name": "Architecture", "provider": "google drive", "url": "https://gdrive/mydoc"}], "extensions": {"myorgextension": "extensionvalue"}, "integrations": {"opsgenie": {"region": "US", "service-id": "123e4567-e89b-12d3-a456-426614174000"}, "pagerduty": "https://my-org.pagerduty.com/service-directory/PMyService"}, "links": [{"name": "Runbook", "type": "runbook", "url": "https://my-runbook"}], "repos": [{"name": "Source Code", "provider": "GitHub", "url": "https://github.com/DataDog/schema"}], "schema-version": "v2", "tags": ["my:tag", "service:tag"], "team": "my-team"} + And body with value {"contacts": [{"contact": "contact@datadoghq.com", "name": "Team Email", "type": "email"}], "dd-service": "service-{{ unique }}", "dd-team": "my-team", "docs": [{"name": "Architecture", "provider": "google drive", "url": "https://gdrive/mydoc"}], "extensions": {"myorgextension": "extensionvalue"}, "integrations": {"opsgenie": {"region": "US", "service-url": "https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000"}, "pagerduty": "https://my-org.pagerduty.com/service-directory/PMyService"}, "links": [{"name": "Runbook", "type": "runbook", "url": "https://my-runbook"}], "repos": [{"name": "Source Code", "provider": "GitHub", "url": "https://github.com/DataDog/schema"}], "schema-version": "v2", "tags": ["my:tag", "service:tag"], "team": "my-team"} When the request is sent Then the response status is 200 CREATED And the response "data[0].attributes.meta.ingested-schema-version" is equal to "v2" @@ -25,7 +25,7 @@ Feature: Service Definition @generated @skip @team:DataDog/apm-insights Scenario: Create or update service definition returns "Conflict" response Given new "CreateOrUpdateServiceDefinitions" request - And body with value {"contacts": [{"contact": "contact@datadoghq.com", "name": "Team Email", "type": "email"}], "dd-service": "my-service", "dd-team": "my-team", "docs": [{"name": "Architecture", "provider": "google drive", "url": "https://gdrive/mydoc"}], "extensions": {"myorg/extension": "extensionValue"}, "integrations": {"opsgenie": {"region": "US", "service-id": "123e4567-e89b-12d3-a456-426614174000"}, "pagerduty": "https://my-org.pagerduty.com/service-directory/PMyService"}, "links": [{"name": "Runbook", "type": "runbook", "url": "https://my-runbook"}], "repos": [{"name": "Source Code", "provider": "GitHub", "url": "https://github.com/DataDog/schema"}], "schema-version": "v2", "tags": ["my:tag", "service:tag"], "team": "my-team"} + And body with value {"contacts": [{"contact": "contact@datadoghq.com", "name": "Team Email", "type": "email"}], "dd-service": "my-service", "dd-team": "my-team", "docs": [{"name": "Architecture", "provider": "google drive", "url": "https://gdrive/mydoc"}], "extensions": {"myorg/extension": "extensionValue"}, "integrations": {"opsgenie": {"region": "US", "service-url": "https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000"}, "pagerduty": "https://my-org.pagerduty.com/service-directory/PMyService"}, "links": [{"name": "Runbook", "type": "runbook", "url": "https://my-runbook"}], "repos": [{"name": "Source Code", "provider": "GitHub", "url": "https://github.com/DataDog/schema"}], "schema-version": "v2", "tags": ["my:tag", "service:tag"], "team": "my-team"} When the request is sent Then the response status is 409 Conflict @@ -46,9 +46,8 @@ Feature: Service Definition @replay-only @team:DataDog/apm-insights Scenario: Delete a single service definition returns "OK" response - Given there is a valid "service_definition" in the system - And new "DeleteServiceDefinition" request - And request contains "service_name" parameter with value "service-{{ unique }}" + Given new "DeleteServiceDefinition" request + And request contains "service_name" parameter with value "service-definition-test" When the request is sent Then the response status is 204 OK @@ -74,11 +73,10 @@ Feature: Service Definition Then the response status is 404 Not Found And the response "errors[0]" is equal to "Not Found" - @replay-only @team:DataDog/apm-insights + @team:DataDog/apm-insights Scenario: Get a single service definition returns "OK" response - Given there is a valid "service_definition" in the system - And new "GetServiceDefinition" request - And request contains "service_name" parameter with value "service-{{ unique }}" + Given new "GetServiceDefinition" request + And request contains "service_name" parameter with value "service-definition-test" When the request is sent Then the response status is 200 OK And the response "data.attributes.meta.ingested-schema-version" is equal to "v2"