Skip to content

Commit 7ba4f8e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 25e6f51 of spec repo
1 parent a6e0b3e commit 7ba4f8e

34 files changed

+2623
-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:50:09.281Z

cassettes/features/v2/test_optimization/Search-flaky-tests-returns-Bad-Request-response-with-invalid-limit.yml

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-09-12T13:50:09.630Z

cassettes/features/v2/test_optimization/Search-flaky-tests-returns-OK-response-with-filtered-query.yml

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-09-12T13:50:10.682Z

cassettes/features/v2/test_optimization/Search-flaky-tests-returns-OK-response-with-specific-cursor.yml

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Search flaky tests returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.search_flaky_tests".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::TestOptimizationAPI.new
8+
9+
body = DatadogAPIClient::V2::FlakyTestsSearchRequest.new({
10+
data: DatadogAPIClient::V2::FlakyTestsSearchRequestData.new({
11+
attributes: DatadogAPIClient::V2::FlakyTestsSearchRequestAttributes.new({
12+
filter: DatadogAPIClient::V2::FlakyTestsSearchFilter.new({
13+
query: "*",
14+
}),
15+
page: DatadogAPIClient::V2::FlakyTestsSearchPageOptions.new({
16+
limit: 10,
17+
}),
18+
sort: DatadogAPIClient::V2::FlakyTestsSearchSort::FQN_ASCENDING,
19+
}),
20+
type: DatadogAPIClient::V2::FlakyTestsSearchRequestDataType::SEARCH_FLAKY_TESTS_REQUEST,
21+
}),
22+
})
23+
opts = {
24+
body: body,
25+
}
26+
p api_instance.search_flaky_tests(opts)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Search flaky tests returns "OK" response with filtered query
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.search_flaky_tests".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::TestOptimizationAPI.new
8+
9+
body = DatadogAPIClient::V2::FlakyTestsSearchRequest.new({
10+
data: DatadogAPIClient::V2::FlakyTestsSearchRequestData.new({
11+
attributes: DatadogAPIClient::V2::FlakyTestsSearchRequestAttributes.new({
12+
filter: DatadogAPIClient::V2::FlakyTestsSearchFilter.new({
13+
query: 'flaky_test_state:active @git.repository.id_v2:"github.com/datadog/shopist"',
14+
}),
15+
page: DatadogAPIClient::V2::FlakyTestsSearchPageOptions.new({
16+
limit: 2,
17+
}),
18+
sort: DatadogAPIClient::V2::FlakyTestsSearchSort::LAST_FLAKED_DESCENDING,
19+
}),
20+
type: DatadogAPIClient::V2::FlakyTestsSearchRequestDataType::SEARCH_FLAKY_TESTS_REQUEST,
21+
}),
22+
})
23+
opts = {
24+
body: body,
25+
}
26+
p api_instance.search_flaky_tests(opts)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Search flaky tests returns "OK" response with specific cursor
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.search_flaky_tests".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::TestOptimizationAPI.new
8+
9+
body = DatadogAPIClient::V2::FlakyTestsSearchRequest.new({
10+
data: DatadogAPIClient::V2::FlakyTestsSearchRequestData.new({
11+
attributes: DatadogAPIClient::V2::FlakyTestsSearchRequestAttributes.new({
12+
filter: DatadogAPIClient::V2::FlakyTestsSearchFilter.new({
13+
query: "*",
14+
}),
15+
page: DatadogAPIClient::V2::FlakyTestsSearchPageOptions.new({
16+
cursor: "Q29udGludW91cyBUZXN0aW5nLltETyBOT1QgREVMRVRFXVtPTi1ERU1BTkQgRlVOQ1RJT05BTElUSUVTXVtPVkVSUklERV0gRXh0cmFWYXJpYWJsZXM=",
17+
limit: 2,
18+
}),
19+
sort: DatadogAPIClient::V2::FlakyTestsSearchSort::FQN_ASCENDING,
20+
}),
21+
type: DatadogAPIClient::V2::FlakyTestsSearchRequestDataType::SEARCH_FLAKY_TESTS_REQUEST,
22+
}),
23+
})
24+
opts = {
25+
body: body,
26+
}
27+
p api_instance.search_flaky_tests(opts)

0 commit comments

Comments
 (0)