From 8441cbb8bd840aecf5857eb201ea7209d063a801 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 6 Apr 2026 15:52:05 +0000 Subject: [PATCH] Regenerate client from commit ca200e0 of spec repo --- .generator/schemas/v2/openapi.yaml | 16 ++++++++-------- .../v2/test-optimization/SearchFlakyTests.ts | 2 +- .../SearchFlakyTests_1224086727.ts | 2 +- .../SearchFlakyTests_209064879.ts | 2 +- features/v2/test_optimization.feature | 8 ++++---- .../models/FlakyTestsSearchFilter.ts | 10 ++++++++++ .../models/FlakyTestsSearchRequestAttributes.ts | 10 ---------- 7 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 45672b441bd8..ff68b8aa7b39 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -25864,6 +25864,14 @@ components: FlakyTestsSearchFilter: description: Search filter settings. properties: + include_history: + default: false + description: |- + Whether to include the status change history for each flaky test in the response. + When set to true, each test will include a 'history' array with chronological status changes. + Defaults to false. + example: true + type: boolean query: default: "*" description: |- @@ -25909,14 +25917,6 @@ components: properties: filter: $ref: "#/components/schemas/FlakyTestsSearchFilter" - include_history: - default: false - description: |- - Whether to include the status change history for each flaky test in the response. - When set to true, each test will include a `history` array with chronological status changes. - Defaults to false. - example: true - type: boolean page: $ref: "#/components/schemas/FlakyTestsSearchPageOptions" sort: diff --git a/examples/v2/test-optimization/SearchFlakyTests.ts b/examples/v2/test-optimization/SearchFlakyTests.ts index 974729885eea..45d486cadae8 100644 --- a/examples/v2/test-optimization/SearchFlakyTests.ts +++ b/examples/v2/test-optimization/SearchFlakyTests.ts @@ -13,9 +13,9 @@ const params: v2.TestOptimizationApiSearchFlakyTestsRequest = { data: { attributes: { filter: { + includeHistory: true, query: `flaky_test_state:active @git.repository.id_v2:"github.com/datadog/shopist"`, }, - includeHistory: true, page: { cursor: "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", diff --git a/examples/v2/test-optimization/SearchFlakyTests_1224086727.ts b/examples/v2/test-optimization/SearchFlakyTests_1224086727.ts index 9fbd86e965b2..d49c3510135e 100644 --- a/examples/v2/test-optimization/SearchFlakyTests_1224086727.ts +++ b/examples/v2/test-optimization/SearchFlakyTests_1224086727.ts @@ -13,9 +13,9 @@ const params: v2.TestOptimizationApiSearchFlakyTestsRequest = { data: { attributes: { filter: { + includeHistory: true, query: `flaky_test_state:active @git.repository.id_v2:"github.com/datadog/shopist"`, }, - includeHistory: true, page: { cursor: "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", diff --git a/examples/v2/test-optimization/SearchFlakyTests_209064879.ts b/examples/v2/test-optimization/SearchFlakyTests_209064879.ts index 8130d8f5eb3a..cafa7da8347b 100644 --- a/examples/v2/test-optimization/SearchFlakyTests_209064879.ts +++ b/examples/v2/test-optimization/SearchFlakyTests_209064879.ts @@ -14,12 +14,12 @@ const params: v2.TestOptimizationApiSearchFlakyTestsRequest = { attributes: { filter: { query: `flaky_test_state:active @git.repository.id_v2:"github.com/datadog/shopist"`, + includeHistory: true, }, page: { limit: 10, }, sort: "fqn", - includeHistory: true, }, type: "search_flaky_tests_request", }, diff --git a/features/v2/test_optimization.feature b/features/v2/test_optimization.feature index 427db05baf4f..74e119ab5c05 100644 --- a/features/v2/test_optimization.feature +++ b/features/v2/test_optimization.feature @@ -85,7 +85,7 @@ Feature: Test Optimization Scenario: Search flaky tests returns "Bad Request" response Given operation "SearchFlakyTests" enabled And new "SearchFlakyTests" request - And body with value {"data": {"attributes": {"filter": {"query": "flaky_test_state:active @git.repository.id_v2:\"github.com/datadog/shopist\""}, "include_history": true, "page": {"cursor": "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", "limit": 25}, "sort": "failure_rate"}, "type": "search_flaky_tests_request"}} + And body with value {"data": {"attributes": {"filter": {"include_history": true, "query": "flaky_test_state:active @git.repository.id_v2:\"github.com/datadog/shopist\""}, "page": {"cursor": "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", "limit": 25}, "sort": "failure_rate"}, "type": "search_flaky_tests_request"}} When the request is sent Then the response status is 400 Bad Request @@ -101,7 +101,7 @@ Feature: Test Optimization Scenario: Search flaky tests returns "OK" response Given operation "SearchFlakyTests" enabled And new "SearchFlakyTests" request - And body with value {"data": {"attributes": {"filter": {"query": "flaky_test_state:active @git.repository.id_v2:\"github.com/datadog/shopist\""}, "include_history": true, "page": {"cursor": "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", "limit": 25}, "sort": "failure_rate"}, "type": "search_flaky_tests_request"}} + And body with value {"data": {"attributes": {"filter": {"include_history": true, "query": "flaky_test_state:active @git.repository.id_v2:\"github.com/datadog/shopist\""}, "page": {"cursor": "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", "limit": 25}, "sort": "failure_rate"}, "type": "search_flaky_tests_request"}} When the request is sent Then the response status is 200 OK @@ -117,7 +117,7 @@ Feature: Test Optimization Scenario: Search flaky tests returns "OK" response with history Given operation "SearchFlakyTests" enabled And new "SearchFlakyTests" request - And body with value {"data": {"attributes": {"filter": {"query": "flaky_test_state:active @git.repository.id_v2:\"github.com/datadog/shopist\""}, "page": {"limit": 10}, "sort": "fqn", "include_history": true}, "type": "search_flaky_tests_request"}} + And body with value {"data": {"attributes": {"filter": {"query": "flaky_test_state:active @git.repository.id_v2:\"github.com/datadog/shopist\"", "include_history": true}, "page": {"limit": 10}, "sort": "fqn"}, "type": "search_flaky_tests_request"}} When the request is sent Then the response status is 200 OK And the response "data[0].attributes" has field "history" @@ -129,7 +129,7 @@ Feature: Test Optimization Scenario: Search flaky tests returns "OK" response with pagination Given operation "SearchFlakyTests" enabled And new "SearchFlakyTests" request - And body with value {"data": {"attributes": {"filter": {"query": "flaky_test_state:active @git.repository.id_v2:\"github.com/datadog/shopist\""}, "include_history": true, "page": {"cursor": "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", "limit": 25}, "sort": "failure_rate"}, "type": "search_flaky_tests_request"}} + And body with value {"data": {"attributes": {"filter": {"include_history": true, "query": "flaky_test_state:active @git.repository.id_v2:\"github.com/datadog/shopist\""}, "page": {"cursor": "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", "limit": 25}, "sort": "failure_rate"}, "type": "search_flaky_tests_request"}} When the request with pagination is sent Then the response status is 200 OK diff --git a/packages/datadog-api-client-v2/models/FlakyTestsSearchFilter.ts b/packages/datadog-api-client-v2/models/FlakyTestsSearchFilter.ts index 361fddd6e38c..9c4234a84a7d 100644 --- a/packages/datadog-api-client-v2/models/FlakyTestsSearchFilter.ts +++ b/packages/datadog-api-client-v2/models/FlakyTestsSearchFilter.ts @@ -10,6 +10,12 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; * Search filter settings. */ export class FlakyTestsSearchFilter { + /** + * Whether to include the status change history for each flaky test in the response. + * When set to true, each test will include a 'history' array with chronological status changes. + * Defaults to false. + */ + "includeHistory"?: boolean; /** * Search query following log syntax used to filter flaky tests, same as on Flaky Tests Management UI. The supported search keys are: * - `flaky_test_state` @@ -41,6 +47,10 @@ export class FlakyTestsSearchFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { + includeHistory: { + baseName: "include_history", + type: "boolean", + }, query: { baseName: "query", type: "string", diff --git a/packages/datadog-api-client-v2/models/FlakyTestsSearchRequestAttributes.ts b/packages/datadog-api-client-v2/models/FlakyTestsSearchRequestAttributes.ts index 7dae8665b5c4..c84f6b7c952a 100644 --- a/packages/datadog-api-client-v2/models/FlakyTestsSearchRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/FlakyTestsSearchRequestAttributes.ts @@ -17,12 +17,6 @@ export class FlakyTestsSearchRequestAttributes { * Search filter settings. */ "filter"?: FlakyTestsSearchFilter; - /** - * Whether to include the status change history for each flaky test in the response. - * When set to true, each test will include a `history` array with chronological status changes. - * Defaults to false. - */ - "includeHistory"?: boolean; /** * Pagination attributes for listing flaky tests. */ @@ -52,10 +46,6 @@ export class FlakyTestsSearchRequestAttributes { baseName: "filter", type: "FlakyTestsSearchFilter", }, - includeHistory: { - baseName: "include_history", - type: "boolean", - }, page: { baseName: "page", type: "FlakyTestsSearchPageOptions",