Skip to content

Commit 7adadf6

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 457356d of spec repo
1 parent 6e33790 commit 7adadf6

35 files changed

+2079
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 380 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2025-09-12T13:37:34.360Z"
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"log": {
3+
"_recordingName": "Test Optimization/Search flaky tests returns \"Bad Request\" response with invalid limit",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "ee9b0cdb0f36f91022603a2d2e763a0b",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 119,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 579,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"filter\":{\"query\":\"*\"},\"page\":{\"limit\":2000},\"sort\":\"fqn\"},\"type\":\"search_flaky_tests_request\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/test/flaky-test-management/tests"
39+
},
40+
"response": {
41+
"bodySize": 110,
42+
"content": {
43+
"mimeType": "application/vnd.api+json",
44+
"size": 110,
45+
"text": "{\"errors\":[{\"status\":\"400\",\"title\":\"Bad Request\",\"detail\":\"limit must be greater than 1 and less than 1000\"}]}"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/vnd.api+json"
52+
}
53+
],
54+
"headersSize": 701,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 400,
58+
"statusText": "Bad Request"
59+
},
60+
"startedDateTime": "2025-09-12T13:37:34.364Z",
61+
"time": 337
62+
}
63+
],
64+
"pages": [],
65+
"version": "1.2"
66+
}
67+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2025-09-12T13:37:34.711Z"
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"log": {
3+
"_recordingName": "Test Optimization/Search flaky tests returns \"OK\" response with filtered query",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "93547ffcc089ca5ca2c0f4d8aeb23c1f",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 200,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 579,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"filter\":{\"query\":\"flaky_test_state:active @git.repository.id_v2:\\\"github.com/datadog/shopist\\\"\"},\"page\":{\"limit\":2},\"sort\":\"-last_flaked\"},\"type\":\"search_flaky_tests_request\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/test/flaky-test-management/tests"
39+
},
40+
"response": {
41+
"bodySize": 1900,
42+
"content": {
43+
"mimeType": "application/vnd.api+json",
44+
"size": 1900,
45+
"text": "{\"data\":[{\"id\":\"4eb1887a8adb1847\",\"type\":\"flaky_test\",\"attributes\":{\"attempt_to_fix_id\":\"8MDT91\",\"codeowners\":[\"@shopist-devs\",\"@shopist/qa-team\"],\"envs\":[\"testo\",\"none\",\"staging\"],\"first_flaked_branch\":\"staging\",\"first_flaked_sha\":\"fddf3a7fead8203dc4d30af879f60ac53eacfa07\",\"first_flaked_ts\":1639061516,\"flaky_category\":null,\"flaky_state\":\"active\",\"last_flaked_branch\":\"jhanna/feature-2025-09-12\",\"last_flaked_sha\":\"d52443e6902f55a1c992d3f2388ab3fcca66acc2\",\"last_flaked_ts\":1757683655,\"module\":null,\"name\":\"test_now_himself_exist_board_space\",\"pipeline_stats\":{\"failed_pipelines\":319,\"total_lost_time_ms\":1527550000},\"services\":[\"shopist\"],\"suite\":\"TestWindNationMakeTalkShoulder\",\"test_run_metadata\":{\"source_file\":\"\",\"source_start\":null,\"source_end\":null,\"error_message\":\"Expecting actual not to be empty\",\"error_stack\":\"\",\"duration_ms\":27398},\"test_stats\":{\"failure_rate_pct\":0}}},{\"id\":\"7c5610a07a8dc4ab\",\"type\":\"flaky_test\",\"attributes\":{\"attempt_to_fix_id\":\"41UAA4\",\"codeowners\":[\"@shopist-devs\",\"@shopist/qa-team\"],\"envs\":[\"none\",\"testo\",\"staging\"],\"first_flaked_branch\":\"staging\",\"first_flaked_sha\":\"29b68adc1b5e813e8e611669537eeaa5a7aa3f3d\",\"first_flaked_ts\":1639060848,\"flaky_category\":null,\"flaky_state\":\"active\",\"last_flaked_branch\":\"staging\",\"last_flaked_sha\":\"984720998f1ab123cf156b80e76f08fc09f50858\",\"last_flaked_ts\":1757683651,\"module\":null,\"name\":\"test_one_economy_raise_social_speak\",\"pipeline_stats\":{\"failed_pipelines\":308,\"total_lost_time_ms\":1528940000},\"services\":[\"shopist\"],\"suite\":\"TestCoupleKeepAgainPhysicalPaper\",\"test_run_metadata\":{\"source_file\":\"\",\"source_start\":null,\"source_end\":null,\"error_message\":\"Expecting actual not to be empty\",\"error_stack\":\"\",\"duration_ms\":26320},\"test_stats\":{\"failure_rate_pct\":0}}}],\"meta\":{\"pagination\":{\"next_page\":\"MTc1NzY4MzY1MVx4MDBUZXN0Q291cGxlS2VlcEFnYWluUGh5c2ljYWxQYXBlci50ZXN0X29uZV9lY29ub215X3JhaXNlX3NvY2lhbF9zcGVhaw==\"}}}"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/vnd.api+json"
52+
}
53+
],
54+
"headersSize": 702,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2025-09-12T13:37:34.713Z",
61+
"time": 490
62+
}
63+
],
64+
"pages": [],
65+
"version": "1.2"
66+
}
67+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2025-09-12T13:37:35.209Z"
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"log": {
3+
"_recordingName": "Test Optimization/Search flaky tests returns \"OK\" response with specific cursor",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "638cd7493bf077ce8fe8b62c579f10b6",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 244,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 579,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"data\":{\"attributes\":{\"filter\":{\"query\":\"*\"},\"page\":{\"cursor\":\"Q29udGludW91cyBUZXN0aW5nLltETyBOT1QgREVMRVRFXVtPTi1ERU1BTkQgRlVOQ1RJT05BTElUSUVTXVtPVkVSUklERV0gRXh0cmFWYXJpYWJsZXM=\",\"limit\":2},\"sort\":\"fqn\"},\"type\":\"search_flaky_tests_request\"}}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/test/flaky-test-management/tests"
39+
},
40+
"response": {
41+
"bodySize": 1944,
42+
"content": {
43+
"mimeType": "application/vnd.api+json",
44+
"size": 1944,
45+
"text": "{\"data\":[{\"id\":\"89d47ec1dfe7399\",\"type\":\"flaky_test\",\"attributes\":{\"attempt_to_fix_id\":\"9C4M3R\",\"codeowners\":[],\"envs\":[\"none\"],\"first_flaked_branch\":\"ci-functionalities-test\",\"first_flaked_sha\":\"2a66078f244554ababb6d687632e9ca8ca6b4db8\",\"first_flaked_ts\":1740549969,\"flaky_category\":null,\"flaky_state\":\"active\",\"last_flaked_branch\":\"ci-functionalities-test\",\"last_flaked_sha\":\"7c23e3126dffdb10f01dd57787283f5d03b8040e\",\"last_flaked_ts\":1757664275,\"module\":null,\"name\":\"[DO NOT DELETE][ON-DEMAND FUNCTIONALITIES][OVERRIDE] RequestBasicAuth\",\"pipeline_stats\":null,\"services\":[\"synthetics\",\"unknown-service\"],\"suite\":\"Continuous Testing\",\"test_run_metadata\":{\"source_file\":\"\",\"source_start\":null,\"source_end\":null,\"error_message\":\"[{\\\"actual\\\":1380.1,\\\"operator\\\":\\\"lessThan\\\",\\\"target\\\":1000,\\\"type\\\":\\\"responseTime\\\"}]\",\"error_stack\":\"\",\"duration_ms\":1380},\"test_stats\":{\"failure_rate_pct\":0}}},{\"id\":\"d492dd7ed429b046\",\"type\":\"flaky_test\",\"attributes\":{\"attempt_to_fix_id\":\"AIYTFV\",\"codeowners\":[],\"envs\":[\"none\"],\"first_flaked_branch\":\"ci-functionalities-test\",\"first_flaked_sha\":\"2a66078f244554ababb6d687632e9ca8ca6b4db8\",\"first_flaked_ts\":1740549969,\"flaky_category\":null,\"flaky_state\":\"active\",\"last_flaked_branch\":\"ci-functionalities-test\",\"last_flaked_sha\":\"7c23e3126dffdb10f01dd57787283f5d03b8040e\",\"last_flaked_ts\":1757664275,\"module\":null,\"name\":\"[DO NOT DELETE][ON-DEMAND FUNCTIONALITIES][OVERRIDE] RequestContentType\",\"pipeline_stats\":null,\"services\":[\"synthetics\",\"unknown-service\"],\"suite\":\"Continuous Testing\",\"test_run_metadata\":{\"source_file\":\"\",\"source_start\":null,\"source_end\":null,\"error_message\":\"[{\\\"actual\\\":5696.2,\\\"operator\\\":\\\"lessThan\\\",\\\"target\\\":1000,\\\"type\\\":\\\"responseTime\\\"}]\",\"error_stack\":\"\",\"duration_ms\":5696},\"test_stats\":{\"failure_rate_pct\":0}}}],\"meta\":{\"pagination\":{\"next_page\":\"Q29udGludW91cyBUZXN0aW5nLltETyBOT1QgREVMRVRFXVtPTi1ERU1BTkQgRlVOQ1RJT05BTElUSUVTXVtPVkVSUklERV0gUmVxdWVzdENvbnRlbnRUeXBl\"}}}"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/vnd.api+json"
52+
}
53+
],
54+
"headersSize": 702,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2025-09-12T13:37:35.211Z",
61+
"time": 806
62+
}
63+
],
64+
"pages": [],
65+
"version": "1.2"
66+
}
67+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* Search flaky tests returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.searchFlakyTests"] = true;
9+
const apiInstance = new v2.TestOptimizationApi(configuration);
10+
11+
const params: v2.TestOptimizationApiSearchFlakyTestsRequest = {
12+
body: {
13+
data: {
14+
attributes: {
15+
filter: {
16+
query: "*",
17+
},
18+
page: {
19+
limit: 10,
20+
},
21+
sort: "fqn",
22+
},
23+
type: "search_flaky_tests_request",
24+
},
25+
},
26+
};
27+
28+
apiInstance
29+
.searchFlakyTests(params)
30+
.then((data: v2.FlakyTestsSearchResponse) => {
31+
console.log(
32+
"API called successfully. Returned data: " + JSON.stringify(data)
33+
);
34+
})
35+
.catch((error: any) => console.error(error));
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/**
2+
* Search flaky tests returns "OK" response with filtered query
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.TestOptimizationApi(configuration);
9+
10+
const params: v2.TestOptimizationApiSearchFlakyTestsRequest = {
11+
body: {
12+
data: {
13+
attributes: {
14+
filter: {
15+
query: `flaky_test_state:active @git.repository.id_v2:"github.com/datadog/shopist"`,
16+
},
17+
page: {
18+
limit: 2,
19+
},
20+
sort: "-last_flaked",
21+
},
22+
type: "search_flaky_tests_request",
23+
},
24+
},
25+
};
26+
27+
apiInstance
28+
.searchFlakyTests(params)
29+
.then((data: v2.FlakyTestsSearchResponse) => {
30+
console.log(
31+
"API called successfully. Returned data: " + JSON.stringify(data)
32+
);
33+
})
34+
.catch((error: any) => console.error(error));
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/**
2+
* Search flaky tests returns "OK" response with specific cursor
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.TestOptimizationApi(configuration);
9+
10+
const params: v2.TestOptimizationApiSearchFlakyTestsRequest = {
11+
body: {
12+
data: {
13+
attributes: {
14+
filter: {
15+
query: "*",
16+
},
17+
page: {
18+
cursor:
19+
"Q29udGludW91cyBUZXN0aW5nLltETyBOT1QgREVMRVRFXVtPTi1ERU1BTkQgRlVOQ1RJT05BTElUSUVTXVtPVkVSUklERV0gRXh0cmFWYXJpYWJsZXM=",
20+
limit: 2,
21+
},
22+
sort: "fqn",
23+
},
24+
type: "search_flaky_tests_request",
25+
},
26+
},
27+
};
28+
29+
apiInstance
30+
.searchFlakyTests(params)
31+
.then((data: v2.FlakyTestsSearchResponse) => {
32+
console.log(
33+
"API called successfully. Returned data: " + JSON.stringify(data)
34+
);
35+
})
36+
.catch((error: any) => console.error(error));

0 commit comments

Comments
 (0)