From e37fa062327575b299bde88c4b813047d7894c9f Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 9 Jul 2026 09:09:35 +0000 Subject: [PATCH] Regenerate client from commit 611f42b of spec repo --- .generator/schemas/v1/openapi.yaml | 4 ++++ .../v1/synthetics/CreateSyntheticsAPITest_1072503741.py | 1 + .../v1/model/synthetics_test_options.py | 8 ++++++++ ...urns_ok_returns_the_created_test_details_response.yaml | 2 +- tests/v1/features/synthetics.feature | 1 + tests/v1/features/synthetics_api_ssl_test_payload.json | 1 + 6 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 051a69bc02..08a2d4cc6e 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -20037,6 +20037,10 @@ components: ignoreServerCertificateError: description: Ignore server certificate error for browser tests. type: boolean + ignore_certificate_validation: + description: |- + For SSL tests, whether or not the test should ignore certificate validation. + type: boolean initialNavigationTimeout: description: Timeout before declaring the initial step as failed (in seconds) for browser tests. format: int64 diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.py b/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.py index a92d2aa01a..a2298835be 100644 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.py +++ b/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.py @@ -37,6 +37,7 @@ accept_self_signed=True, check_certificate_revocation=True, disable_aia_intermediate_fetching=True, + ignore_certificate_validation=True, tick_every=60, ), subtype=SyntheticsTestDetailsSubType.SSL, diff --git a/src/datadog_api_client/v1/model/synthetics_test_options.py b/src/datadog_api_client/v1/model/synthetics_test_options.py index 77476c26fd..b18fcfd93e 100644 --- a/src/datadog_api_client/v1/model/synthetics_test_options.py +++ b/src/datadog_api_client/v1/model/synthetics_test_options.py @@ -63,6 +63,7 @@ def openapi_types(_): "follow_redirects": (bool,), "http_version": (SyntheticsTestOptionsHTTPVersion,), "ignore_server_certificate_error": (bool,), + "ignore_certificate_validation": (bool,), "initial_navigation_timeout": (int,), "min_failure_duration": (int,), "min_location_failed": (int,), @@ -93,6 +94,7 @@ def openapi_types(_): "follow_redirects": "follow_redirects", "http_version": "httpVersion", "ignore_server_certificate_error": "ignoreServerCertificateError", + "ignore_certificate_validation": "ignore_certificate_validation", "initial_navigation_timeout": "initialNavigationTimeout", "min_failure_duration": "min_failure_duration", "min_location_failed": "min_location_failed", @@ -124,6 +126,7 @@ def __init__( follow_redirects: Union[bool, UnsetType] = unset, http_version: Union[SyntheticsTestOptionsHTTPVersion, UnsetType] = unset, ignore_server_certificate_error: Union[bool, UnsetType] = unset, + ignore_certificate_validation: Union[bool, UnsetType] = unset, initial_navigation_timeout: Union[int, UnsetType] = unset, min_failure_duration: Union[int, UnsetType] = unset, min_location_failed: Union[int, UnsetType] = unset, @@ -187,6 +190,9 @@ def __init__( :param ignore_server_certificate_error: Ignore server certificate error for browser tests. :type ignore_server_certificate_error: bool, optional + :param ignore_certificate_validation: For SSL tests, whether or not the test should ignore certificate validation. + :type ignore_certificate_validation: bool, optional + :param initial_navigation_timeout: Timeout before declaring the initial step as failed (in seconds) for browser tests. :type initial_navigation_timeout: int, optional @@ -265,6 +271,8 @@ def __init__( kwargs["http_version"] = http_version if ignore_server_certificate_error is not unset: kwargs["ignore_server_certificate_error"] = ignore_server_certificate_error + if ignore_certificate_validation is not unset: + kwargs["ignore_certificate_validation"] = ignore_certificate_validation if initial_navigation_timeout is not unset: kwargs["initial_navigation_timeout"] = initial_navigation_timeout if min_failure_duration is not unset: diff --git a/tests/v1/cassettes/test_scenarios/test_create_an_api_ssl_test_returns_ok_returns_the_created_test_details_response.yaml b/tests/v1/cassettes/test_scenarios/test_create_an_api_ssl_test_returns_ok_returns_the_created_test_details_response.yaml index 7bffa778c2..a927ff3635 100644 --- a/tests/v1/cassettes/test_scenarios/test_create_an_api_ssl_test_returns_ok_returns_the_created_test_details_response.yaml +++ b/tests/v1/cassettes/test_scenarios/test_create_an_api_ssl_test_returns_ok_returns_the_created_test_details_response.yaml @@ -2,7 +2,7 @@ interactions: - request: body: '{"config":{"assertions":[{"operator":"isInMoreThan","target":10,"type":"certificate"}],"request":{"host":"datadoghq.com","port":"{{ DATADOG_PORT }}"}},"locations":["aws:us-east-2"],"message":"BDD test payload: - synthetics_api_ssl_test_payload.json","name":"Test-Create_an_API_SSL_test_returns_OK_Returns_the_created_test_details_response-1752254637","options":{"accept_self_signed":true,"checkCertificateRevocation":true,"disableAiaIntermediateFetching":true,"tick_every":60},"subtype":"ssl","tags":["testing:api"],"type":"api"}' + synthetics_api_ssl_test_payload.json","name":"Test-Create_an_API_SSL_test_returns_OK_Returns_the_created_test_details_response-1752254637","options":{"accept_self_signed":true,"checkCertificateRevocation":true,"disableAiaIntermediateFetching":true,"ignore_certificate_validation":true,"tick_every":60},"subtype":"ssl","tags":["testing:api"],"type":"api"}' headers: accept: - application/json diff --git a/tests/v1/features/synthetics.feature b/tests/v1/features/synthetics.feature index 052377a39d..911cc25517 100644 --- a/tests/v1/features/synthetics.feature +++ b/tests/v1/features/synthetics.feature @@ -246,6 +246,7 @@ Feature: Synthetics When the request is sent Then the response status is 200 OK - Returns the created test details. And the response "name" is equal to "{{ unique }}" + And the response "options.ignore_certificate_validation" is equal to true @generated @skip @team:DataDog/synthetics-orchestrating-managing Scenario: Create an API test returns "- JSON format is wrong" response diff --git a/tests/v1/features/synthetics_api_ssl_test_payload.json b/tests/v1/features/synthetics_api_ssl_test_payload.json index 69aa27c347..6a731d3e1f 100644 --- a/tests/v1/features/synthetics_api_ssl_test_payload.json +++ b/tests/v1/features/synthetics_api_ssl_test_payload.json @@ -19,6 +19,7 @@ "accept_self_signed": true, "checkCertificateRevocation": true, "disableAiaIntermediateFetching": true, + "ignore_certificate_validation": true, "tick_every": 60 }, "subtype": "ssl",