Skip to content

Commit 1e4e165

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 457356d of spec repo
1 parent dde5aff commit 1e4e165

34 files changed

+2614
-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

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:37:34.711Z

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:37:35.209Z

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: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Search flaky tests returns "OK" response with filtered query
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::TestOptimizationAPI.new
5+
6+
body = DatadogAPIClient::V2::FlakyTestsSearchRequest.new({
7+
data: DatadogAPIClient::V2::FlakyTestsSearchRequestData.new({
8+
attributes: DatadogAPIClient::V2::FlakyTestsSearchRequestAttributes.new({
9+
filter: DatadogAPIClient::V2::FlakyTestsSearchFilter.new({
10+
query: 'flaky_test_state:active @git.repository.id_v2:"github.com/datadog/shopist"',
11+
}),
12+
page: DatadogAPIClient::V2::FlakyTestsSearchPageOptions.new({
13+
limit: 2,
14+
}),
15+
sort: DatadogAPIClient::V2::FlakyTestsSearchSort::LAST_FLAKED_DESCENDING,
16+
}),
17+
type: DatadogAPIClient::V2::FlakyTestsSearchRequestDataType::SEARCH_FLAKY_TESTS_REQUEST,
18+
}),
19+
})
20+
opts = {
21+
body: body,
22+
}
23+
p api_instance.search_flaky_tests(opts)
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Search flaky tests returns "OK" response with specific cursor
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::TestOptimizationAPI.new
5+
6+
body = DatadogAPIClient::V2::FlakyTestsSearchRequest.new({
7+
data: DatadogAPIClient::V2::FlakyTestsSearchRequestData.new({
8+
attributes: DatadogAPIClient::V2::FlakyTestsSearchRequestAttributes.new({
9+
filter: DatadogAPIClient::V2::FlakyTestsSearchFilter.new({
10+
query: "*",
11+
}),
12+
page: DatadogAPIClient::V2::FlakyTestsSearchPageOptions.new({
13+
cursor: "Q29udGludW91cyBUZXN0aW5nLltETyBOT1QgREVMRVRFXVtPTi1ERU1BTkQgRlVOQ1RJT05BTElUSUVTXVtPVkVSUklERV0gRXh0cmFWYXJpYWJsZXM=",
14+
limit: 2,
15+
}),
16+
sort: DatadogAPIClient::V2::FlakyTestsSearchSort::FQN_ASCENDING,
17+
}),
18+
type: DatadogAPIClient::V2::FlakyTestsSearchRequestDataType::SEARCH_FLAKY_TESTS_REQUEST,
19+
}),
20+
})
21+
opts = {
22+
body: body,
23+
}
24+
p api_instance.search_flaky_tests(opts)

0 commit comments

Comments
 (0)