From cddea36f6708a475ffc92878c0b2e65a6bab52f1 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 12 Mar 2026 14:57:45 +0000 Subject: [PATCH] Regenerate client from commit b7e9aa0 of spec repo --- .generator/schemas/v2/openapi.yaml | 22 +++++++++---------- .../v2/test-optimization/SearchFlakyTests.rb | 2 +- .../SearchFlakyTests_1224086727.rb | 2 +- .../SearchFlakyTests_209064879.rb | 2 +- features/v2/test_optimization.feature | 8 +++---- .../v2/models/flaky_tests_search_filter.rb | 14 +++++++++++- .../flaky_tests_search_request_attributes.rb | 14 +----------- 7 files changed, 32 insertions(+), 32 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 12e9531700e8..3685ee4efd4c 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -25661,6 +25661,17 @@ components: FlakyTestsSearchFilter: description: Search filter settings. properties: + include_history: + default: false + description: 'Whether to include the status change history for each flaky + test in the response. + + When set to true, each test will include a ''history'' array with chronological + status changes. + + Defaults to false.' + example: true + type: boolean query: default: '*' description: 'Search query following log syntax used to filter flaky tests, @@ -25716,17 +25727,6 @@ components: properties: filter: $ref: '#/components/schemas/FlakyTestsSearchFilter' - include_history: - default: false - description: 'Whether to include the status change history for each flaky - test in the response. - - When set to true, each test will include a `history` array with chronological - status changes. - - Defaults to false.' - example: true - type: boolean page: $ref: '#/components/schemas/FlakyTestsSearchPageOptions' sort: diff --git a/examples/v2/test-optimization/SearchFlakyTests.rb b/examples/v2/test-optimization/SearchFlakyTests.rb index a1f4e85d854f..738052db39d9 100644 --- a/examples/v2/test-optimization/SearchFlakyTests.rb +++ b/examples/v2/test-optimization/SearchFlakyTests.rb @@ -10,9 +10,9 @@ data: DatadogAPIClient::V2::FlakyTestsSearchRequestData.new({ attributes: DatadogAPIClient::V2::FlakyTestsSearchRequestAttributes.new({ filter: DatadogAPIClient::V2::FlakyTestsSearchFilter.new({ + include_history: true, query: 'flaky_test_state:active @git.repository.id_v2:"github.com/datadog/shopist"', }), - include_history: true, page: DatadogAPIClient::V2::FlakyTestsSearchPageOptions.new({ cursor: "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", limit: 25, diff --git a/examples/v2/test-optimization/SearchFlakyTests_1224086727.rb b/examples/v2/test-optimization/SearchFlakyTests_1224086727.rb index 3a73c924473d..4ae53253ddd8 100644 --- a/examples/v2/test-optimization/SearchFlakyTests_1224086727.rb +++ b/examples/v2/test-optimization/SearchFlakyTests_1224086727.rb @@ -10,9 +10,9 @@ data: DatadogAPIClient::V2::FlakyTestsSearchRequestData.new({ attributes: DatadogAPIClient::V2::FlakyTestsSearchRequestAttributes.new({ filter: DatadogAPIClient::V2::FlakyTestsSearchFilter.new({ + include_history: true, query: 'flaky_test_state:active @git.repository.id_v2:"github.com/datadog/shopist"', }), - include_history: true, page: DatadogAPIClient::V2::FlakyTestsSearchPageOptions.new({ cursor: "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", limit: 25, diff --git a/examples/v2/test-optimization/SearchFlakyTests_209064879.rb b/examples/v2/test-optimization/SearchFlakyTests_209064879.rb index 7f3a97502a82..bc9879461e72 100644 --- a/examples/v2/test-optimization/SearchFlakyTests_209064879.rb +++ b/examples/v2/test-optimization/SearchFlakyTests_209064879.rb @@ -11,12 +11,12 @@ attributes: DatadogAPIClient::V2::FlakyTestsSearchRequestAttributes.new({ filter: DatadogAPIClient::V2::FlakyTestsSearchFilter.new({ query: 'flaky_test_state:active @git.repository.id_v2:"github.com/datadog/shopist"', + include_history: true, }), page: DatadogAPIClient::V2::FlakyTestsSearchPageOptions.new({ limit: 10, }), sort: DatadogAPIClient::V2::FlakyTestsSearchSort::FQN_ASCENDING, - include_history: true, }), type: DatadogAPIClient::V2::FlakyTestsSearchRequestDataType::SEARCH_FLAKY_TESTS_REQUEST, }), diff --git a/features/v2/test_optimization.feature b/features/v2/test_optimization.feature index bbf7d87075ed..1c0e758a1e8b 100644 --- a/features/v2/test_optimization.feature +++ b/features/v2/test_optimization.feature @@ -13,7 +13,7 @@ Feature: Test Optimization Scenario: Search flaky tests returns "Bad Request" response Given operation "SearchFlakyTests" enabled And new "SearchFlakyTests" request - 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"}} + 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"}} When the request is sent Then the response status is 400 Bad Request @@ -29,7 +29,7 @@ Feature: Test Optimization Scenario: Search flaky tests returns "OK" response Given operation "SearchFlakyTests" enabled And new "SearchFlakyTests" request - 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"}} + 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"}} When the request is sent Then the response status is 200 OK @@ -45,7 +45,7 @@ Feature: Test Optimization Scenario: Search flaky tests returns "OK" response with history Given operation "SearchFlakyTests" enabled And new "SearchFlakyTests" request - 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"}} + 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"}} When the request is sent Then the response status is 200 OK And the response "data[0].attributes" has field "history" @@ -57,7 +57,7 @@ Feature: Test Optimization Scenario: Search flaky tests returns "OK" response with pagination Given operation "SearchFlakyTests" enabled And new "SearchFlakyTests" request - 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"}} + 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"}} When the request with pagination is sent Then the response status is 200 OK diff --git a/lib/datadog_api_client/v2/models/flaky_tests_search_filter.rb b/lib/datadog_api_client/v2/models/flaky_tests_search_filter.rb index e07d066034dc..ca11a189c9a1 100644 --- a/lib/datadog_api_client/v2/models/flaky_tests_search_filter.rb +++ b/lib/datadog_api_client/v2/models/flaky_tests_search_filter.rb @@ -21,6 +21,11 @@ module DatadogAPIClient::V2 class FlakyTestsSearchFilter include BaseGenericModel + # Whether to include the status change history for each flaky test in the response. + # When set to true, each test will include a 'history' array with chronological status changes. + # Defaults to false. + attr_accessor :include_history + # Search query following log syntax used to filter flaky tests, same as on Flaky Tests Management UI. The supported search keys are: # - `flaky_test_state` # - `flaky_test_category` @@ -40,6 +45,7 @@ class FlakyTestsSearchFilter # @!visibility private def self.attribute_map { + :'include_history' => :'include_history', :'query' => :'query' } end @@ -48,6 +54,7 @@ def self.attribute_map # @!visibility private def self.openapi_types { + :'include_history' => :'Boolean', :'query' => :'String' } end @@ -70,6 +77,10 @@ def initialize(attributes = {}) end } + if attributes.key?(:'include_history') + self.include_history = attributes[:'include_history'] + end + if attributes.key?(:'query') self.query = attributes[:'query'] end @@ -101,6 +112,7 @@ def to_hash def ==(o) return true if self.equal?(o) self.class == o.class && + include_history == o.include_history && query == o.query && additional_properties == o.additional_properties end @@ -109,7 +121,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [query, additional_properties].hash + [include_history, query, additional_properties].hash end end end diff --git a/lib/datadog_api_client/v2/models/flaky_tests_search_request_attributes.rb b/lib/datadog_api_client/v2/models/flaky_tests_search_request_attributes.rb index 6123d48bf891..8dfed991364a 100644 --- a/lib/datadog_api_client/v2/models/flaky_tests_search_request_attributes.rb +++ b/lib/datadog_api_client/v2/models/flaky_tests_search_request_attributes.rb @@ -24,11 +24,6 @@ class FlakyTestsSearchRequestAttributes # Search filter settings. attr_accessor :filter - # Whether to include the status change history for each flaky test in the response. - # When set to true, each test will include a `history` array with chronological status changes. - # Defaults to false. - attr_accessor :include_history - # Pagination attributes for listing flaky tests. attr_accessor :page @@ -42,7 +37,6 @@ class FlakyTestsSearchRequestAttributes def self.attribute_map { :'filter' => :'filter', - :'include_history' => :'include_history', :'page' => :'page', :'sort' => :'sort' } @@ -53,7 +47,6 @@ def self.attribute_map def self.openapi_types { :'filter' => :'FlakyTestsSearchFilter', - :'include_history' => :'Boolean', :'page' => :'FlakyTestsSearchPageOptions', :'sort' => :'FlakyTestsSearchSort' } @@ -81,10 +74,6 @@ def initialize(attributes = {}) self.filter = attributes[:'filter'] end - if attributes.key?(:'include_history') - self.include_history = attributes[:'include_history'] - end - if attributes.key?(:'page') self.page = attributes[:'page'] end @@ -121,7 +110,6 @@ def ==(o) return true if self.equal?(o) self.class == o.class && filter == o.filter && - include_history == o.include_history && page == o.page && sort == o.sort && additional_properties == o.additional_properties @@ -131,7 +119,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [filter, include_history, page, sort, additional_properties].hash + [filter, page, sort, additional_properties].hash end end end