Skip to content

Commit 8441cbb

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit ca200e0 of spec repo
1 parent ed7c570 commit 8441cbb

7 files changed

Lines changed: 25 additions & 25 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25864,6 +25864,14 @@ components:
2586425864
FlakyTestsSearchFilter:
2586525865
description: Search filter settings.
2586625866
properties:
25867+
include_history:
25868+
default: false
25869+
description: |-
25870+
Whether to include the status change history for each flaky test in the response.
25871+
When set to true, each test will include a 'history' array with chronological status changes.
25872+
Defaults to false.
25873+
example: true
25874+
type: boolean
2586725875
query:
2586825876
default: "*"
2586925877
description: |-
@@ -25909,14 +25917,6 @@ components:
2590925917
properties:
2591025918
filter:
2591125919
$ref: "#/components/schemas/FlakyTestsSearchFilter"
25912-
include_history:
25913-
default: false
25914-
description: |-
25915-
Whether to include the status change history for each flaky test in the response.
25916-
When set to true, each test will include a `history` array with chronological status changes.
25917-
Defaults to false.
25918-
example: true
25919-
type: boolean
2592025920
page:
2592125921
$ref: "#/components/schemas/FlakyTestsSearchPageOptions"
2592225922
sort:

examples/v2/test-optimization/SearchFlakyTests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ const params: v2.TestOptimizationApiSearchFlakyTestsRequest = {
1313
data: {
1414
attributes: {
1515
filter: {
16+
includeHistory: true,
1617
query: `flaky_test_state:active @git.repository.id_v2:"github.com/datadog/shopist"`,
1718
},
18-
includeHistory: true,
1919
page: {
2020
cursor:
2121
"eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==",

examples/v2/test-optimization/SearchFlakyTests_1224086727.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ const params: v2.TestOptimizationApiSearchFlakyTestsRequest = {
1313
data: {
1414
attributes: {
1515
filter: {
16+
includeHistory: true,
1617
query: `flaky_test_state:active @git.repository.id_v2:"github.com/datadog/shopist"`,
1718
},
18-
includeHistory: true,
1919
page: {
2020
cursor:
2121
"eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==",

examples/v2/test-optimization/SearchFlakyTests_209064879.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ const params: v2.TestOptimizationApiSearchFlakyTestsRequest = {
1414
attributes: {
1515
filter: {
1616
query: `flaky_test_state:active @git.repository.id_v2:"github.com/datadog/shopist"`,
17+
includeHistory: true,
1718
},
1819
page: {
1920
limit: 10,
2021
},
2122
sort: "fqn",
22-
includeHistory: true,
2323
},
2424
type: "search_flaky_tests_request",
2525
},

features/v2/test_optimization.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Feature: Test Optimization
8585
Scenario: Search flaky tests returns "Bad Request" response
8686
Given operation "SearchFlakyTests" enabled
8787
And new "SearchFlakyTests" request
88-
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"}}
88+
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"}}
8989
When the request is sent
9090
Then the response status is 400 Bad Request
9191

@@ -101,7 +101,7 @@ Feature: Test Optimization
101101
Scenario: Search flaky tests returns "OK" response
102102
Given operation "SearchFlakyTests" enabled
103103
And new "SearchFlakyTests" request
104-
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"}}
104+
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"}}
105105
When the request is sent
106106
Then the response status is 200 OK
107107

@@ -117,7 +117,7 @@ Feature: Test Optimization
117117
Scenario: Search flaky tests returns "OK" response with history
118118
Given operation "SearchFlakyTests" enabled
119119
And new "SearchFlakyTests" request
120-
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"}}
120+
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"}}
121121
When the request is sent
122122
Then the response status is 200 OK
123123
And the response "data[0].attributes" has field "history"
@@ -129,7 +129,7 @@ Feature: Test Optimization
129129
Scenario: Search flaky tests returns "OK" response with pagination
130130
Given operation "SearchFlakyTests" enabled
131131
And new "SearchFlakyTests" request
132-
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"}}
132+
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"}}
133133
When the request with pagination is sent
134134
Then the response status is 200 OK
135135

packages/datadog-api-client-v2/models/FlakyTestsSearchFilter.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1010
* Search filter settings.
1111
*/
1212
export class FlakyTestsSearchFilter {
13+
/**
14+
* Whether to include the status change history for each flaky test in the response.
15+
* When set to true, each test will include a 'history' array with chronological status changes.
16+
* Defaults to false.
17+
*/
18+
"includeHistory"?: boolean;
1319
/**
1420
* Search query following log syntax used to filter flaky tests, same as on Flaky Tests Management UI. The supported search keys are:
1521
* - `flaky_test_state`
@@ -41,6 +47,10 @@ export class FlakyTestsSearchFilter {
4147
* @ignore
4248
*/
4349
static readonly attributeTypeMap: AttributeTypeMap = {
50+
includeHistory: {
51+
baseName: "include_history",
52+
type: "boolean",
53+
},
4454
query: {
4555
baseName: "query",
4656
type: "string",

packages/datadog-api-client-v2/models/FlakyTestsSearchRequestAttributes.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ export class FlakyTestsSearchRequestAttributes {
1717
* Search filter settings.
1818
*/
1919
"filter"?: FlakyTestsSearchFilter;
20-
/**
21-
* Whether to include the status change history for each flaky test in the response.
22-
* When set to true, each test will include a `history` array with chronological status changes.
23-
* Defaults to false.
24-
*/
25-
"includeHistory"?: boolean;
2620
/**
2721
* Pagination attributes for listing flaky tests.
2822
*/
@@ -52,10 +46,6 @@ export class FlakyTestsSearchRequestAttributes {
5246
baseName: "filter",
5347
type: "FlakyTestsSearchFilter",
5448
},
55-
includeHistory: {
56-
baseName: "include_history",
57-
type: "boolean",
58-
},
5949
page: {
6050
baseName: "page",
6151
type: "FlakyTestsSearchPageOptions",

0 commit comments

Comments
 (0)