From 48d278566bb7cac31061ba083e3b7531df80aa52 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 6 Jul 2026 21:05:59 +0000 Subject: [PATCH] Regenerate client from commit 19796bd of spec repo --- ...t_invalid_pagination_token_response.frozen | 1 + ...st_invalid_pagination_token_response.yaml} | 7 ++- ...ed_with_the_provided_token_response.frozen | 1 - ...t_invalid_pagination_token_response.frozen | 1 + ...st_invalid_pagination_token_response.yaml} | 6 +- ..._not_found_asset_not_found_response.frozen | 1 - ...t_invalid_pagination_token_response.frozen | 1 + ...st_invalid_pagination_token_response.yaml} | 6 +- ...ed_with_the_provided_token_response.frozen | 1 - ...t_invalid_pagination_token_response.frozen | 1 + ...st_invalid_pagination_token_response.yaml} | 6 +- ...ed_with_the_provided_token_response.frozen | 1 - tests/v2/features/security_monitoring.feature | 55 +++++++++++++------ 13 files changed, 55 insertions(+), 33 deletions(-) create mode 100644 tests/v2/cassettes/test_scenarios/test_list_assets_sboms_returns_bad_request_invalid_pagination_token_response.frozen rename tests/v2/cassettes/test_scenarios/{test_list_assets_sboms_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.yaml => test_list_assets_sboms_returns_bad_request_invalid_pagination_token_response.yaml} (64%) delete mode 100644 tests/v2/cassettes/test_scenarios/test_list_assets_sboms_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.frozen create mode 100644 tests/v2/cassettes/test_scenarios/test_list_scanned_assets_metadata_returns_bad_request_invalid_pagination_token_response.frozen rename tests/v2/cassettes/test_scenarios/{test_list_scanned_assets_metadata_returns_not_found_asset_not_found_response.yaml => test_list_scanned_assets_metadata_returns_bad_request_invalid_pagination_token_response.yaml} (76%) delete mode 100644 tests/v2/cassettes/test_scenarios/test_list_scanned_assets_metadata_returns_not_found_asset_not_found_response.frozen create mode 100644 tests/v2/cassettes/test_scenarios/test_list_vulnerabilities_returns_bad_request_invalid_pagination_token_response.frozen rename tests/v2/cassettes/test_scenarios/{test_list_vulnerabilities_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.yaml => test_list_vulnerabilities_returns_bad_request_invalid_pagination_token_response.yaml} (76%) delete mode 100644 tests/v2/cassettes/test_scenarios/test_list_vulnerabilities_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.frozen create mode 100644 tests/v2/cassettes/test_scenarios/test_list_vulnerable_assets_returns_bad_request_invalid_pagination_token_response.frozen rename tests/v2/cassettes/test_scenarios/{test_list_vulnerable_assets_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.yaml => test_list_vulnerable_assets_returns_bad_request_invalid_pagination_token_response.yaml} (76%) delete mode 100644 tests/v2/cassettes/test_scenarios/test_list_vulnerable_assets_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.frozen diff --git a/tests/v2/cassettes/test_scenarios/test_list_assets_sboms_returns_bad_request_invalid_pagination_token_response.frozen b/tests/v2/cassettes/test_scenarios/test_list_assets_sboms_returns_bad_request_invalid_pagination_token_response.frozen new file mode 100644 index 0000000000..70b6759f51 --- /dev/null +++ b/tests/v2/cassettes/test_scenarios/test_list_assets_sboms_returns_bad_request_invalid_pagination_token_response.frozen @@ -0,0 +1 @@ +2026-07-06T19:25:16.964Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_list_assets_sboms_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.yaml b/tests/v2/cassettes/test_scenarios/test_list_assets_sboms_returns_bad_request_invalid_pagination_token_response.yaml similarity index 64% rename from tests/v2/cassettes/test_scenarios/test_list_assets_sboms_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.yaml rename to tests/v2/cassettes/test_scenarios/test_list_assets_sboms_returns_bad_request_invalid_pagination_token_response.yaml index c5924e886a..a5cbc1c20a 100644 --- a/tests/v2/cassettes/test_scenarios/test_list_assets_sboms_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_list_assets_sboms_returns_bad_request_invalid_pagination_token_response.yaml @@ -8,11 +8,12 @@ interactions: uri: https://api.datadoghq.com/api/v2/security/sboms?page%5Btoken%5D=unknown&page%5Bnumber%5D=1 response: body: - string: '{"errors":[{"status":"404","title":"Unexpected internal error"}]}' + string: '{"errors":[{"status":"400","title":"Bad request: asset_type","detail":"asset_type + filter is required"}]}' headers: content-type: - application/vnd.api+json status: - code: 404 - message: Not Found + code: 400 + message: Bad Request version: 1 diff --git a/tests/v2/cassettes/test_scenarios/test_list_assets_sboms_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.frozen b/tests/v2/cassettes/test_scenarios/test_list_assets_sboms_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.frozen deleted file mode 100644 index 8fc8312cb4..0000000000 --- a/tests/v2/cassettes/test_scenarios/test_list_assets_sboms_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.frozen +++ /dev/null @@ -1 +0,0 @@ -2026-01-20T08:26:52.182Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_list_scanned_assets_metadata_returns_bad_request_invalid_pagination_token_response.frozen b/tests/v2/cassettes/test_scenarios/test_list_scanned_assets_metadata_returns_bad_request_invalid_pagination_token_response.frozen new file mode 100644 index 0000000000..8588e23453 --- /dev/null +++ b/tests/v2/cassettes/test_scenarios/test_list_scanned_assets_metadata_returns_bad_request_invalid_pagination_token_response.frozen @@ -0,0 +1 @@ +2026-07-06T19:25:17.066Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_list_scanned_assets_metadata_returns_not_found_asset_not_found_response.yaml b/tests/v2/cassettes/test_scenarios/test_list_scanned_assets_metadata_returns_bad_request_invalid_pagination_token_response.yaml similarity index 76% rename from tests/v2/cassettes/test_scenarios/test_list_scanned_assets_metadata_returns_not_found_asset_not_found_response.yaml rename to tests/v2/cassettes/test_scenarios/test_list_scanned_assets_metadata_returns_bad_request_invalid_pagination_token_response.yaml index ab91f89046..f72c944372 100644 --- a/tests/v2/cassettes/test_scenarios/test_list_scanned_assets_metadata_returns_not_found_asset_not_found_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_list_scanned_assets_metadata_returns_bad_request_invalid_pagination_token_response.yaml @@ -8,11 +8,11 @@ interactions: uri: https://api.datadoghq.com/api/v2/security/scanned-assets-metadata?page%5Btoken%5D=unknown&page%5Bnumber%5D=1 response: body: - string: '{"errors":[{"status":"404","title":"Unexpected internal error"}]}' + string: '{"errors":[{"status":"400","title":"Unexpected internal error"}]}' headers: content-type: - application/vnd.api+json status: - code: 404 - message: Not Found + code: 400 + message: Bad Request version: 1 diff --git a/tests/v2/cassettes/test_scenarios/test_list_scanned_assets_metadata_returns_not_found_asset_not_found_response.frozen b/tests/v2/cassettes/test_scenarios/test_list_scanned_assets_metadata_returns_not_found_asset_not_found_response.frozen deleted file mode 100644 index 69589f1391..0000000000 --- a/tests/v2/cassettes/test_scenarios/test_list_scanned_assets_metadata_returns_not_found_asset_not_found_response.frozen +++ /dev/null @@ -1 +0,0 @@ -2025-10-15T08:41:14.545Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_list_vulnerabilities_returns_bad_request_invalid_pagination_token_response.frozen b/tests/v2/cassettes/test_scenarios/test_list_vulnerabilities_returns_bad_request_invalid_pagination_token_response.frozen new file mode 100644 index 0000000000..9c50e04430 --- /dev/null +++ b/tests/v2/cassettes/test_scenarios/test_list_vulnerabilities_returns_bad_request_invalid_pagination_token_response.frozen @@ -0,0 +1 @@ +2026-07-06T19:25:19.361Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_list_vulnerabilities_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.yaml b/tests/v2/cassettes/test_scenarios/test_list_vulnerabilities_returns_bad_request_invalid_pagination_token_response.yaml similarity index 76% rename from tests/v2/cassettes/test_scenarios/test_list_vulnerabilities_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.yaml rename to tests/v2/cassettes/test_scenarios/test_list_vulnerabilities_returns_bad_request_invalid_pagination_token_response.yaml index 88be80727d..c7f450be66 100644 --- a/tests/v2/cassettes/test_scenarios/test_list_vulnerabilities_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_list_vulnerabilities_returns_bad_request_invalid_pagination_token_response.yaml @@ -8,11 +8,11 @@ interactions: uri: https://api.datadoghq.com/api/v2/security/vulnerabilities?page%5Btoken%5D=unknown&page%5Bnumber%5D=1 response: body: - string: '{"errors":[{"status":"404","title":"Unexpected internal error"}]}' + string: '{"errors":[{"status":"400","title":"Unexpected internal error"}]}' headers: content-type: - application/vnd.api+json status: - code: 404 - message: Not Found + code: 400 + message: Bad Request version: 1 diff --git a/tests/v2/cassettes/test_scenarios/test_list_vulnerabilities_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.frozen b/tests/v2/cassettes/test_scenarios/test_list_vulnerabilities_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.frozen deleted file mode 100644 index ae0101c9ee..0000000000 --- a/tests/v2/cassettes/test_scenarios/test_list_vulnerabilities_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.frozen +++ /dev/null @@ -1 +0,0 @@ -2025-12-12T14:36:04.169Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_list_vulnerable_assets_returns_bad_request_invalid_pagination_token_response.frozen b/tests/v2/cassettes/test_scenarios/test_list_vulnerable_assets_returns_bad_request_invalid_pagination_token_response.frozen new file mode 100644 index 0000000000..d300015646 --- /dev/null +++ b/tests/v2/cassettes/test_scenarios/test_list_vulnerable_assets_returns_bad_request_invalid_pagination_token_response.frozen @@ -0,0 +1 @@ +2026-07-06T19:25:22.396Z \ No newline at end of file diff --git a/tests/v2/cassettes/test_scenarios/test_list_vulnerable_assets_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.yaml b/tests/v2/cassettes/test_scenarios/test_list_vulnerable_assets_returns_bad_request_invalid_pagination_token_response.yaml similarity index 76% rename from tests/v2/cassettes/test_scenarios/test_list_vulnerable_assets_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.yaml rename to tests/v2/cassettes/test_scenarios/test_list_vulnerable_assets_returns_bad_request_invalid_pagination_token_response.yaml index 01de923270..d51e96d055 100644 --- a/tests/v2/cassettes/test_scenarios/test_list_vulnerable_assets_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.yaml +++ b/tests/v2/cassettes/test_scenarios/test_list_vulnerable_assets_returns_bad_request_invalid_pagination_token_response.yaml @@ -8,11 +8,11 @@ interactions: uri: https://api.datadoghq.com/api/v2/security/vulnerable-assets?page%5Btoken%5D=unknown&page%5Bnumber%5D=1 response: body: - string: '{"errors":[{"status":"404","title":"Unexpected internal error"}]}' + string: '{"errors":[{"status":"400","title":"Unexpected internal error"}]}' headers: content-type: - application/vnd.api+json status: - code: 404 - message: Not Found + code: 400 + message: Bad Request version: 1 diff --git a/tests/v2/cassettes/test_scenarios/test_list_vulnerable_assets_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.frozen b/tests/v2/cassettes/test_scenarios/test_list_vulnerable_assets_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.frozen deleted file mode 100644 index f78ea7dd7b..0000000000 --- a/tests/v2/cassettes/test_scenarios/test_list_vulnerable_assets_returns_not_found_there_is_no_request_associated_with_the_provided_token_response.frozen +++ /dev/null @@ -1 +0,0 @@ -2025-10-14T13:43:32.350Z \ No newline at end of file diff --git a/tests/v2/features/security_monitoring.feature b/tests/v2/features/security_monitoring.feature index da7e67cad5..0a0409f407 100644 --- a/tests/v2/features/security_monitoring.feature +++ b/tests/v2/features/security_monitoring.feature @@ -2318,19 +2318,19 @@ Feature: Security Monitoring When the request is sent Then the response status is 200 Vulnerabilities accepted successfully. - @generated @skip @team:DataDog/k9-cloud-vm - Scenario: List assets SBOMs returns "Bad request: The server cannot process the request due to invalid syntax in the request." response - Given new "ListAssetsSBOMs" request - When the request is sent - Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request. - @team:DataDog/k9-cloud-vm - Scenario: List assets SBOMs returns "Not found: There is no request associated with the provided token." response + Scenario: List assets SBOMs returns "Bad request: Invalid pagination token." response Given new "ListAssetsSBOMs" request And request contains "page[token]" parameter with value "unknown" And request contains "page[number]" parameter with value 1 When the request is sent - Then the response status is 404 Not found: There is no request associated with the provided token. + Then the response status is 400 Bad request: Invalid pagination token. + + @generated @skip @team:DataDog/k9-cloud-vm + Scenario: List assets SBOMs returns "Bad request: The server cannot process the request due to invalid syntax in the request." response + Given new "ListAssetsSBOMs" request + When the request is sent + Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request. @generated @skip @team:DataDog/k9-cloud-vm Scenario: List assets SBOMs returns "Not found: asset not found" response @@ -2504,6 +2504,15 @@ Feature: Security Monitoring When the request is sent Then the response status is 200 OK + @team:DataDog/k9-cloud-vm + Scenario: List scanned assets metadata returns "Bad request: Invalid Pagination Token" response + Given operation "ListScannedAssetsMetadata" enabled + And new "ListScannedAssetsMetadata" request + And request contains "page[token]" parameter with value "unknown" + And request contains "page[number]" parameter with value 1 + When the request is sent + Then the response status is 400 Bad request: Invalid pagination token. + @skip @team:DataDog/k9-cloud-vm Scenario: List scanned assets metadata returns "Bad request: The server cannot process the request due to invalid syntax in the request." response Given operation "ListScannedAssetsMetadata" enabled @@ -2511,12 +2520,10 @@ Feature: Security Monitoring When the request is sent Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request. - @team:DataDog/k9-cloud-vm + @generated @skip @team:DataDog/k9-cloud-vm Scenario: List scanned assets metadata returns "Not found: asset not found" response Given operation "ListScannedAssetsMetadata" enabled And new "ListScannedAssetsMetadata" request - And request contains "page[token]" parameter with value "unknown" - And request contains "page[number]" parameter with value 1 When the request is sent Then the response status is 404 Not found: asset not found @@ -2550,6 +2557,15 @@ Feature: Security Monitoring And the response "meta.page" has field "after" And the response "links" has field "next" + @team:DataDog/k9-cloud-vm + Scenario: List vulnerabilities returns "Bad request: Invalid pagination token." response + Given operation "ListVulnerabilities" enabled + And new "ListVulnerabilities" request + And request contains "page[token]" parameter with value "unknown" + And request contains "page[number]" parameter with value 1 + When the request is sent + Then the response status is 400 Bad request: Invalid pagination token. + @generated @skip @team:DataDog/k9-cloud-vm Scenario: List vulnerabilities returns "Bad request: The server cannot process the request due to invalid syntax in the request." response Given operation "ListVulnerabilities" enabled @@ -2557,12 +2573,10 @@ Feature: Security Monitoring When the request is sent Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request. - @team:DataDog/k9-cloud-vm + @generated @skip @team:DataDog/k9-cloud-vm Scenario: List vulnerabilities returns "Not found: There is no request associated with the provided token." response Given operation "ListVulnerabilities" enabled And new "ListVulnerabilities" request - And request contains "page[token]" parameter with value "unknown" - And request contains "page[number]" parameter with value 1 When the request is sent Then the response status is 404 Not found: There is no request associated with the provided token. @@ -2576,6 +2590,15 @@ Feature: Security Monitoring When the request is sent Then the response status is 200 OK + @team:DataDog/k9-cloud-vm + Scenario: List vulnerable assets returns "Bad request: Invalid Pagination Token" response + Given operation "ListVulnerableAssets" enabled + And new "ListVulnerableAssets" request + And request contains "page[token]" parameter with value "unknown" + And request contains "page[number]" parameter with value 1 + When the request is sent + Then the response status is 400 Bad request: Invalid pagination token. + @generated @skip @team:DataDog/k9-cloud-vm Scenario: List vulnerable assets returns "Bad request: The server cannot process the request due to invalid syntax in the request." response Given operation "ListVulnerableAssets" enabled @@ -2583,12 +2606,10 @@ Feature: Security Monitoring When the request is sent Then the response status is 400 Bad request: The server cannot process the request due to invalid syntax in the request. - @team:DataDog/k9-cloud-vm + @generated @skip @team:DataDog/k9-cloud-vm Scenario: List vulnerable assets returns "Not found: There is no request associated with the provided token." response Given operation "ListVulnerableAssets" enabled And new "ListVulnerableAssets" request - And request contains "page[token]" parameter with value "unknown" - And request contains "page[number]" parameter with value 1 When the request is sent Then the response status is 404 Not found: There is no request associated with the provided token.