diff --git a/.generated-info b/.generated-info index 97f73416afa8..ecf00039e30e 100644 --- a/.generated-info +++ b/.generated-info @@ -1,4 +1,4 @@ { - "spec_repo_commit": "e22129c", - "generated": "2025-08-25 17:47:35.253" + "spec_repo_commit": "1e6c346", + "generated": "2025-08-25 18:45:37.801" } diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index e9385b0038fe..3705ce533ddd 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -49699,6 +49699,12 @@ paths: schema: $ref: '#/components/schemas/APIErrorResponse' description: Forbidden + '404': + content: + application/json: + schema: + $ref: '#/components/schemas/APIErrorResponse' + description: Not Found '429': $ref: '#/components/responses/TooManyRequestsResponse' security: @@ -49851,6 +49857,12 @@ paths: schema: $ref: '#/components/schemas/APIErrorResponse' description: Forbidden + '404': + content: + application/json: + schema: + $ref: '#/components/schemas/APIErrorResponse' + description: Not Found '429': $ref: '#/components/responses/TooManyRequestsResponse' security: diff --git a/cassettes/features/v2/cloud_cost_management/Update-Cloud-Cost-Management-AWS-CUR-config-returns-Not-Found-response.frozen b/cassettes/features/v2/cloud_cost_management/Update-Cloud-Cost-Management-AWS-CUR-config-returns-Not-Found-response.frozen new file mode 100644 index 000000000000..a2e736103dbd --- /dev/null +++ b/cassettes/features/v2/cloud_cost_management/Update-Cloud-Cost-Management-AWS-CUR-config-returns-Not-Found-response.frozen @@ -0,0 +1 @@ +2025-08-25T15:10:14.494Z \ No newline at end of file diff --git a/cassettes/features/v2/cloud_cost_management/Update-Cloud-Cost-Management-AWS-CUR-config-returns-Not-Found-response.yml b/cassettes/features/v2/cloud_cost_management/Update-Cloud-Cost-Management-AWS-CUR-config-returns-Not-Found-response.yml new file mode 100644 index 000000000000..aab5c15b8b30 --- /dev/null +++ b/cassettes/features/v2/cloud_cost_management/Update-Cloud-Cost-Management-AWS-CUR-config-returns-Not-Found-response.yml @@ -0,0 +1,25 @@ +http_interactions: +- recorded_at: Mon, 25 Aug 2025 15:10:14 GMT + request: + body: + encoding: UTF-8 + string: '{"data":{"attributes":{"is_enabled":true},"type":"aws_cur_config_patch_request"}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + method: PATCH + uri: https://api.datadoghq.com/api/v2/cost/aws_cur_config/12345678 + response: + body: + encoding: UTF-8 + string: '{"errors":[{"status":"404","title":"Cloud account not found","detail":"Cloud + account with ID 12345678 was not found"}]}' + headers: + Content-Type: + - application/vnd.api+json + status: + code: 404 + message: Not Found +recorded_with: VCR 6.0.0 diff --git a/cassettes/features/v2/cloud_cost_management/Update-Cloud-Cost-Management-Azure-config-returns-Not-Found-response.frozen b/cassettes/features/v2/cloud_cost_management/Update-Cloud-Cost-Management-Azure-config-returns-Not-Found-response.frozen new file mode 100644 index 000000000000..de3073eebf33 --- /dev/null +++ b/cassettes/features/v2/cloud_cost_management/Update-Cloud-Cost-Management-Azure-config-returns-Not-Found-response.frozen @@ -0,0 +1 @@ +2025-08-25T15:10:28.926Z \ No newline at end of file diff --git a/cassettes/features/v2/cloud_cost_management/Update-Cloud-Cost-Management-Azure-config-returns-Not-Found-response.yml b/cassettes/features/v2/cloud_cost_management/Update-Cloud-Cost-Management-Azure-config-returns-Not-Found-response.yml new file mode 100644 index 000000000000..b7122e65aa19 --- /dev/null +++ b/cassettes/features/v2/cloud_cost_management/Update-Cloud-Cost-Management-Azure-config-returns-Not-Found-response.yml @@ -0,0 +1,25 @@ +http_interactions: +- recorded_at: Mon, 25 Aug 2025 15:10:28 GMT + request: + body: + encoding: UTF-8 + string: '{"data":{"attributes":{"is_enabled":true},"type":"azure_uc_config_patch_request"}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + method: PATCH + uri: https://api.datadoghq.com/api/v2/cost/azure_uc_config/12345678 + response: + body: + encoding: UTF-8 + string: '{"errors":[{"status":"404","title":"Cloud account not found","detail":"Cloud + account with ID 12345678 was not found"}]}' + headers: + Content-Type: + - application/vnd.api+json + status: + code: 404 + message: Not Found +recorded_with: VCR 6.0.0 diff --git a/features/v2/cloud_cost_management.feature b/features/v2/cloud_cost_management.feature index 300d7094f799..eed19e63a9be 100644 --- a/features/v2/cloud_cost_management.feature +++ b/features/v2/cloud_cost_management.feature @@ -267,6 +267,14 @@ Feature: Cloud Cost Management When the request is sent Then the response status is 200 OK + @team:Datadog/cloud-cost-management + Scenario: Update Cloud Cost Management AWS CUR config returns "Not Found" response + Given new "UpdateCostAWSCURConfig" request + And request contains "cloud_account_id" parameter with value 12345678 + And body with value {"data": {"attributes": {"is_enabled": true}, "type": "aws_cur_config_patch_request"}} + When the request is sent + Then the response status is 404 Not Found + @replay-only @team:Datadog/cloud-cost-management Scenario: Update Cloud Cost Management AWS CUR config returns "OK" response Given new "UpdateCostAWSCURConfig" request @@ -284,6 +292,14 @@ Feature: Cloud Cost Management When the request is sent Then the response status is 400 Bad Request + @team:Datadog/cloud-cost-management + Scenario: Update Cloud Cost Management Azure config returns "Not Found" response + Given new "UpdateCostAzureUCConfigs" request + And request contains "cloud_account_id" parameter with value 12345678 + And body with value {"data": {"attributes": {"is_enabled": true}, "type": "azure_uc_config_patch_request"}} + When the request is sent + Then the response status is 404 Not Found + @replay-only @team:Datadog/cloud-cost-management Scenario: Update Cloud Cost Management Azure config returns "OK" response Given new "UpdateCostAzureUCConfigs" request