From 61cf5734338b8898e6957f71ece78a1b0c9d22a1 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 10 Jul 2026 12:28:43 +0000 Subject: [PATCH] Regenerate client from commit 16e5fd0 of spec repo --- .generator/schemas/v1/openapi.yaml | 4 ++++ ...urns-the-created-test-details-response.frozen | 2 +- ...Returns-the-created-test-details-response.yml | 16 ++++++++-------- .../CreateSyntheticsAPITest_1072503741.rb | 1 + features/v1/synthetics.feature | 1 + features/v1/synthetics_api_ssl_test_payload.json | 1 + .../v1/models/synthetics_test_options.rb | 12 +++++++++++- 7 files changed, 27 insertions(+), 10 deletions(-) diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 455b80b93a70..b41f414fd369 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -20355,6 +20355,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/cassettes/features/v1/synthetics/Create-an-API-SSL-test-returns-OK-Returns-the-created-test-details-response.frozen b/cassettes/features/v1/synthetics/Create-an-API-SSL-test-returns-OK-Returns-the-created-test-details-response.frozen index d440d9ecec90..088b3deb8ee5 100644 --- a/cassettes/features/v1/synthetics/Create-an-API-SSL-test-returns-OK-Returns-the-created-test-details-response.frozen +++ b/cassettes/features/v1/synthetics/Create-an-API-SSL-test-returns-OK-Returns-the-created-test-details-response.frozen @@ -1 +1 @@ -2025-07-11T17:23:57.607Z \ No newline at end of file +2026-07-10T09:46:57.309Z \ No newline at end of file diff --git a/cassettes/features/v1/synthetics/Create-an-API-SSL-test-returns-OK-Returns-the-created-test-details-response.yml b/cassettes/features/v1/synthetics/Create-an-API-SSL-test-returns-OK-Returns-the-created-test-details-response.yml index 024a4b7ad2c1..d2602cbf69df 100644 --- a/cassettes/features/v1/synthetics/Create-an-API-SSL-test-returns-OK-Returns-the-created-test-details-response.yml +++ b/cassettes/features/v1/synthetics/Create-an-API-SSL-test-returns-OK-Returns-the-created-test-details-response.yml @@ -1,11 +1,11 @@ http_interactions: -- recorded_at: Fri, 11 Jul 2025 17:23:57 GMT +- recorded_at: Fri, 10 Jul 2026 09:46:57 GMT request: body: encoding: UTF-8 string: '{"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-1783676817","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 @@ -16,10 +16,10 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"public_id":"ppr-ina-vd6","name":"Test-Create_an_API_SSL_test_returns_OK_Returns_the_created_test_details_response-1752254637","status":"live","type":"api","subtype":"ssl","tags":["testing:api"],"created_at":"2025-07-11T17:23:58.189592+00:00","modified_at":"2025-07-11T17:23:58.189592+00:00","config":{"assertions":[{"operator":"isInMoreThan","target":10,"type":"certificate"}],"request":{"host":"datadoghq.com","port":"{{ + string: '{"public_id":"qv3-9py-53q","name":"Test-Create_an_API_SSL_test_returns_OK_Returns_the_created_test_details_response-1783676817","status":"live","type":"api","subtype":"ssl","tags":["testing:api"],"created_at":"2026-07-10T09:46:58.299268+00:00","modified_at":"2026-07-10T09:46:58.299268+00:00","config":{"assertions":[{"operator":"isInMoreThan","target":10,"type":"certificate"}],"request":{"host":"datadoghq.com","port":"{{ DATADOG_PORT }}"},"configVariables":[{"id":"7865d47f-47df-43b5-a612-e2dea9ed40e8","name":"DATADOG_PORT","type":"global"}]},"message":"BDD - test payload: synthetics_api_ssl_test_payload.json","options":{"accept_self_signed":true,"checkCertificateRevocation":true,"disableAiaIntermediateFetching":true,"tick_every":60},"locations":["aws:us-east-2"],"created_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","email":"team-intg-tools-libs-spam@datadoghq.com"},"deleted_at":null,"monitor_id":177655296,"org_id":321813,"modified_by":{"name":"CI + test payload: synthetics_api_ssl_test_payload.json","options":{"accept_self_signed":true,"checkCertificateRevocation":true,"disableAiaIntermediateFetching":true,"ignore_certificate_validation":true,"tick_every":60,"bits_ai_auto_investigate":false},"locations":["aws:us-east-2"],"created_by":{"name":"CI + Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","email":"team-intg-tools-libs-spam@datadoghq.com"},"deleted_at":null,"monitor_id":304244708,"org_id":321813,"modified_by":{"name":"CI Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","email":"team-intg-tools-libs-spam@datadoghq.com"}}' headers: Content-Type: @@ -27,11 +27,11 @@ http_interactions: status: code: 200 message: OK -- recorded_at: Fri, 11 Jul 2025 17:23:57 GMT +- recorded_at: Fri, 10 Jul 2026 09:46:57 GMT request: body: encoding: UTF-8 - string: '{"public_ids":["ppr-ina-vd6"]}' + string: '{"public_ids":["qv3-9py-53q"]}' headers: Accept: - application/json @@ -42,7 +42,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"deleted_tests":[{"public_id":"ppr-ina-vd6","deleted_at":"2025-07-11T17:23:59.574697+00:00"}]} + string: '{"deleted_tests":[{"public_id":"qv3-9py-53q","deleted_at":"2026-07-10T09:46:59.194132+00:00"}]} ' headers: diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.rb b/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.rb index b6d7bf9a5417..a29c133eca2f 100644 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.rb +++ b/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.rb @@ -26,6 +26,7 @@ accept_self_signed: true, check_certificate_revocation: true, disable_aia_intermediate_fetching: true, + ignore_certificate_validation: true, tick_every: 60, }), subtype: DatadogAPIClient::V1::SyntheticsTestDetailsSubType::SSL, diff --git a/features/v1/synthetics.feature b/features/v1/synthetics.feature index 052377a39d8b..911cc255176d 100644 --- a/features/v1/synthetics.feature +++ b/features/v1/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/features/v1/synthetics_api_ssl_test_payload.json b/features/v1/synthetics_api_ssl_test_payload.json index 69aa27c347e6..6a731d3e1fe1 100644 --- a/features/v1/synthetics_api_ssl_test_payload.json +++ b/features/v1/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", diff --git a/lib/datadog_api_client/v1/models/synthetics_test_options.rb b/lib/datadog_api_client/v1/models/synthetics_test_options.rb index ed7f38a44dcd..082aaec489cf 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options.rb @@ -67,6 +67,9 @@ class SyntheticsTestOptions # Ignore server certificate error for browser tests. attr_accessor :ignore_server_certificate_error + # For SSL tests, whether or not the test should ignore certificate validation. + attr_accessor :ignore_certificate_validation + # Timeout before declaring the initial step as failed (in seconds) for browser tests. attr_accessor :initial_navigation_timeout @@ -136,6 +139,7 @@ def self.attribute_map :'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', @@ -170,6 +174,7 @@ def self.openapi_types :'follow_redirects' => :'Boolean', :'http_version' => :'SyntheticsTestOptionsHTTPVersion', :'ignore_server_certificate_error' => :'Boolean', + :'ignore_certificate_validation' => :'Boolean', :'initial_navigation_timeout' => :'Integer', :'min_failure_duration' => :'Integer', :'min_location_failed' => :'Integer', @@ -267,6 +272,10 @@ def initialize(attributes = {}) self.ignore_server_certificate_error = attributes[:'ignore_server_certificate_error'] end + if attributes.key?(:'ignore_certificate_validation') + self.ignore_certificate_validation = attributes[:'ignore_certificate_validation'] + end + if attributes.key?(:'initial_navigation_timeout') self.initial_navigation_timeout = attributes[:'initial_navigation_timeout'] end @@ -396,6 +405,7 @@ def ==(o) follow_redirects == o.follow_redirects && http_version == o.http_version && ignore_server_certificate_error == o.ignore_server_certificate_error && + ignore_certificate_validation == o.ignore_certificate_validation && initial_navigation_timeout == o.initial_navigation_timeout && min_failure_duration == o.min_failure_duration && min_location_failed == o.min_location_failed && @@ -415,7 +425,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [accept_self_signed, allow_insecure, blocked_request_patterns, capture_network_payloads, check_certificate_revocation, ci, device_ids, disable_aia_intermediate_fetching, disable_cors, disable_csp, enable_profiling, enable_security_testing, follow_redirects, http_version, ignore_server_certificate_error, initial_navigation_timeout, min_failure_duration, min_location_failed, monitor_name, monitor_options, monitor_priority, no_screenshot, restricted_roles, _retry, rum_settings, scheduling, tick_every, additional_properties].hash + [accept_self_signed, allow_insecure, blocked_request_patterns, capture_network_payloads, check_certificate_revocation, ci, device_ids, disable_aia_intermediate_fetching, disable_cors, disable_csp, enable_profiling, enable_security_testing, follow_redirects, http_version, ignore_server_certificate_error, ignore_certificate_validation, initial_navigation_timeout, min_failure_duration, min_location_failed, monitor_name, monitor_options, monitor_priority, no_screenshot, restricted_roles, _retry, rum_settings, scheduling, tick_every, additional_properties].hash end end end