Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 8 additions & 0 deletions src/datadog_api_client/v1/model/synthetics_test_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,),
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/v1/features/synthetics.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/v1/features/synthetics_api_ssl_test_payload.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"accept_self_signed": true,
"checkCertificateRevocation": true,
"disableAiaIntermediateFetching": true,
"ignore_certificate_validation": true,
"tick_every": 60
},
"subtype": "ssl",
Expand Down
Loading