Skip to content

Commit 275e038

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b7e9aa0 of spec repo
1 parent dc8a5c6 commit 275e038

7 files changed

Lines changed: 28 additions & 28 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25661,6 +25661,17 @@ components:
2566125661
FlakyTestsSearchFilter:
2566225662
description: Search filter settings.
2566325663
properties:
25664+
include_history:
25665+
default: false
25666+
description: 'Whether to include the status change history for each flaky
25667+
test in the response.
25668+
25669+
When set to true, each test will include a ''history'' array with chronological
25670+
status changes.
25671+
25672+
Defaults to false.'
25673+
example: true
25674+
type: boolean
2566425675
query:
2566525676
default: '*'
2566625677
description: 'Search query following log syntax used to filter flaky tests,
@@ -25716,17 +25727,6 @@ components:
2571625727
properties:
2571725728
filter:
2571825729
$ref: '#/components/schemas/FlakyTestsSearchFilter'
25719-
include_history:
25720-
default: false
25721-
description: 'Whether to include the status change history for each flaky
25722-
test in the response.
25723-
25724-
When set to true, each test will include a `history` array with chronological
25725-
status changes.
25726-
25727-
Defaults to false.'
25728-
example: true
25729-
type: boolean
2573025730
page:
2573125731
$ref: '#/components/schemas/FlakyTestsSearchPageOptions'
2573225732
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
@@ -13,7 +13,7 @@ Feature: Test Optimization
1313
Scenario: Search flaky tests returns "Bad Request" response
1414
Given operation "SearchFlakyTests" enabled
1515
And new "SearchFlakyTests" request
16-
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"}}
16+
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"}}
1717
When the request is sent
1818
Then the response status is 400 Bad Request
1919

@@ -29,7 +29,7 @@ Feature: Test Optimization
2929
Scenario: Search flaky tests returns "OK" response
3030
Given operation "SearchFlakyTests" enabled
3131
And new "SearchFlakyTests" request
32-
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"}}
32+
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"}}
3333
When the request is sent
3434
Then the response status is 200 OK
3535

@@ -45,7 +45,7 @@ Feature: Test Optimization
4545
Scenario: Search flaky tests returns "OK" response with history
4646
Given operation "SearchFlakyTests" enabled
4747
And new "SearchFlakyTests" request
48-
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"}}
48+
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"}}
4949
When the request is sent
5050
Then the response status is 200 OK
5151
And the response "data[0].attributes" has field "history"
@@ -57,7 +57,7 @@ Feature: Test Optimization
5757
Scenario: Search flaky tests returns "OK" response with pagination
5858
Given operation "SearchFlakyTests" enabled
5959
And new "SearchFlakyTests" request
60-
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"}}
60+
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"}}
6161
When the request with pagination is sent
6262
Then the response status is 200 OK
6363

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)