Skip to content

Add docs for 404 not found error in cost-onboarding-api #2668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .generated-info
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"spec_repo_commit": "c38287b",
"generated": "2025-08-15 18:55:02.903"
"spec_repo_commit": "5fd0df2",
"generated": "2025-08-15 20:10:42.477"
}
12 changes: 12 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49517,6 +49517,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:
Expand Down Expand Up @@ -49669,6 +49675,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:
Expand Down
16 changes: 16 additions & 0 deletions features/v2/cloud_cost_management.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1707,7 +1707,11 @@ export class CloudCostManagementApiResponseProcessor {
) as AwsCURConfigsResponse;
return body;
}
if (response.httpStatusCode === 403 || response.httpStatusCode === 429) {
if (
response.httpStatusCode === 403 ||
response.httpStatusCode === 404 ||
response.httpStatusCode === 429
) {
const bodyText = ObjectSerializer.parse(
await response.body.text(),
contentType
Expand Down Expand Up @@ -1768,6 +1772,7 @@ export class CloudCostManagementApiResponseProcessor {
if (
response.httpStatusCode === 400 ||
response.httpStatusCode === 403 ||
response.httpStatusCode === 404 ||
response.httpStatusCode === 429
) {
const bodyText = ObjectSerializer.parse(
Expand Down
Loading