From 1ca5e4aa0bf415fefc4e942e076220e1640ac40f Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 29 Apr 2026 13:39:52 +0000 Subject: [PATCH] Regenerate client from commit 1ed8b36 of spec repo --- .generator/schemas/v2/openapi.yaml | 21 ------ api/datadog/configuration.go | 7 -- api/datadogV2/api_test_optimization.go | 65 ------------------- .../DeleteTestOptimizationServiceSettings.go | 1 - .../GetFlakyTestsManagementPolicies.go | 1 - .../GetTestOptimizationServiceSettings.go | 1 - .../v2/test-optimization/SearchFlakyTests.go | 1 - .../SearchFlakyTests_1224086727.go | 1 - .../v2/test-optimization/UpdateFlakyTests.go | 1 - .../UpdateFlakyTestsManagementPolicies.go | 1 - .../UpdateTestOptimizationServiceSettings.go | 1 - .../features/v2/test_optimization.feature | 60 ++++++----------- 12 files changed, 20 insertions(+), 141 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 9041f8a0039..ba55aa7a1b3 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -90580,9 +90580,6 @@ paths: operator: OR permissions: - test_optimization_settings_write - x-unstable: |- - **Note**: This endpoint is in preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: description: |- Retrieve Flaky Tests Management repository-level policies for the given repository. @@ -90627,9 +90624,6 @@ paths: operator: OR permissions: - test_optimization_read - x-unstable: |- - **Note**: This endpoint is in preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/ci/test-optimization/settings/service: delete: description: |- @@ -90673,9 +90667,6 @@ paths: operator: OR permissions: - test_optimization_settings_write - x-unstable: |- - **Note**: This endpoint is in preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). patch: description: |- Partially update Test Optimization settings for a specific service identified by repository, service name, and environment. @@ -90729,9 +90720,6 @@ paths: operator: OR permissions: - test_optimization_settings_write - x-unstable: |- - **Note**: This endpoint is in preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: description: |- Retrieve Test Optimization settings for a specific service identified by repository, service name, and environment. @@ -90778,9 +90766,6 @@ paths: operator: OR permissions: - test_optimization_read - x-unstable: |- - **Note**: This endpoint is in preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/ci/tests/analytics/aggregate: post: description: |- @@ -132177,9 +132162,6 @@ paths: operator: OR permissions: - test_optimization_write - x-unstable: |- - **Note**: This endpoint is in preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). post: description: |- List endpoint returning flaky tests from Flaky Test Management. Results are paginated. @@ -132246,9 +132228,6 @@ paths: operator: OR permissions: - test_optimization_read - x-unstable: |- - **Note**: This endpoint is in preview and may be subject to change. - If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/usage/application_security: get: deprecated: true diff --git a/api/datadog/configuration.go b/api/datadog/configuration.go index ee3b734d974..0404865d6d2 100644 --- a/api/datadog/configuration.go +++ b/api/datadog/configuration.go @@ -721,13 +721,6 @@ func NewConfiguration() *Configuration { "v2.GetChangeRequest": false, "v2.UpdateChangeRequest": false, "v2.UpdateChangeRequestDecision": false, - "v2.DeleteTestOptimizationServiceSettings": false, - "v2.GetFlakyTestsManagementPolicies": false, - "v2.GetTestOptimizationServiceSettings": false, - "v2.SearchFlakyTests": false, - "v2.UpdateFlakyTests": false, - "v2.UpdateFlakyTestsManagementPolicies": false, - "v2.UpdateTestOptimizationServiceSettings": false, "v2.CreateAWSCloudAuthPersonaMapping": false, "v2.DeleteAWSCloudAuthPersonaMapping": false, "v2.GetAWSCloudAuthPersonaMapping": false, diff --git a/api/datadogV2/api_test_optimization.go b/api/datadogV2/api_test_optimization.go index e241b115229..ca9f7ca2c8a 100644 --- a/api/datadogV2/api_test_optimization.go +++ b/api/datadogV2/api_test_optimization.go @@ -6,8 +6,6 @@ package datadogV2 import ( _context "context" - _fmt "fmt" - _log "log" _nethttp "net/http" _neturl "net/url" @@ -25,15 +23,6 @@ func (a *TestOptimizationApi) DeleteTestOptimizationServiceSettings(ctx _context localVarPostBody interface{} ) - operationId := "v2.DeleteTestOptimizationServiceSettings" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.TestOptimizationApi.DeleteTestOptimizationServiceSettings") if err != nil { return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -105,15 +94,6 @@ func (a *TestOptimizationApi) GetFlakyTestsManagementPolicies(ctx _context.Conte localVarReturnValue TestOptimizationFlakyTestsManagementPoliciesResponse ) - operationId := "v2.GetFlakyTestsManagementPolicies" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.TestOptimizationApi.GetFlakyTestsManagementPolicies") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -194,15 +174,6 @@ func (a *TestOptimizationApi) GetTestOptimizationServiceSettings(ctx _context.Co localVarReturnValue TestOptimizationServiceSettingsResponse ) - operationId := "v2.GetTestOptimizationServiceSettings" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.TestOptimizationApi.GetTestOptimizationServiceSettings") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -321,15 +292,6 @@ func (a *TestOptimizationApi) SearchFlakyTests(ctx _context.Context, o ...Search optionalParams = o[0] } - operationId := "v2.SearchFlakyTests" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.TestOptimizationApi.SearchFlakyTests") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -482,15 +444,6 @@ func (a *TestOptimizationApi) UpdateFlakyTests(ctx _context.Context, body Update localVarReturnValue UpdateFlakyTestsResponse ) - operationId := "v2.UpdateFlakyTests" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.TestOptimizationApi.UpdateFlakyTests") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -572,15 +525,6 @@ func (a *TestOptimizationApi) UpdateFlakyTestsManagementPolicies(ctx _context.Co localVarReturnValue TestOptimizationFlakyTestsManagementPoliciesResponse ) - operationId := "v2.UpdateFlakyTestsManagementPolicies" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.TestOptimizationApi.UpdateFlakyTestsManagementPolicies") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} @@ -662,15 +606,6 @@ func (a *TestOptimizationApi) UpdateTestOptimizationServiceSettings(ctx _context localVarReturnValue TestOptimizationServiceSettingsResponse ) - operationId := "v2.UpdateTestOptimizationServiceSettings" - isOperationEnabled := a.Client.Cfg.IsUnstableOperationEnabled(operationId) - if !isOperationEnabled { - return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: _fmt.Sprintf("Unstable operation '%s' is disabled", operationId)} - } - if isOperationEnabled && a.Client.Cfg.Debug { - _log.Printf("WARNING: Using unstable operation '%s'", operationId) - } - localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v2.TestOptimizationApi.UpdateTestOptimizationServiceSettings") if err != nil { return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} diff --git a/examples/v2/test-optimization/DeleteTestOptimizationServiceSettings.go b/examples/v2/test-optimization/DeleteTestOptimizationServiceSettings.go index 95a98898764..aaaed349e7d 100644 --- a/examples/v2/test-optimization/DeleteTestOptimizationServiceSettings.go +++ b/examples/v2/test-optimization/DeleteTestOptimizationServiceSettings.go @@ -24,7 +24,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.DeleteTestOptimizationServiceSettings", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewTestOptimizationApi(apiClient) r, err := api.DeleteTestOptimizationServiceSettings(ctx, body) diff --git a/examples/v2/test-optimization/GetFlakyTestsManagementPolicies.go b/examples/v2/test-optimization/GetFlakyTestsManagementPolicies.go index 9351d70518f..b9f19e656f0 100644 --- a/examples/v2/test-optimization/GetFlakyTestsManagementPolicies.go +++ b/examples/v2/test-optimization/GetFlakyTestsManagementPolicies.go @@ -23,7 +23,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.GetFlakyTestsManagementPolicies", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewTestOptimizationApi(apiClient) resp, r, err := api.GetFlakyTestsManagementPolicies(ctx, body) diff --git a/examples/v2/test-optimization/GetTestOptimizationServiceSettings.go b/examples/v2/test-optimization/GetTestOptimizationServiceSettings.go index b2e9256966d..2cf6f71bf80 100644 --- a/examples/v2/test-optimization/GetTestOptimizationServiceSettings.go +++ b/examples/v2/test-optimization/GetTestOptimizationServiceSettings.go @@ -25,7 +25,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.GetTestOptimizationServiceSettings", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewTestOptimizationApi(apiClient) resp, r, err := api.GetTestOptimizationServiceSettings(ctx, body) diff --git a/examples/v2/test-optimization/SearchFlakyTests.go b/examples/v2/test-optimization/SearchFlakyTests.go index d69de540fca..6e678bd11fd 100644 --- a/examples/v2/test-optimization/SearchFlakyTests.go +++ b/examples/v2/test-optimization/SearchFlakyTests.go @@ -31,7 +31,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.SearchFlakyTests", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewTestOptimizationApi(apiClient) resp, r, err := api.SearchFlakyTests(ctx, *datadogV2.NewSearchFlakyTestsOptionalParameters().WithBody(body)) diff --git a/examples/v2/test-optimization/SearchFlakyTests_1224086727.go b/examples/v2/test-optimization/SearchFlakyTests_1224086727.go index e557a487d3d..207b86db216 100644 --- a/examples/v2/test-optimization/SearchFlakyTests_1224086727.go +++ b/examples/v2/test-optimization/SearchFlakyTests_1224086727.go @@ -31,7 +31,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.SearchFlakyTests", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewTestOptimizationApi(apiClient) resp, _ := api.SearchFlakyTestsWithPagination(ctx, *datadogV2.NewSearchFlakyTestsOptionalParameters().WithBody(body)) diff --git a/examples/v2/test-optimization/UpdateFlakyTests.go b/examples/v2/test-optimization/UpdateFlakyTests.go index 5391a56999a..e8abd96f1f4 100644 --- a/examples/v2/test-optimization/UpdateFlakyTests.go +++ b/examples/v2/test-optimization/UpdateFlakyTests.go @@ -28,7 +28,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.UpdateFlakyTests", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewTestOptimizationApi(apiClient) resp, r, err := api.UpdateFlakyTests(ctx, body) diff --git a/examples/v2/test-optimization/UpdateFlakyTestsManagementPolicies.go b/examples/v2/test-optimization/UpdateFlakyTestsManagementPolicies.go index a193a6758af..5b588e7b22b 100644 --- a/examples/v2/test-optimization/UpdateFlakyTestsManagementPolicies.go +++ b/examples/v2/test-optimization/UpdateFlakyTestsManagementPolicies.go @@ -72,7 +72,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.UpdateFlakyTestsManagementPolicies", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewTestOptimizationApi(apiClient) resp, r, err := api.UpdateFlakyTestsManagementPolicies(ctx, body) diff --git a/examples/v2/test-optimization/UpdateTestOptimizationServiceSettings.go b/examples/v2/test-optimization/UpdateTestOptimizationServiceSettings.go index 1e0d1c98cfa..e6d2f85b54a 100644 --- a/examples/v2/test-optimization/UpdateTestOptimizationServiceSettings.go +++ b/examples/v2/test-optimization/UpdateTestOptimizationServiceSettings.go @@ -31,7 +31,6 @@ func main() { } ctx := datadog.NewDefaultContext(context.Background()) configuration := datadog.NewConfiguration() - configuration.SetUnstableOperationEnabled("v2.UpdateTestOptimizationServiceSettings", true) apiClient := datadog.NewAPIClient(configuration) api := datadogV2.NewTestOptimizationApi(apiClient) resp, r, err := api.UpdateTestOptimizationServiceSettings(ctx, body) diff --git a/tests/scenarios/features/v2/test_optimization.feature b/tests/scenarios/features/v2/test_optimization.feature index 8838a4998ee..c363d29f04c 100644 --- a/tests/scenarios/features/v2/test_optimization.feature +++ b/tests/scenarios/features/v2/test_optimization.feature @@ -11,48 +11,42 @@ Feature: Test Optimization @generated @skip @team:DataDog/ci-app-backend Scenario: Delete Test Optimization service settings returns "Bad Request" response - Given operation "DeleteTestOptimizationServiceSettings" enabled - And new "DeleteTestOptimizationServiceSettings" request + Given new "DeleteTestOptimizationServiceSettings" request And body with value {"data": {"attributes": {"env": "prod", "repository_id": "github.com/datadog/shopist", "service_name": "shopist"}, "type": "test_optimization_delete_service_settings_request"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/ci-app-backend Scenario: Delete Test Optimization service settings returns "No Content" response - Given operation "DeleteTestOptimizationServiceSettings" enabled - And new "DeleteTestOptimizationServiceSettings" request + Given new "DeleteTestOptimizationServiceSettings" request And body with value {"data": {"attributes": {"env": "prod", "repository_id": "github.com/datadog/shopist", "service_name": "shopist"}, "type": "test_optimization_delete_service_settings_request"}} When the request is sent Then the response status is 204 No Content @generated @skip @team:DataDog/ci-app-backend Scenario: Delete Test Optimization service settings returns "Not Found" response - Given operation "DeleteTestOptimizationServiceSettings" enabled - And new "DeleteTestOptimizationServiceSettings" request + Given new "DeleteTestOptimizationServiceSettings" request And body with value {"data": {"attributes": {"env": "prod", "repository_id": "github.com/datadog/shopist", "service_name": "shopist"}, "type": "test_optimization_delete_service_settings_request"}} When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/ci-app-backend Scenario: Get Flaky Tests Management policies returns "Bad Request" response - Given operation "GetFlakyTestsManagementPolicies" enabled - And new "GetFlakyTestsManagementPolicies" request + Given new "GetFlakyTestsManagementPolicies" request And body with value {"data": {"attributes": {"repository_id": "github.com/datadog/shopist"}, "type": "test_optimization_get_flaky_tests_management_policies_request"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/ci-app-backend Scenario: Get Flaky Tests Management policies returns "Not Found" response - Given operation "GetFlakyTestsManagementPolicies" enabled - And new "GetFlakyTestsManagementPolicies" request + Given new "GetFlakyTestsManagementPolicies" request And body with value {"data": {"attributes": {"repository_id": "github.com/datadog/shopist"}, "type": "test_optimization_get_flaky_tests_management_policies_request"}} When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/ci-app-backend Scenario: Get Flaky Tests Management policies returns "OK" response - Given operation "GetFlakyTestsManagementPolicies" enabled - And new "GetFlakyTestsManagementPolicies" request + Given new "GetFlakyTestsManagementPolicies" request And body with value {"data": {"attributes": {"repository_id": "github.com/datadog/shopist"}, "type": "test_optimization_get_flaky_tests_management_policies_request"}} When the request is sent Then the response status is 200 OK @@ -67,24 +61,21 @@ Feature: Test Optimization @generated @skip @team:DataDog/ci-app-backend Scenario: Get Test Optimization service settings returns "Bad Request" response - Given operation "GetTestOptimizationServiceSettings" enabled - And new "GetTestOptimizationServiceSettings" request + Given new "GetTestOptimizationServiceSettings" request And body with value {"data": {"attributes": {"env": "prod", "repository_id": "github.com/datadog/shopist", "service_name": "shopist"}, "type": "test_optimization_get_service_settings_request"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/ci-app-backend Scenario: Get Test Optimization service settings returns "Not Found" response - Given operation "GetTestOptimizationServiceSettings" enabled - And new "GetTestOptimizationServiceSettings" request + Given new "GetTestOptimizationServiceSettings" request And body with value {"data": {"attributes": {"env": "prod", "repository_id": "github.com/datadog/shopist", "service_name": "shopist"}, "type": "test_optimization_get_service_settings_request"}} When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/ci-app-backend Scenario: Get Test Optimization service settings returns "OK" response - Given operation "GetTestOptimizationServiceSettings" enabled - And new "GetTestOptimizationServiceSettings" request + Given new "GetTestOptimizationServiceSettings" request And body with value {"data": {"attributes": {"env": "prod", "repository_id": "github.com/datadog/shopist", "service_name": "shopist"}, "type": "test_optimization_get_service_settings_request"}} When the request is sent Then the response status is 200 OK @@ -115,8 +106,7 @@ Feature: Test Optimization @generated @skip @team:DataDog/ci-app-backend Scenario: Search flaky tests returns "Bad Request" response - Given operation "SearchFlakyTests" enabled - And new "SearchFlakyTests" request + Given new "SearchFlakyTests" 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 @@ -131,8 +121,7 @@ Feature: Test Optimization @generated @skip @team:DataDog/ci-app-backend Scenario: Search flaky tests returns "OK" response - Given operation "SearchFlakyTests" enabled - And new "SearchFlakyTests" request + Given new "SearchFlakyTests" 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 @@ -161,32 +150,28 @@ Feature: Test Optimization @generated @skip @team:DataDog/ci-app-backend @with-pagination Scenario: Search flaky tests returns "OK" response with pagination - Given operation "SearchFlakyTests" enabled - And new "SearchFlakyTests" request + Given new "SearchFlakyTests" 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 @generated @skip @team:DataDog/ci-app-backend Scenario: Update Flaky Tests Management policies returns "Bad Request" response - Given operation "UpdateFlakyTestsManagementPolicies" enabled - And new "UpdateFlakyTestsManagementPolicies" request + Given new "UpdateFlakyTestsManagementPolicies" request And body with value {"data": {"attributes": {"attempt_to_fix": {"retries": 3}, "disabled": {"auto_disable_rule": {"enabled": false, "status": "active", "window_seconds": 3600}, "branch_rule": {"branches": ["main"], "enabled": true, "excluded_branches": [], "excluded_test_services": []}, "enabled": false, "failure_rate_rule": {"branches": [], "enabled": false, "min_runs": 10, "status": "active", "threshold": 0.5}}, "quarantined": {"auto_quarantine_rule": {"enabled": true, "window_seconds": 3600}, "branch_rule": {"branches": ["main"], "enabled": true, "excluded_branches": [], "excluded_test_services": []}, "enabled": true, "failure_rate_rule": {"branches": ["main"], "enabled": true, "min_runs": 10, "threshold": 0.5}}, "repository_id": "github.com/datadog/shopist"}, "type": "test_optimization_update_flaky_tests_management_policies_request"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/ci-app-backend Scenario: Update Flaky Tests Management policies returns "Not Found" response - Given operation "UpdateFlakyTestsManagementPolicies" enabled - And new "UpdateFlakyTestsManagementPolicies" request + Given new "UpdateFlakyTestsManagementPolicies" request And body with value {"data": {"attributes": {"attempt_to_fix": {"retries": 3}, "disabled": {"auto_disable_rule": {"enabled": false, "status": "active", "window_seconds": 3600}, "branch_rule": {"branches": ["main"], "enabled": true, "excluded_branches": [], "excluded_test_services": []}, "enabled": false, "failure_rate_rule": {"branches": [], "enabled": false, "min_runs": 10, "status": "active", "threshold": 0.5}}, "quarantined": {"auto_quarantine_rule": {"enabled": true, "window_seconds": 3600}, "branch_rule": {"branches": ["main"], "enabled": true, "excluded_branches": [], "excluded_test_services": []}, "enabled": true, "failure_rate_rule": {"branches": ["main"], "enabled": true, "min_runs": 10, "threshold": 0.5}}, "repository_id": "github.com/datadog/shopist"}, "type": "test_optimization_update_flaky_tests_management_policies_request"}} When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/ci-app-backend Scenario: Update Flaky Tests Management policies returns "OK" response - Given operation "UpdateFlakyTestsManagementPolicies" enabled - And new "UpdateFlakyTestsManagementPolicies" request + Given new "UpdateFlakyTestsManagementPolicies" request And body with value {"data": {"attributes": {"attempt_to_fix": {"retries": 3}, "disabled": {"auto_disable_rule": {"enabled": false, "status": "active", "window_seconds": 3600}, "branch_rule": {"branches": ["main"], "enabled": true, "excluded_branches": [], "excluded_test_services": []}, "enabled": false, "failure_rate_rule": {"branches": [], "enabled": false, "min_runs": 10, "status": "active", "threshold": 0.5}}, "quarantined": {"auto_quarantine_rule": {"enabled": true, "window_seconds": 3600}, "branch_rule": {"branches": ["main"], "enabled": true, "excluded_branches": [], "excluded_test_services": []}, "enabled": true, "failure_rate_rule": {"branches": ["main"], "enabled": true, "min_runs": 10, "threshold": 0.5}}, "repository_id": "github.com/datadog/shopist"}, "type": "test_optimization_update_flaky_tests_management_policies_request"}} When the request is sent Then the response status is 200 OK @@ -201,24 +186,21 @@ Feature: Test Optimization @generated @skip @team:DataDog/ci-app-backend Scenario: Update Test Optimization service settings returns "Bad Request" response - Given operation "UpdateTestOptimizationServiceSettings" enabled - And new "UpdateTestOptimizationServiceSettings" request + Given new "UpdateTestOptimizationServiceSettings" request And body with value {"data": {"attributes": {"auto_test_retries_enabled": false, "code_coverage_enabled": false, "early_flake_detection_enabled": false, "env": "prod", "failed_test_replay_enabled": false, "pr_comments_enabled": true, "repository_id": "github.com/datadog/shopist", "service_name": "shopist", "test_impact_analysis_enabled": false}, "type": "test_optimization_update_service_settings_request"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/ci-app-backend Scenario: Update Test Optimization service settings returns "Not Found" response - Given operation "UpdateTestOptimizationServiceSettings" enabled - And new "UpdateTestOptimizationServiceSettings" request + Given new "UpdateTestOptimizationServiceSettings" request And body with value {"data": {"attributes": {"auto_test_retries_enabled": false, "code_coverage_enabled": false, "early_flake_detection_enabled": false, "env": "prod", "failed_test_replay_enabled": false, "pr_comments_enabled": true, "repository_id": "github.com/datadog/shopist", "service_name": "shopist", "test_impact_analysis_enabled": false}, "type": "test_optimization_update_service_settings_request"}} When the request is sent Then the response status is 404 Not Found @generated @skip @team:DataDog/ci-app-backend Scenario: Update Test Optimization service settings returns "OK" response - Given operation "UpdateTestOptimizationServiceSettings" enabled - And new "UpdateTestOptimizationServiceSettings" request + Given new "UpdateTestOptimizationServiceSettings" request And body with value {"data": {"attributes": {"auto_test_retries_enabled": false, "code_coverage_enabled": false, "early_flake_detection_enabled": false, "env": "prod", "failed_test_replay_enabled": false, "pr_comments_enabled": true, "repository_id": "github.com/datadog/shopist", "service_name": "shopist", "test_impact_analysis_enabled": false}, "type": "test_optimization_update_service_settings_request"}} When the request is sent Then the response status is 200 OK @@ -233,16 +215,14 @@ Feature: Test Optimization @generated @skip @team:DataDog/ci-app-backend Scenario: Update flaky test states returns "Bad Request" response - Given operation "UpdateFlakyTests" enabled - And new "UpdateFlakyTests" request + Given new "UpdateFlakyTests" request And body with value {"data": {"attributes": {"tests": [{"id": "4eb1887a8adb1847", "new_state": "active"}]}, "type": "update_flaky_test_state_request"}} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/ci-app-backend Scenario: Update flaky test states returns "OK" response - Given operation "UpdateFlakyTests" enabled - And new "UpdateFlakyTests" request + Given new "UpdateFlakyTests" request And body with value {"data": {"attributes": {"tests": [{"id": "4eb1887a8adb1847", "new_state": "active"}]}, "type": "update_flaky_test_state_request"}} When the request is sent Then the response status is 200 OK