From 6b79338ce363ae91d1bd28d64c040ca5b13169ad Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 18 Apr 2023 17:32:08 +0000 Subject: [PATCH] Regenerate client from commit 0c4beb36 of spec repo --- .apigentools-info | 8 +++---- .generator/schemas/v2/openapi.yaml | 4 ++-- ...og-based_metric_returns_OK_response.freeze | 2 +- ..._log-based_metric_returns_OK_response.yaml | 24 +++++++++++-------- ...an-based_metric_returns_OK_response.freeze | 2 +- ...span-based_metric_returns_OK_response.yaml | 20 +++++++--------- .../features/v2/logs_metrics.feature | 2 +- .../features/v2/spans_metrics.feature | 2 +- 8 files changed, 33 insertions(+), 31 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index de3799bcceb..51478a1ba62 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.4", - "regenerated": "2023-04-17 18:07:40.313240", - "spec_repo_commit": "25a92e6d" + "regenerated": "2023-04-18 17:30:46.348530", + "spec_repo_commit": "0c4beb36" }, "v2": { "apigentools_version": "1.6.4", - "regenerated": "2023-04-17 18:07:40.326034", - "spec_repo_commit": "25a92e6d" + "regenerated": "2023-04-18 17:30:46.360898", + "spec_repo_commit": "0c4beb36" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index f9461e78be2..2fc0f14e76a 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -14564,7 +14564,7 @@ paths: parameters: - $ref: '#/components/parameters/SpansMetricIDParameter' responses: - '200': + '204': description: OK '403': $ref: '#/components/responses/NotAuthorizedResponse' @@ -18090,7 +18090,7 @@ paths: parameters: - $ref: '#/components/parameters/MetricID' responses: - '200': + '204': description: OK '403': $ref: '#/components/responses/NotAuthorizedResponse' diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Logs_Metrics/Scenario_Delete_a_log-based_metric_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Logs_Metrics/Scenario_Delete_a_log-based_metric_returns_OK_response.freeze index b4493545e6e..abcb7a7d514 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Logs_Metrics/Scenario_Delete_a_log-based_metric_returns_OK_response.freeze +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Logs_Metrics/Scenario_Delete_a_log-based_metric_returns_OK_response.freeze @@ -1 +1 @@ -2022-05-12T09:52:23.762Z \ No newline at end of file +2023-04-18T17:27:11.097Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Logs_Metrics/Scenario_Delete_a_log-based_metric_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Logs_Metrics/Scenario_Delete_a_log-based_metric_returns_OK_response.yaml index 0d2c29abd41..69b3dd41f8d 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Logs_Metrics/Scenario_Delete_a_log-based_metric_returns_OK_response.yaml +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Logs_Metrics/Scenario_Delete_a_log-based_metric_returns_OK_response.yaml @@ -1,7 +1,7 @@ interactions: - request: body: | - {"data":{"attributes":{"compute":{"aggregation_type":"count"},"filter":{"query":"source:Test-Delete_a_log_based_metric_returns_OK_response-1652349143"}},"id":"Test-Delete_a_log_based_metric_returns_OK_response-1652349143","type":"logs_metrics"}} + {"data":{"attributes":{"compute":{"aggregation_type":"count"},"filter":{"query":"source:Test-Delete_a_log_based_metric_returns_OK_response-1681838831"}},"id":"Test-Delete_a_log_based_metric_returns_OK_response-1681838831","type":"logs_metrics"}} form: {} headers: Accept: @@ -11,7 +11,9 @@ interactions: method: POST url: https://api.datadoghq.com/api/v2/logs/config/metrics response: - body: '{"data":{"attributes":{"filter":{"query":"source:Test-Delete_a_log_based_metric_returns_OK_response-1652349143"},"group_by":[],"compute":{"aggregation_type":"count"}},"type":"logs_metrics","id":"Test_Delete_a_log_based_metric_returns_OK_response_1652349143"}}' + body: '{"data":{"id":"Test_Delete_a_log_based_metric_returns_OK_response_1681838831","attributes":{"filter":{"query":"source:Test-Delete_a_log_based_metric_returns_OK_response-1681838831"},"group_by":[],"compute":{"aggregation_type":"count"}},"type":"logs_metrics"}} + + ' code: 200 duration: '' headers: @@ -25,15 +27,15 @@ interactions: Accept: - '*/*' method: DELETE - url: https://api.datadoghq.com/api/v2/logs/config/metrics/Test_Delete_a_log_based_metric_returns_OK_response_1652349143 + url: https://api.datadoghq.com/api/v2/logs/config/metrics/Test_Delete_a_log_based_metric_returns_OK_response_1681838831 response: - body: '{}' - code: 200 + body: '' + code: 204 duration: '' headers: Content-Type: - - application/json - status: 200 OK + - text/html; charset=utf-8 + status: 204 No Content - request: body: '' form: {} @@ -41,10 +43,12 @@ interactions: Accept: - '*/*' method: DELETE - url: https://api.datadoghq.com/api/v2/logs/config/metrics/Test_Delete_a_log_based_metric_returns_OK_response_1652349143 + url: https://api.datadoghq.com/api/v2/logs/config/metrics/Test_Delete_a_log_based_metric_returns_OK_response_1681838831 response: - body: '{"errors":["not_found(Metric with name ''Test_Delete_a_log_based_metric_returns_OK_response_1652349143'' - not found)"]}' + body: '{"errors":["not_found(Metric with name ''Test_Delete_a_log_based_metric_returns_OK_response_1681838831'' + not found)"]} + + ' code: 404 duration: '' headers: diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Spans_Metrics/Scenario_Delete_a_span-based_metric_returns_OK_response.freeze b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Spans_Metrics/Scenario_Delete_a_span-based_metric_returns_OK_response.freeze index 34bf144f923..3923afecb48 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Spans_Metrics/Scenario_Delete_a_span-based_metric_returns_OK_response.freeze +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Spans_Metrics/Scenario_Delete_a_span-based_metric_returns_OK_response.freeze @@ -1 +1 @@ -2023-03-28T14:55:25.279Z \ No newline at end of file +2023-04-18T17:28:08.946Z \ No newline at end of file diff --git a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Spans_Metrics/Scenario_Delete_a_span-based_metric_returns_OK_response.yaml b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Spans_Metrics/Scenario_Delete_a_span-based_metric_returns_OK_response.yaml index 958dc3b4911..a1ee392ae15 100644 --- a/tests/scenarios/cassettes/TestScenarios/v2/Feature_Spans_Metrics/Scenario_Delete_a_span-based_metric_returns_OK_response.yaml +++ b/tests/scenarios/cassettes/TestScenarios/v2/Feature_Spans_Metrics/Scenario_Delete_a_span-based_metric_returns_OK_response.yaml @@ -1,7 +1,7 @@ interactions: - request: body: | - {"data":{"attributes":{"compute":{"aggregation_type":"distribution","include_percentiles":false,"path":"@duration"},"filter":{"query":"source:Test-Delete_a_span_based_metric_returns_OK_response-1680015325"},"group_by":[{"path":"resource_name","tag_name":"resource_name"}]},"id":"Test-Delete_a_span_based_metric_returns_OK_response-1680015325","type":"spans_metrics"}} + {"data":{"attributes":{"compute":{"aggregation_type":"distribution","include_percentiles":false,"path":"@duration"},"filter":{"query":"source:Test-Delete_a_span_based_metric_returns_OK_response-1681838888"},"group_by":[{"path":"resource_name","tag_name":"resource_name"}]},"id":"Test-Delete_a_span_based_metric_returns_OK_response-1681838888","type":"spans_metrics"}} form: {} headers: Accept: @@ -11,7 +11,7 @@ interactions: method: POST url: https://api.datadoghq.com/api/v2/apm/config/metrics response: - body: '{"data":{"id":"Test_Delete_a_span_based_metric_returns_OK_response_1680015325","attributes":{"filter":{"query":"source:Test-Delete_a_span_based_metric_returns_OK_response-1680015325"},"group_by":[{"path":"resource_name","tag_name":"resource_name"}],"compute":{"aggregation_type":"distribution","path":"@duration","include_percentiles":false}},"type":"spans_metrics"}} + body: '{"data":{"id":"Test_Delete_a_span_based_metric_returns_OK_response_1681838888","attributes":{"filter":{"query":"source:Test-Delete_a_span_based_metric_returns_OK_response-1681838888"},"group_by":[{"path":"resource_name","tag_name":"resource_name"}],"compute":{"aggregation_type":"distribution","path":"@duration","include_percentiles":false}},"type":"spans_metrics"}} ' code: 200 @@ -27,17 +27,15 @@ interactions: Accept: - '*/*' method: DELETE - url: https://api.datadoghq.com/api/v2/apm/config/metrics/Test_Delete_a_span_based_metric_returns_OK_response_1680015325 + url: https://api.datadoghq.com/api/v2/apm/config/metrics/Test_Delete_a_span_based_metric_returns_OK_response_1681838888 response: - body: '{} - - ' - code: 200 + body: '' + code: 204 duration: '' headers: Content-Type: - - application/json - status: 200 OK + - text/html; charset=utf-8 + status: 204 No Content - request: body: '' form: {} @@ -45,9 +43,9 @@ interactions: Accept: - '*/*' method: DELETE - url: https://api.datadoghq.com/api/v2/apm/config/metrics/Test_Delete_a_span_based_metric_returns_OK_response_1680015325 + url: https://api.datadoghq.com/api/v2/apm/config/metrics/Test_Delete_a_span_based_metric_returns_OK_response_1681838888 response: - body: '{"errors":["not_found(Metric with name ''Test_Delete_a_span_based_metric_returns_OK_response_1680015325'' + body: '{"errors":["not_found(Metric with name ''Test_Delete_a_span_based_metric_returns_OK_response_1681838888'' not found)"]} ' diff --git a/tests/scenarios/features/v2/logs_metrics.feature b/tests/scenarios/features/v2/logs_metrics.feature index 89654c34afb..c2488458bc4 100644 --- a/tests/scenarios/features/v2/logs_metrics.feature +++ b/tests/scenarios/features/v2/logs_metrics.feature @@ -47,7 +47,7 @@ Feature: Logs Metrics And new "DeleteLogsMetric" request And request contains "metric_id" parameter from "logs_metric.data.id" When the request is sent - Then the response status is 200 OK + Then the response status is 204 OK @generated @skip @team:DataDog/logs-backend Scenario: Get a log-based metric returns "Not Found" response diff --git a/tests/scenarios/features/v2/spans_metrics.feature b/tests/scenarios/features/v2/spans_metrics.feature index c0b2e96f349..ef3394efdeb 100644 --- a/tests/scenarios/features/v2/spans_metrics.feature +++ b/tests/scenarios/features/v2/spans_metrics.feature @@ -46,7 +46,7 @@ Feature: Spans Metrics And new "DeleteSpansMetric" request And request contains "metric_id" parameter from "spans_metric.data.id" When the request is sent - Then the response status is 200 OK + Then the response status is 204 OK @generated @skip @team:DataDog/apm Scenario: Get a span-based metric returns "Not Found" response