From 391d8eb817b12979f29ff24922905b95fce863a1 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 19 Jun 2026 08:05:01 +0000 Subject: [PATCH] Regenerate client from commit e639938 of spec repo --- .generator/schemas/v2/openapi.yaml | 98 ++++++++++++++----- .../UpdateTestOptimizationServiceSettings.py | 9 +- .../v2/api/test_optimization_api.py | 4 +- ...ptimization_service_settings_attributes.py | 42 +++++++- ...ate_service_settings_request_attributes.py | 53 ++++++++-- ...on_update_service_settings_request_data.py | 1 + tests/v2/features/test_optimization.feature | 6 +- 7 files changed, 175 insertions(+), 38 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 500a331990..65d674fb23 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -102910,14 +102910,26 @@ components: description: Whether Auto Test Retries are enabled for this service. example: false type: boolean + auto_test_retries_enabled_is_overridden: + description: Whether the Auto Test Retries setting is overridden at the service level. + example: false + type: boolean code_coverage_enabled: description: Whether Code Coverage is enabled for this service. example: false type: boolean + code_coverage_enabled_is_overridden: + description: Whether the Code Coverage setting is overridden at the service level. + example: false + type: boolean early_flake_detection_enabled: description: Whether Early Flake Detection is enabled for this service. example: false type: boolean + early_flake_detection_enabled_is_overridden: + description: Whether the Early Flake Detection setting is overridden at the service level. + example: false + type: boolean env: description: The environment name. example: prod @@ -102926,9 +102938,13 @@ components: description: Whether Failed Test Replay is enabled for this service. example: false type: boolean + failed_test_replay_enabled_is_overridden: + description: Whether the Failed Test Replay setting is overridden at the service level. + example: false + type: boolean pr_comments_enabled: - description: Whether PR Comments are enabled for this service. - example: true + description: Whether PR Comments are enabled. This value reflects the repository-level setting and cannot be overridden at the service level. + example: false type: boolean repository_id: description: The repository identifier. @@ -102940,7 +102956,11 @@ components: type: string test_impact_analysis_enabled: description: Whether Test Impact Analysis is enabled for this service. - example: false + example: true + type: boolean + test_impact_analysis_enabled_is_overridden: + description: Whether the Test Impact Analysis setting is overridden at the service level. + example: true type: boolean type: object TestOptimizationServiceSettingsData: @@ -102950,7 +102970,7 @@ components: $ref: "#/components/schemas/TestOptimizationServiceSettingsAttributes" id: description: Unique identifier for the service settings. - example: github.com/datadog/shopist::shopist::prod + example: 9b8a7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d type: string type: $ref: "#/components/schemas/TestOptimizationServiceSettingsType" @@ -102993,17 +103013,30 @@ components: description: |- Attributes for updating Test Optimization service settings. All non-required fields are optional; only provided fields will be updated. + Setting a field to `null` is a no-op. To reset a setting to inherit from the repository level, use the corresponding `_inherit` field. properties: auto_test_retries_enabled: - description: Whether Auto Test Retries are enabled for this service. + description: Whether Auto Test Retries are enabled for this service. Setting to `null` is a no-op; use `auto_test_retries_enabled_inherit` to reset to repository-level inheritance. + example: false + type: boolean + auto_test_retries_enabled_inherit: + description: When `true`, resets the Auto Test Retries setting to inherit from the repository level. example: false type: boolean code_coverage_enabled: - description: Whether Code Coverage is enabled for this service. + description: Whether Code Coverage is enabled for this service. Setting to `null` is a no-op; use `code_coverage_enabled_inherit` to reset to repository-level inheritance. + example: false + type: boolean + code_coverage_enabled_inherit: + description: When `true`, resets the Code Coverage setting to inherit from the repository level. example: false type: boolean early_flake_detection_enabled: - description: Whether Early Flake Detection is enabled for this service. + description: Whether Early Flake Detection is enabled for this service. Setting to `null` is a no-op; use `early_flake_detection_enabled_inherit` to reset to repository-level inheritance. + example: false + type: boolean + early_flake_detection_enabled_inherit: + description: When `true`, resets the Early Flake Detection setting to inherit from the repository level. example: false type: boolean env: @@ -103011,12 +103044,16 @@ components: example: prod type: string failed_test_replay_enabled: - description: Whether Failed Test Replay is enabled for this service. + description: Whether Failed Test Replay is enabled for this service. Setting to `null` is a no-op; use `failed_test_replay_enabled_inherit` to reset to repository-level inheritance. + example: false + type: boolean + failed_test_replay_enabled_inherit: + description: When `true`, resets the Failed Test Replay setting to inherit from the repository level. example: false type: boolean pr_comments_enabled: - description: Whether PR Comments are enabled for this service. - example: true + description: This field is ignored. PR Comments cannot be overridden at the service level. + example: false type: boolean repository_id: description: The repository identifier. @@ -103029,8 +103066,12 @@ components: minLength: 1 type: string test_impact_analysis_enabled: - description: Whether Test Impact Analysis is enabled for this service. - example: false + description: Whether Test Impact Analysis is enabled for this service. Setting to `null` is a no-op; use `test_impact_analysis_enabled_inherit` to reset to repository-level inheritance. + example: true + type: boolean + test_impact_analysis_enabled_inherit: + description: When `true`, resets the Test Impact Analysis setting to inherit from the repository level. + example: true type: boolean required: - repository_id @@ -121112,7 +121153,9 @@ paths: patch: description: |- Partially update Test Optimization settings for a specific service identified by repository, service name, and environment. - Only provided fields are updated; null or omitted fields are left unchanged. + Only provided fields are updated; setting a field to `null` is a no-op. + To reset a setting to inherit from the repository level, use the corresponding `_inherit` field. + The `pr_comments_enabled` field is ignored as it cannot be overridden at the service level. operationId: UpdateTestOptimizationServiceSettings requestBody: content: @@ -121122,15 +121165,10 @@ paths: 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/test-service service_name: test-service - test_impact_analysis_enabled: false + test_impact_analysis_enabled_inherit: true type: test_optimization_update_service_settings_request schema: $ref: "#/components/schemas/TestOptimizationUpdateServiceSettingsRequest" @@ -121145,15 +121183,20 @@ paths: data: attributes: auto_test_retries_enabled: false + auto_test_retries_enabled_is_overridden: false code_coverage_enabled: false + code_coverage_enabled_is_overridden: false early_flake_detection_enabled: false + early_flake_detection_enabled_is_overridden: false env: prod failed_test_replay_enabled: false - pr_comments_enabled: true + failed_test_replay_enabled_is_overridden: false + pr_comments_enabled: false repository_id: github.com/datadog/test-service service_name: test-service - test_impact_analysis_enabled: false - id: github.com/datadog/test-service::test-service::prod + test_impact_analysis_enabled: true + test_impact_analysis_enabled_is_overridden: true + id: 9b8a7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d type: test_optimization_service_settings schema: $ref: "#/components/schemas/TestOptimizationServiceSettingsResponse" @@ -121207,15 +121250,20 @@ paths: data: attributes: auto_test_retries_enabled: false + auto_test_retries_enabled_is_overridden: false code_coverage_enabled: false + code_coverage_enabled_is_overridden: false early_flake_detection_enabled: false + early_flake_detection_enabled_is_overridden: false env: prod failed_test_replay_enabled: false - pr_comments_enabled: true + failed_test_replay_enabled_is_overridden: false + pr_comments_enabled: false repository_id: github.com/datadog/test-service service_name: test-service - test_impact_analysis_enabled: false - id: github.com/datadog/test-service::test-service::prod + test_impact_analysis_enabled: true + test_impact_analysis_enabled_is_overridden: true + id: 9b8a7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d type: test_optimization_service_settings schema: $ref: "#/components/schemas/TestOptimizationServiceSettingsResponse" diff --git a/examples/v2/test-optimization/UpdateTestOptimizationServiceSettings.py b/examples/v2/test-optimization/UpdateTestOptimizationServiceSettings.py index d7badb31b6..1f12f98d8a 100644 --- a/examples/v2/test-optimization/UpdateTestOptimizationServiceSettings.py +++ b/examples/v2/test-optimization/UpdateTestOptimizationServiceSettings.py @@ -21,14 +21,19 @@ data=TestOptimizationUpdateServiceSettingsRequestData( attributes=TestOptimizationUpdateServiceSettingsRequestAttributes( auto_test_retries_enabled=False, + auto_test_retries_enabled_inherit=False, code_coverage_enabled=False, + code_coverage_enabled_inherit=False, early_flake_detection_enabled=False, + early_flake_detection_enabled_inherit=False, env="prod", failed_test_replay_enabled=False, - pr_comments_enabled=True, + failed_test_replay_enabled_inherit=False, + pr_comments_enabled=False, repository_id="github.com/datadog/shopist", service_name="shopist", - test_impact_analysis_enabled=False, + test_impact_analysis_enabled=True, + test_impact_analysis_enabled_inherit=True, ), type=TestOptimizationUpdateServiceSettingsRequestDataType.TEST_OPTIMIZATION_UPDATE_SERVICE_SETTINGS_REQUEST, ), diff --git a/src/datadog_api_client/v2/api/test_optimization_api.py b/src/datadog_api_client/v2/api/test_optimization_api.py index 045a0bea22..e8de168d1b 100644 --- a/src/datadog_api_client/v2/api/test_optimization_api.py +++ b/src/datadog_api_client/v2/api/test_optimization_api.py @@ -342,7 +342,9 @@ def update_test_optimization_service_settings( """Update Test Optimization service settings. Partially update Test Optimization settings for a specific service identified by repository, service name, and environment. - Only provided fields are updated; null or omitted fields are left unchanged. + Only provided fields are updated; setting a field to ``null`` is a no-op. + To reset a setting to inherit from the repository level, use the corresponding ``_inherit`` field. + The ``pr_comments_enabled`` field is ignored as it cannot be overridden at the service level. :type body: TestOptimizationUpdateServiceSettingsRequest :rtype: TestOptimizationServiceSettingsResponse diff --git a/src/datadog_api_client/v2/model/test_optimization_service_settings_attributes.py b/src/datadog_api_client/v2/model/test_optimization_service_settings_attributes.py index 47f4f32c1f..2d26542e79 100644 --- a/src/datadog_api_client/v2/model/test_optimization_service_settings_attributes.py +++ b/src/datadog_api_client/v2/model/test_optimization_service_settings_attributes.py @@ -18,39 +18,54 @@ class TestOptimizationServiceSettingsAttributes(ModelNormal): def openapi_types(_): return { "auto_test_retries_enabled": (bool,), + "auto_test_retries_enabled_is_overridden": (bool,), "code_coverage_enabled": (bool,), + "code_coverage_enabled_is_overridden": (bool,), "early_flake_detection_enabled": (bool,), + "early_flake_detection_enabled_is_overridden": (bool,), "env": (str,), "failed_test_replay_enabled": (bool,), + "failed_test_replay_enabled_is_overridden": (bool,), "pr_comments_enabled": (bool,), "repository_id": (str,), "service_name": (str,), "test_impact_analysis_enabled": (bool,), + "test_impact_analysis_enabled_is_overridden": (bool,), } attribute_map = { "auto_test_retries_enabled": "auto_test_retries_enabled", + "auto_test_retries_enabled_is_overridden": "auto_test_retries_enabled_is_overridden", "code_coverage_enabled": "code_coverage_enabled", + "code_coverage_enabled_is_overridden": "code_coverage_enabled_is_overridden", "early_flake_detection_enabled": "early_flake_detection_enabled", + "early_flake_detection_enabled_is_overridden": "early_flake_detection_enabled_is_overridden", "env": "env", "failed_test_replay_enabled": "failed_test_replay_enabled", + "failed_test_replay_enabled_is_overridden": "failed_test_replay_enabled_is_overridden", "pr_comments_enabled": "pr_comments_enabled", "repository_id": "repository_id", "service_name": "service_name", "test_impact_analysis_enabled": "test_impact_analysis_enabled", + "test_impact_analysis_enabled_is_overridden": "test_impact_analysis_enabled_is_overridden", } def __init__( self_, auto_test_retries_enabled: Union[bool, UnsetType] = unset, + auto_test_retries_enabled_is_overridden: Union[bool, UnsetType] = unset, code_coverage_enabled: Union[bool, UnsetType] = unset, + code_coverage_enabled_is_overridden: Union[bool, UnsetType] = unset, early_flake_detection_enabled: Union[bool, UnsetType] = unset, + early_flake_detection_enabled_is_overridden: Union[bool, UnsetType] = unset, env: Union[str, UnsetType] = unset, failed_test_replay_enabled: Union[bool, UnsetType] = unset, + failed_test_replay_enabled_is_overridden: Union[bool, UnsetType] = unset, pr_comments_enabled: Union[bool, UnsetType] = unset, repository_id: Union[str, UnsetType] = unset, service_name: Union[str, UnsetType] = unset, test_impact_analysis_enabled: Union[bool, UnsetType] = unset, + test_impact_analysis_enabled_is_overridden: Union[bool, UnsetType] = unset, **kwargs, ): """ @@ -59,19 +74,31 @@ def __init__( :param auto_test_retries_enabled: Whether Auto Test Retries are enabled for this service. :type auto_test_retries_enabled: bool, optional + :param auto_test_retries_enabled_is_overridden: Whether the Auto Test Retries setting is overridden at the service level. + :type auto_test_retries_enabled_is_overridden: bool, optional + :param code_coverage_enabled: Whether Code Coverage is enabled for this service. :type code_coverage_enabled: bool, optional + :param code_coverage_enabled_is_overridden: Whether the Code Coverage setting is overridden at the service level. + :type code_coverage_enabled_is_overridden: bool, optional + :param early_flake_detection_enabled: Whether Early Flake Detection is enabled for this service. :type early_flake_detection_enabled: bool, optional + :param early_flake_detection_enabled_is_overridden: Whether the Early Flake Detection setting is overridden at the service level. + :type early_flake_detection_enabled_is_overridden: bool, optional + :param env: The environment name. :type env: str, optional :param failed_test_replay_enabled: Whether Failed Test Replay is enabled for this service. :type failed_test_replay_enabled: bool, optional - :param pr_comments_enabled: Whether PR Comments are enabled for this service. + :param failed_test_replay_enabled_is_overridden: Whether the Failed Test Replay setting is overridden at the service level. + :type failed_test_replay_enabled_is_overridden: bool, optional + + :param pr_comments_enabled: Whether PR Comments are enabled. This value reflects the repository-level setting and cannot be overridden at the service level. :type pr_comments_enabled: bool, optional :param repository_id: The repository identifier. @@ -82,17 +109,28 @@ def __init__( :param test_impact_analysis_enabled: Whether Test Impact Analysis is enabled for this service. :type test_impact_analysis_enabled: bool, optional + + :param test_impact_analysis_enabled_is_overridden: Whether the Test Impact Analysis setting is overridden at the service level. + :type test_impact_analysis_enabled_is_overridden: bool, optional """ if auto_test_retries_enabled is not unset: kwargs["auto_test_retries_enabled"] = auto_test_retries_enabled + if auto_test_retries_enabled_is_overridden is not unset: + kwargs["auto_test_retries_enabled_is_overridden"] = auto_test_retries_enabled_is_overridden if code_coverage_enabled is not unset: kwargs["code_coverage_enabled"] = code_coverage_enabled + if code_coverage_enabled_is_overridden is not unset: + kwargs["code_coverage_enabled_is_overridden"] = code_coverage_enabled_is_overridden if early_flake_detection_enabled is not unset: kwargs["early_flake_detection_enabled"] = early_flake_detection_enabled + if early_flake_detection_enabled_is_overridden is not unset: + kwargs["early_flake_detection_enabled_is_overridden"] = early_flake_detection_enabled_is_overridden if env is not unset: kwargs["env"] = env if failed_test_replay_enabled is not unset: kwargs["failed_test_replay_enabled"] = failed_test_replay_enabled + if failed_test_replay_enabled_is_overridden is not unset: + kwargs["failed_test_replay_enabled_is_overridden"] = failed_test_replay_enabled_is_overridden if pr_comments_enabled is not unset: kwargs["pr_comments_enabled"] = pr_comments_enabled if repository_id is not unset: @@ -101,4 +139,6 @@ def __init__( kwargs["service_name"] = service_name if test_impact_analysis_enabled is not unset: kwargs["test_impact_analysis_enabled"] = test_impact_analysis_enabled + if test_impact_analysis_enabled_is_overridden is not unset: + kwargs["test_impact_analysis_enabled_is_overridden"] = test_impact_analysis_enabled_is_overridden super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/test_optimization_update_service_settings_request_attributes.py b/src/datadog_api_client/v2/model/test_optimization_update_service_settings_request_attributes.py index 08f0c32806..4695e59e73 100644 --- a/src/datadog_api_client/v2/model/test_optimization_update_service_settings_request_attributes.py +++ b/src/datadog_api_client/v2/model/test_optimization_update_service_settings_request_attributes.py @@ -27,26 +27,36 @@ class TestOptimizationUpdateServiceSettingsRequestAttributes(ModelNormal): def openapi_types(_): return { "auto_test_retries_enabled": (bool,), + "auto_test_retries_enabled_inherit": (bool,), "code_coverage_enabled": (bool,), + "code_coverage_enabled_inherit": (bool,), "early_flake_detection_enabled": (bool,), + "early_flake_detection_enabled_inherit": (bool,), "env": (str,), "failed_test_replay_enabled": (bool,), + "failed_test_replay_enabled_inherit": (bool,), "pr_comments_enabled": (bool,), "repository_id": (str,), "service_name": (str,), "test_impact_analysis_enabled": (bool,), + "test_impact_analysis_enabled_inherit": (bool,), } attribute_map = { "auto_test_retries_enabled": "auto_test_retries_enabled", + "auto_test_retries_enabled_inherit": "auto_test_retries_enabled_inherit", "code_coverage_enabled": "code_coverage_enabled", + "code_coverage_enabled_inherit": "code_coverage_enabled_inherit", "early_flake_detection_enabled": "early_flake_detection_enabled", + "early_flake_detection_enabled_inherit": "early_flake_detection_enabled_inherit", "env": "env", "failed_test_replay_enabled": "failed_test_replay_enabled", + "failed_test_replay_enabled_inherit": "failed_test_replay_enabled_inherit", "pr_comments_enabled": "pr_comments_enabled", "repository_id": "repository_id", "service_name": "service_name", "test_impact_analysis_enabled": "test_impact_analysis_enabled", + "test_impact_analysis_enabled_inherit": "test_impact_analysis_enabled_inherit", } def __init__( @@ -54,34 +64,52 @@ def __init__( repository_id: str, service_name: str, auto_test_retries_enabled: Union[bool, UnsetType] = unset, + auto_test_retries_enabled_inherit: Union[bool, UnsetType] = unset, code_coverage_enabled: Union[bool, UnsetType] = unset, + code_coverage_enabled_inherit: Union[bool, UnsetType] = unset, early_flake_detection_enabled: Union[bool, UnsetType] = unset, + early_flake_detection_enabled_inherit: Union[bool, UnsetType] = unset, env: Union[str, UnsetType] = unset, failed_test_replay_enabled: Union[bool, UnsetType] = unset, + failed_test_replay_enabled_inherit: Union[bool, UnsetType] = unset, pr_comments_enabled: Union[bool, UnsetType] = unset, test_impact_analysis_enabled: Union[bool, UnsetType] = unset, + test_impact_analysis_enabled_inherit: Union[bool, UnsetType] = unset, **kwargs, ): """ Attributes for updating Test Optimization service settings. All non-required fields are optional; only provided fields will be updated. + Setting a field to ``null`` is a no-op. To reset a setting to inherit from the repository level, use the corresponding ``_inherit`` field. - :param auto_test_retries_enabled: Whether Auto Test Retries are enabled for this service. + :param auto_test_retries_enabled: Whether Auto Test Retries are enabled for this service. Setting to ``null`` is a no-op; use ``auto_test_retries_enabled_inherit`` to reset to repository-level inheritance. :type auto_test_retries_enabled: bool, optional - :param code_coverage_enabled: Whether Code Coverage is enabled for this service. + :param auto_test_retries_enabled_inherit: When ``true`` , resets the Auto Test Retries setting to inherit from the repository level. + :type auto_test_retries_enabled_inherit: bool, optional + + :param code_coverage_enabled: Whether Code Coverage is enabled for this service. Setting to ``null`` is a no-op; use ``code_coverage_enabled_inherit`` to reset to repository-level inheritance. :type code_coverage_enabled: bool, optional - :param early_flake_detection_enabled: Whether Early Flake Detection is enabled for this service. + :param code_coverage_enabled_inherit: When ``true`` , resets the Code Coverage setting to inherit from the repository level. + :type code_coverage_enabled_inherit: bool, optional + + :param early_flake_detection_enabled: Whether Early Flake Detection is enabled for this service. Setting to ``null`` is a no-op; use ``early_flake_detection_enabled_inherit`` to reset to repository-level inheritance. :type early_flake_detection_enabled: bool, optional + :param early_flake_detection_enabled_inherit: When ``true`` , resets the Early Flake Detection setting to inherit from the repository level. + :type early_flake_detection_enabled_inherit: bool, optional + :param env: The environment name. If omitted, defaults to ``none``. :type env: str, optional - :param failed_test_replay_enabled: Whether Failed Test Replay is enabled for this service. + :param failed_test_replay_enabled: Whether Failed Test Replay is enabled for this service. Setting to ``null`` is a no-op; use ``failed_test_replay_enabled_inherit`` to reset to repository-level inheritance. :type failed_test_replay_enabled: bool, optional - :param pr_comments_enabled: Whether PR Comments are enabled for this service. + :param failed_test_replay_enabled_inherit: When ``true`` , resets the Failed Test Replay setting to inherit from the repository level. + :type failed_test_replay_enabled_inherit: bool, optional + + :param pr_comments_enabled: This field is ignored. PR Comments cannot be overridden at the service level. :type pr_comments_enabled: bool, optional :param repository_id: The repository identifier. @@ -90,23 +118,36 @@ def __init__( :param service_name: The service name. :type service_name: str - :param test_impact_analysis_enabled: Whether Test Impact Analysis is enabled for this service. + :param test_impact_analysis_enabled: Whether Test Impact Analysis is enabled for this service. Setting to ``null`` is a no-op; use ``test_impact_analysis_enabled_inherit`` to reset to repository-level inheritance. :type test_impact_analysis_enabled: bool, optional + + :param test_impact_analysis_enabled_inherit: When ``true`` , resets the Test Impact Analysis setting to inherit from the repository level. + :type test_impact_analysis_enabled_inherit: bool, optional """ if auto_test_retries_enabled is not unset: kwargs["auto_test_retries_enabled"] = auto_test_retries_enabled + if auto_test_retries_enabled_inherit is not unset: + kwargs["auto_test_retries_enabled_inherit"] = auto_test_retries_enabled_inherit if code_coverage_enabled is not unset: kwargs["code_coverage_enabled"] = code_coverage_enabled + if code_coverage_enabled_inherit is not unset: + kwargs["code_coverage_enabled_inherit"] = code_coverage_enabled_inherit if early_flake_detection_enabled is not unset: kwargs["early_flake_detection_enabled"] = early_flake_detection_enabled + if early_flake_detection_enabled_inherit is not unset: + kwargs["early_flake_detection_enabled_inherit"] = early_flake_detection_enabled_inherit if env is not unset: kwargs["env"] = env if failed_test_replay_enabled is not unset: kwargs["failed_test_replay_enabled"] = failed_test_replay_enabled + if failed_test_replay_enabled_inherit is not unset: + kwargs["failed_test_replay_enabled_inherit"] = failed_test_replay_enabled_inherit if pr_comments_enabled is not unset: kwargs["pr_comments_enabled"] = pr_comments_enabled if test_impact_analysis_enabled is not unset: kwargs["test_impact_analysis_enabled"] = test_impact_analysis_enabled + if test_impact_analysis_enabled_inherit is not unset: + kwargs["test_impact_analysis_enabled_inherit"] = test_impact_analysis_enabled_inherit super().__init__(kwargs) self_.repository_id = repository_id diff --git a/src/datadog_api_client/v2/model/test_optimization_update_service_settings_request_data.py b/src/datadog_api_client/v2/model/test_optimization_update_service_settings_request_data.py index f698cbb24f..00f197b6df 100644 --- a/src/datadog_api_client/v2/model/test_optimization_update_service_settings_request_data.py +++ b/src/datadog_api_client/v2/model/test_optimization_update_service_settings_request_data.py @@ -51,6 +51,7 @@ def __init__( :param attributes: Attributes for updating Test Optimization service settings. All non-required fields are optional; only provided fields will be updated. + Setting a field to ``null`` is a no-op. To reset a setting to inherit from the repository level, use the corresponding ``_inherit`` field. :type attributes: TestOptimizationUpdateServiceSettingsRequestAttributes :param type: JSON:API type for update service settings request. diff --git a/tests/v2/features/test_optimization.feature b/tests/v2/features/test_optimization.feature index c363d29f04..342eda12e8 100644 --- a/tests/v2/features/test_optimization.feature +++ b/tests/v2/features/test_optimization.feature @@ -187,21 +187,21 @@ Feature: Test Optimization @generated @skip @team:DataDog/ci-app-backend Scenario: Update Test Optimization service settings returns "Bad Request" response 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"}} + And body with value {"data": {"attributes": {"auto_test_retries_enabled": false, "auto_test_retries_enabled_inherit": false, "code_coverage_enabled": false, "code_coverage_enabled_inherit": false, "early_flake_detection_enabled": false, "early_flake_detection_enabled_inherit": false, "env": "prod", "failed_test_replay_enabled": false, "failed_test_replay_enabled_inherit": false, "pr_comments_enabled": false, "repository_id": "github.com/datadog/shopist", "service_name": "shopist", "test_impact_analysis_enabled": true, "test_impact_analysis_enabled_inherit": true}, "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 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"}} + And body with value {"data": {"attributes": {"auto_test_retries_enabled": false, "auto_test_retries_enabled_inherit": false, "code_coverage_enabled": false, "code_coverage_enabled_inherit": false, "early_flake_detection_enabled": false, "early_flake_detection_enabled_inherit": false, "env": "prod", "failed_test_replay_enabled": false, "failed_test_replay_enabled_inherit": false, "pr_comments_enabled": false, "repository_id": "github.com/datadog/shopist", "service_name": "shopist", "test_impact_analysis_enabled": true, "test_impact_analysis_enabled_inherit": true}, "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 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"}} + And body with value {"data": {"attributes": {"auto_test_retries_enabled": false, "auto_test_retries_enabled_inherit": false, "code_coverage_enabled": false, "code_coverage_enabled_inherit": false, "early_flake_detection_enabled": false, "early_flake_detection_enabled_inherit": false, "env": "prod", "failed_test_replay_enabled": false, "failed_test_replay_enabled_inherit": false, "pr_comments_enabled": false, "repository_id": "github.com/datadog/shopist", "service_name": "shopist", "test_impact_analysis_enabled": true, "test_impact_analysis_enabled_inherit": true}, "type": "test_optimization_update_service_settings_request"}} When the request is sent Then the response status is 200 OK