From 0ad55c14276190467c4a7af8ebf0132a688158b3 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 6 Jun 2025 09:06:39 +0000 Subject: [PATCH] Regenerate client from commit 14586db5 of spec repo --- .apigentools-info | 8 +- .generator/schemas/v1/openapi.yaml | 18 ++ .../CreateSyntheticsAPITest_1279271422.py | 145 ++++++++++++++++ .../model/synthetics_api_test_step_subtype.py | 20 ++- .../v1/model/synthetics_test_request.py | 16 ++ ...global_variable_returns_ok_response.frozen | 2 +- ...o_global_variable_returns_ok_response.yaml | 38 +++-- ...iable_from_test_returns_ok_response.frozen | 2 +- ...ariable_from_test_returns_ok_response.yaml | 38 +++-- ...global_variable_returns_ok_response.frozen | 2 +- ...p_global_variable_returns_ok_response.yaml | 38 +++-- ...s_the_created_test_details_response.frozen | 2 +- ...rns_the_created_test_details_response.yaml | 32 ++-- tests/v1/features/given.json | 2 +- tests/v1/features/synthetics.feature | 21 ++- ...ynthetics_api_test_multi_step_payload.json | 157 +++++++++++++++++- 16 files changed, 477 insertions(+), 64 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 2c06d77d51..d165a5022f 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-06-05 09:49:43.090375", - "spec_repo_commit": "faa72400" + "regenerated": "2025-06-06 09:05:57.195200", + "spec_repo_commit": "14586db5" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-06-05 09:49:43.107941", - "spec_repo_commit": "faa72400" + "regenerated": "2025-06-06 09:05:57.210594", + "spec_repo_commit": "14586db5" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 3fe10ea7b6..1ad9e34e1c 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -14107,11 +14107,23 @@ components: enum: - http - grpc + - ssl + - dns + - tcp + - udp + - icmp + - websocket example: http type: string x-enum-varnames: - HTTP - GRPC + - SSL + - DNS + - TCP + - UDP + - ICMP + - WEBSOCKET SyntheticsAPITestType: default: api description: Type of the Synthetic test, `api`. @@ -17177,6 +17189,9 @@ components: example: '' type: string type: array + checkCertificateRevocation: + description: Check for certificate revocation. + type: boolean compressedJsonDescriptor: description: A protobuf JSON descriptor that needs to be gzipped first then base64 encoded. @@ -17206,6 +17221,9 @@ components: type: string httpVersion: $ref: '#/components/schemas/SyntheticsTestOptionsHTTPVersion' + isMessageBase64Encoded: + description: Whether the message is base64 encoded. + type: boolean message: description: Message to send for UDP or WebSocket tests. type: string diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.py b/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.py index e3271ea5d9..dd40e33768 100644 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.py +++ b/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.py @@ -14,6 +14,8 @@ from datadog_api_client.v1.model.synthetics_assertion_operator import SyntheticsAssertionOperator from datadog_api_client.v1.model.synthetics_assertion_target import SyntheticsAssertionTarget from datadog_api_client.v1.model.synthetics_assertion_type import SyntheticsAssertionType +from datadog_api_client.v1.model.synthetics_basic_auth_web import SyntheticsBasicAuthWeb +from datadog_api_client.v1.model.synthetics_basic_auth_web_type import SyntheticsBasicAuthWebType from datadog_api_client.v1.model.synthetics_config_variable import SyntheticsConfigVariable from datadog_api_client.v1.model.synthetics_config_variable_type import SyntheticsConfigVariableType from datadog_api_client.v1.model.synthetics_global_variable_parser_type import SyntheticsGlobalVariableParserType @@ -23,6 +25,7 @@ from datadog_api_client.v1.model.synthetics_parsing_options import SyntheticsParsingOptions from datadog_api_client.v1.model.synthetics_test_call_type import SyntheticsTestCallType from datadog_api_client.v1.model.synthetics_test_details_sub_type import SyntheticsTestDetailsSubType +from datadog_api_client.v1.model.synthetics_test_headers import SyntheticsTestHeaders from datadog_api_client.v1.model.synthetics_test_metadata import SyntheticsTestMetadata from datadog_api_client.v1.model.synthetics_test_options import SyntheticsTestOptions from datadog_api_client.v1.model.synthetics_test_options_http_version import SyntheticsTestOptionsHTTPVersion @@ -110,6 +113,148 @@ call_type=SyntheticsTestCallType.UNARY, ), ), + SyntheticsAPITestStep( + name="SSL step", + subtype=SyntheticsAPITestStepSubtype.SSL, + allow_failure=False, + is_critical=True, + retry=SyntheticsTestOptionsRetry( + count=0, + interval=300.0, + ), + assertions=[ + SyntheticsAssertionTarget( + operator=SyntheticsAssertionOperator.IS_IN_MORE_DAYS_THAN, + type=SyntheticsAssertionType.CERTIFICATE, + target=10, + ), + ], + request=SyntheticsTestRequest( + check_certificate_revocation=True, + host="example.org", + port=443, + ), + ), + SyntheticsAPITestStep( + name="DNS step", + subtype=SyntheticsAPITestStepSubtype.DNS, + allow_failure=False, + is_critical=True, + retry=SyntheticsTestOptionsRetry( + count=0, + interval=300.0, + ), + assertions=[ + SyntheticsAssertionTarget( + operator=SyntheticsAssertionOperator.LESS_THAN, + type=SyntheticsAssertionType.RESPONSE_TIME, + target=1000, + ), + ], + request=SyntheticsTestRequest( + host="troisdizaines.com", + dns_server="8.8.8.8", + dns_server_port="53", + ), + ), + SyntheticsAPITestStep( + name="TCP step", + subtype=SyntheticsAPITestStepSubtype.TCP, + allow_failure=False, + is_critical=True, + retry=SyntheticsTestOptionsRetry( + count=0, + interval=300.0, + ), + assertions=[ + SyntheticsAssertionTarget( + operator=SyntheticsAssertionOperator.LESS_THAN, + type=SyntheticsAssertionType.RESPONSE_TIME, + target=1000, + ), + ], + request=SyntheticsTestRequest( + host="34.95.79.70", + port=80, + should_track_hops=True, + timeout=32.0, + ), + ), + SyntheticsAPITestStep( + name="ICMP step", + subtype=SyntheticsAPITestStepSubtype.ICMP, + allow_failure=False, + is_critical=True, + retry=SyntheticsTestOptionsRetry( + count=0, + interval=300.0, + ), + assertions=[ + SyntheticsAssertionTarget( + operator=SyntheticsAssertionOperator.IS, + target=0, + type=SyntheticsAssertionType.PACKET_LOSS_PERCENTAGE, + ), + ], + request=SyntheticsTestRequest( + host="34.95.79.70", + number_of_packets=4, + should_track_hops=True, + timeout=38.0, + ), + ), + SyntheticsAPITestStep( + name="Websocket step", + subtype=SyntheticsAPITestStepSubtype.WEBSOCKET, + allow_failure=False, + is_critical=True, + retry=SyntheticsTestOptionsRetry( + count=0, + interval=300.0, + ), + assertions=[ + SyntheticsAssertionTarget( + operator=SyntheticsAssertionOperator.LESS_THAN, + type=SyntheticsAssertionType.RESPONSE_TIME, + target=1000, + ), + ], + request=SyntheticsTestRequest( + url="ws://34.95.79.70/web-socket", + message="My message", + is_message_base64_encoded=True, + headers=SyntheticsTestHeaders( + f="g", + ), + basic_auth=SyntheticsBasicAuthWeb( + type=SyntheticsBasicAuthWebType.WEB, + username="user", + password="password", + ), + ), + ), + SyntheticsAPITestStep( + name="UDP step", + subtype=SyntheticsAPITestStepSubtype.UDP, + allow_failure=False, + is_critical=True, + retry=SyntheticsTestOptionsRetry( + count=0, + interval=300.0, + ), + assertions=[ + SyntheticsAssertionTarget( + operator=SyntheticsAssertionOperator.LESS_THAN, + type=SyntheticsAssertionType.RESPONSE_TIME, + target=1000, + ), + ], + request=SyntheticsTestRequest( + host="8.8.8.8", + port=53, + message="A image.google.com", + ), + ), ], ), locations=[ diff --git a/src/datadog_api_client/v1/model/synthetics_api_test_step_subtype.py b/src/datadog_api_client/v1/model/synthetics_api_test_step_subtype.py index 3237acd039..77a7f129f2 100644 --- a/src/datadog_api_client/v1/model/synthetics_api_test_step_subtype.py +++ b/src/datadog_api_client/v1/model/synthetics_api_test_step_subtype.py @@ -16,16 +16,28 @@ class SyntheticsAPITestStepSubtype(ModelSimple): """ The subtype of the Synthetic multi-step API test step. - :param value: Must be one of ["http", "grpc"]. + :param value: Must be one of ["http", "grpc", "ssl", "dns", "tcp", "udp", "icmp", "websocket"]. :type value: str """ allowed_values = { "http", "grpc", + "ssl", + "dns", + "tcp", + "udp", + "icmp", + "websocket", } HTTP: ClassVar["SyntheticsAPITestStepSubtype"] GRPC: ClassVar["SyntheticsAPITestStepSubtype"] + SSL: ClassVar["SyntheticsAPITestStepSubtype"] + DNS: ClassVar["SyntheticsAPITestStepSubtype"] + TCP: ClassVar["SyntheticsAPITestStepSubtype"] + UDP: ClassVar["SyntheticsAPITestStepSubtype"] + ICMP: ClassVar["SyntheticsAPITestStepSubtype"] + WEBSOCKET: ClassVar["SyntheticsAPITestStepSubtype"] @cached_property def openapi_types(_): @@ -36,3 +48,9 @@ def openapi_types(_): SyntheticsAPITestStepSubtype.HTTP = SyntheticsAPITestStepSubtype("http") SyntheticsAPITestStepSubtype.GRPC = SyntheticsAPITestStepSubtype("grpc") +SyntheticsAPITestStepSubtype.SSL = SyntheticsAPITestStepSubtype("ssl") +SyntheticsAPITestStepSubtype.DNS = SyntheticsAPITestStepSubtype("dns") +SyntheticsAPITestStepSubtype.TCP = SyntheticsAPITestStepSubtype("tcp") +SyntheticsAPITestStepSubtype.UDP = SyntheticsAPITestStepSubtype("udp") +SyntheticsAPITestStepSubtype.ICMP = SyntheticsAPITestStepSubtype("icmp") +SyntheticsAPITestStepSubtype.WEBSOCKET = SyntheticsAPITestStepSubtype("websocket") diff --git a/src/datadog_api_client/v1/model/synthetics_test_request.py b/src/datadog_api_client/v1/model/synthetics_test_request.py index a9cce1c701..173cf47c1e 100644 --- a/src/datadog_api_client/v1/model/synthetics_test_request.py +++ b/src/datadog_api_client/v1/model/synthetics_test_request.py @@ -61,6 +61,7 @@ def openapi_types(_): "call_type": (SyntheticsTestCallType,), "certificate": (SyntheticsTestRequestCertificate,), "certificate_domains": ([str],), + "check_certificate_revocation": (bool,), "compressed_json_descriptor": (str,), "compressed_proto_file": (str,), "dns_server": (str,), @@ -70,6 +71,7 @@ def openapi_types(_): "headers": (SyntheticsTestHeaders,), "host": (str,), "http_version": (SyntheticsTestOptionsHTTPVersion,), + "is_message_base64_encoded": (bool,), "message": (str,), "metadata": (SyntheticsTestMetadata,), "method": (str,), @@ -94,6 +96,7 @@ def openapi_types(_): "call_type": "callType", "certificate": "certificate", "certificate_domains": "certificateDomains", + "check_certificate_revocation": "checkCertificateRevocation", "compressed_json_descriptor": "compressedJsonDescriptor", "compressed_proto_file": "compressedProtoFile", "dns_server": "dnsServer", @@ -103,6 +106,7 @@ def openapi_types(_): "headers": "headers", "host": "host", "http_version": "httpVersion", + "is_message_base64_encoded": "isMessageBase64Encoded", "message": "message", "metadata": "metadata", "method": "method", @@ -137,6 +141,7 @@ def __init__( call_type: Union[SyntheticsTestCallType, UnsetType] = unset, certificate: Union[SyntheticsTestRequestCertificate, UnsetType] = unset, certificate_domains: Union[List[str], UnsetType] = unset, + check_certificate_revocation: Union[bool, UnsetType] = unset, compressed_json_descriptor: Union[str, UnsetType] = unset, compressed_proto_file: Union[str, UnsetType] = unset, dns_server: Union[str, UnsetType] = unset, @@ -146,6 +151,7 @@ def __init__( headers: Union[SyntheticsTestHeaders, UnsetType] = unset, host: Union[str, UnsetType] = unset, http_version: Union[SyntheticsTestOptionsHTTPVersion, UnsetType] = unset, + is_message_base64_encoded: Union[bool, UnsetType] = unset, message: Union[str, UnsetType] = unset, metadata: Union[SyntheticsTestMetadata, UnsetType] = unset, method: Union[str, UnsetType] = unset, @@ -186,6 +192,9 @@ def __init__( :param certificate_domains: By default, the client certificate is applied on the domain of the starting URL for browser tests. If you want your client certificate to be applied on other domains instead, add them in ``certificateDomains``. :type certificate_domains: [str], optional + :param check_certificate_revocation: Check for certificate revocation. + :type check_certificate_revocation: bool, optional + :param compressed_json_descriptor: A protobuf JSON descriptor that needs to be gzipped first then base64 encoded. :type compressed_json_descriptor: str, optional @@ -213,6 +222,9 @@ def __init__( :param http_version: HTTP version to use for a Synthetic test. :type http_version: SyntheticsTestOptionsHTTPVersion, optional + :param is_message_base64_encoded: Whether the message is base64 encoded. + :type is_message_base64_encoded: bool, optional + :param message: Message to send for UDP or WebSocket tests. :type message: str, optional @@ -271,6 +283,8 @@ def __init__( kwargs["certificate"] = certificate if certificate_domains is not unset: kwargs["certificate_domains"] = certificate_domains + if check_certificate_revocation is not unset: + kwargs["check_certificate_revocation"] = check_certificate_revocation if compressed_json_descriptor is not unset: kwargs["compressed_json_descriptor"] = compressed_json_descriptor if compressed_proto_file is not unset: @@ -289,6 +303,8 @@ def __init__( kwargs["host"] = host if http_version is not unset: kwargs["http_version"] = http_version + if is_message_base64_encoded is not unset: + kwargs["is_message_base64_encoded"] = is_message_base64_encoded if message is not unset: kwargs["message"] = message if metadata is not unset: diff --git a/tests/v1/cassettes/test_scenarios/test_create_a_fido_global_variable_returns_ok_response.frozen b/tests/v1/cassettes/test_scenarios/test_create_a_fido_global_variable_returns_ok_response.frozen index d9e63f8f6a..5b6c21a97e 100644 --- a/tests/v1/cassettes/test_scenarios/test_create_a_fido_global_variable_returns_ok_response.frozen +++ b/tests/v1/cassettes/test_scenarios/test_create_a_fido_global_variable_returns_ok_response.frozen @@ -1 +1 @@ -2025-02-25T16:34:23.928Z \ No newline at end of file +2025-06-02T14:06:04.761Z \ No newline at end of file diff --git a/tests/v1/cassettes/test_scenarios/test_create_a_fido_global_variable_returns_ok_response.yaml b/tests/v1/cassettes/test_scenarios/test_create_a_fido_global_variable_returns_ok_response.yaml index 79d1a4278c..416d5fc04c 100644 --- a/tests/v1/cassettes/test_scenarios/test_create_a_fido_global_variable_returns_ok_response.yaml +++ b/tests/v1/cassettes/test_scenarios/test_create_a_fido_global_variable_returns_ok_response.yaml @@ -2,8 +2,15 @@ interactions: - request: body: '{"config":{"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"exitIfSucceed":true,"extractedValues":[{"field":"server","name":"EXTRACTED_VALUE","parser":{"type":"raw"},"secure":true,"type":"http_header"}],"extractedValuesFromScript":"dd.variable.set(''STATUS_CODE'', dd.response.statusCode);","isCritical":true,"name":"request is sent","request":{"httpVersion":"http2","method":"GET","timeout":10,"url":"https://datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"},{"name":"Wait","subtype":"wait","value":1},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"extractedValues":[],"isCritical":true,"name":"GRPC - CALL","request":{"callType":"unary","compressedJsonDescriptor":"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==","host":"grpcbin.test.k6.io","message":"{}","metadata":{},"method":"Index","port":9000,"service":"grpcbin.GRPCBin"},"retry":{"count":0,"interval":300},"subtype":"grpc"}]},"locations":["aws:us-east-2"],"message":"BDD - test payload: synthetics_api_test_multi_step_payload.json","name":"Test-Create_a_FIDO_global_variable_returns_OK_response-1740501263","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_a_FIDO_global_variable_returns_OK_response-1740501263","monitor_priority":5,"retry":{"count":3,"interval":1000},"tick_every":60},"subtype":"multi","tags":["testing:api"],"type":"api"}' + CALL","request":{"callType":"unary","compressedJsonDescriptor":"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==","host":"grpcbin.test.k6.io","message":"{}","metadata":{},"method":"Index","port":9000,"service":"grpcbin.GRPCBin"},"retry":{"count":0,"interval":300},"subtype":"grpc"},{"allowFailure":false,"assertions":[{"operator":"isInMoreThan","target":10,"type":"certificate"}],"isCritical":true,"name":"SSL + step","request":{"checkCertificateRevocation":true,"host":"example.org","port":443},"retry":{"count":0,"interval":300},"subtype":"ssl"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"DNS + step","request":{"dnsServer":"8.8.8.8","dnsServerPort":"53","host":"troisdizaines.com"},"retry":{"count":0,"interval":300},"subtype":"dns"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"TCP + step","request":{"host":"34.95.79.70","port":80,"shouldTrackHops":true,"timeout":32},"retry":{"count":0,"interval":300},"subtype":"tcp"},{"allowFailure":false,"assertions":[{"operator":"is","target":0,"type":"packetLossPercentage"}],"isCritical":true,"name":"ICMP + step","request":{"host":"34.95.79.70","numberOfPackets":4,"shouldTrackHops":true,"timeout":38},"retry":{"count":0,"interval":300},"subtype":"icmp"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"Websocket + step","request":{"basicAuth":{"password":"password","type":"web","username":"user"},"headers":{"f":"g"},"isMessageBase64Encoded":true,"message":"My + message","url":"ws://34.95.79.70/web-socket"},"retry":{"count":0,"interval":300},"subtype":"websocket"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"UDP + step","request":{"host":"8.8.8.8","message":"A image.google.com","port":53},"retry":{"count":0,"interval":300},"subtype":"udp"}]},"locations":["aws:us-east-2"],"message":"BDD + test payload: synthetics_api_test_multi_step_payload.json","name":"Test-Create_a_FIDO_global_variable_returns_OK_response-1748873164","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_a_FIDO_global_variable_returns_OK_response-1748873164","monitor_priority":5,"retry":{"count":3,"interval":1000},"tick_every":60},"subtype":"multi","tags":["testing:api"],"type":"api"}' headers: accept: - application/json @@ -13,12 +20,17 @@ interactions: uri: https://api.datadoghq.com/api/v1/synthetics/tests/api response: body: - string: '{"public_id":"rba-ta9-q2g","name":"Test-Create_a_FIDO_global_variable_returns_OK_response-1740501263","status":"live","type":"api","subtype":"multi","tags":["testing:api"],"created_at":"2025-02-25T16:34:24.599978+00:00","modified_at":"2025-02-25T16:34:24.599978+00:00","config":{"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"exitIfSucceed":true,"extractedValues":[{"field":"server","name":"EXTRACTED_VALUE","parser":{"type":"raw"},"secure":true,"type":"http_header"}],"extractedValuesFromScript":"dd.variable.set(''STATUS_CODE'', - dd.response.statusCode);","isCritical":true,"name":"request is sent","request":{"httpVersion":"http2","method":"GET","timeout":10,"url":"https://datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http","id":"7he-q78-rkr"},{"name":"Wait","subtype":"wait","value":1,"id":"rj2-fyu-8mg"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"extractedValues":[],"isCritical":true,"name":"GRPC - CALL","request":{"callType":"unary","compressedJsonDescriptor":"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==","host":"grpcbin.test.k6.io","message":"{}","metadata":{},"method":"Index","port":9000,"service":"grpcbin.GRPCBin"},"retry":{"count":0,"interval":300},"subtype":"grpc","id":"5s9-wdd-awh"}]},"message":"BDD - test payload: synthetics_api_test_multi_step_payload.json","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_a_FIDO_global_variable_returns_OK_response-1740501263","monitor_priority":5,"retry":{"count":3,"interval":1000},"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":165393053,"org_id":321813,"modified_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","email":"team-intg-tools-libs-spam@datadoghq.com"}}' + string: '{"public_id":"xy5-fdf-62m","name":"Test-Create_a_FIDO_global_variable_returns_OK_response-1748873164","status":"live","type":"api","subtype":"multi","tags":["testing:api"],"created_at":"2025-06-02T14:06:05.985800+00:00","modified_at":"2025-06-02T14:06:05.985800+00:00","config":{"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"exitIfSucceed":true,"extractedValues":[{"field":"server","name":"EXTRACTED_VALUE","parser":{"type":"raw"},"secure":true,"type":"http_header"}],"extractedValuesFromScript":"dd.variable.set(''STATUS_CODE'', + dd.response.statusCode);","isCritical":true,"name":"request is sent","request":{"httpVersion":"http2","method":"GET","timeout":10,"url":"https://datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http","id":"uiz-rdp-5du"},{"name":"Wait","subtype":"wait","value":1,"id":"sbf-4sm-i6a"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"extractedValues":[],"isCritical":true,"name":"GRPC + CALL","request":{"callType":"unary","compressedJsonDescriptor":"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==","host":"grpcbin.test.k6.io","message":"{}","metadata":{},"method":"Index","port":9000,"service":"grpcbin.GRPCBin"},"retry":{"count":0,"interval":300},"subtype":"grpc","id":"6cm-cj5-j2c"},{"allowFailure":false,"assertions":[{"operator":"isInMoreThan","target":10,"type":"certificate"}],"isCritical":true,"name":"SSL + step","request":{"checkCertificateRevocation":true,"host":"example.org","port":443},"retry":{"count":0,"interval":300},"subtype":"ssl","id":"pan-tzn-86t"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"DNS + step","request":{"dnsServer":"8.8.8.8","dnsServerPort":"53","host":"troisdizaines.com"},"retry":{"count":0,"interval":300},"subtype":"dns","id":"3sj-357-kj8"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"TCP + step","request":{"host":"34.95.79.70","port":80,"shouldTrackHops":true,"timeout":32},"retry":{"count":0,"interval":300},"subtype":"tcp","id":"swn-qrd-nrd"},{"allowFailure":false,"assertions":[{"operator":"is","target":0,"type":"packetLossPercentage"}],"isCritical":true,"name":"ICMP + step","request":{"host":"34.95.79.70","numberOfPackets":4,"shouldTrackHops":true,"timeout":38},"retry":{"count":0,"interval":300},"subtype":"icmp","id":"zpq-hd3-5se"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"Websocket + step","request":{"basicAuth":{"password":"password","type":"web","username":"user"},"headers":{"f":"g"},"isMessageBase64Encoded":true,"message":"My + message","url":"ws://34.95.79.70/web-socket"},"retry":{"count":0,"interval":300},"subtype":"websocket","id":"dib-uee-9wy"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"UDP + step","request":{"host":"8.8.8.8","message":"A image.google.com","port":53},"retry":{"count":0,"interval":300},"subtype":"udp","id":"s78-iuj-ep9"}]},"message":"BDD + test payload: synthetics_api_test_multi_step_payload.json","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_a_FIDO_global_variable_returns_OK_response-1748873164","monitor_priority":5,"retry":{"count":3,"interval":1000},"tick_every":60},"locations":["aws:us-east-2"],"created_by":{"name":"frog","handle":"frog@datadoghq.com","email":"frog@datadoghq.com"},"deleted_at":null,"monitor_id":173873687,"org_id":321813,"modified_by":{"name":"frog","handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}}' headers: content-type: - application/json @@ -26,7 +38,7 @@ interactions: code: 200 message: OK - request: - body: '{"description":"","is_fido":true,"name":"GLOBAL_VARIABLE_FIDO_PAYLOAD_TESTCREATEAFIDOGLOBALVARIABLERETURNSOKRESPONSE1740501263","tags":[]}' + body: '{"description":"","is_fido":true,"name":"GLOBAL_VARIABLE_FIDO_PAYLOAD_TESTCREATEAFIDOGLOBALVARIABLERETURNSOKRESPONSE1748873164","tags":[]}' headers: accept: - application/json @@ -36,7 +48,7 @@ interactions: uri: https://api.datadoghq.com/api/v1/synthetics/variables response: body: - string: '{"id":"8cf7404b-d839-4a30-b86e-02158c90d20e","name":"GLOBAL_VARIABLE_FIDO_PAYLOAD_TESTCREATEAFIDOGLOBALVARIABLERETURNSOKRESPONSE1740501263","description":"","type":"variable","tags":[],"last_error":null,"is_fido":true,"value":{"secure":true}} + string: '{"id":"9d28ea82-c207-4940-935c-82a6fbe69765","name":"GLOBAL_VARIABLE_FIDO_PAYLOAD_TESTCREATEAFIDOGLOBALVARIABLERETURNSOKRESPONSE1748873164","description":"","type":"variable","tags":[],"last_error":null,"is_fido":true,"value":{"secure":true}} ' headers: @@ -51,7 +63,7 @@ interactions: accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v1/synthetics/variables/8cf7404b-d839-4a30-b86e-02158c90d20e + uri: https://api.datadoghq.com/api/v1/synthetics/variables/9d28ea82-c207-4940-935c-82a6fbe69765 response: body: string: '' @@ -62,7 +74,7 @@ interactions: code: 200 message: OK - request: - body: '{"public_ids":["rba-ta9-q2g"]}' + body: '{"public_ids":["xy5-fdf-62m"]}' headers: accept: - application/json @@ -72,7 +84,7 @@ interactions: uri: https://api.datadoghq.com/api/v1/synthetics/tests/delete response: body: - string: '{"deleted_tests":[{"public_id":"rba-ta9-q2g","deleted_at":"2025-02-25T16:34:26.535007+00:00"}]} + string: '{"deleted_tests":[{"public_id":"xy5-fdf-62m","deleted_at":"2025-06-02T14:06:07.944742+00:00"}]} ' headers: diff --git a/tests/v1/cassettes/test_scenarios/test_create_a_global_variable_from_test_returns_ok_response.frozen b/tests/v1/cassettes/test_scenarios/test_create_a_global_variable_from_test_returns_ok_response.frozen index f8db773858..50d9289b9b 100644 --- a/tests/v1/cassettes/test_scenarios/test_create_a_global_variable_from_test_returns_ok_response.frozen +++ b/tests/v1/cassettes/test_scenarios/test_create_a_global_variable_from_test_returns_ok_response.frozen @@ -1 +1 @@ -2025-02-25T16:34:29.813Z \ No newline at end of file +2025-06-02T14:03:51.685Z \ No newline at end of file diff --git a/tests/v1/cassettes/test_scenarios/test_create_a_global_variable_from_test_returns_ok_response.yaml b/tests/v1/cassettes/test_scenarios/test_create_a_global_variable_from_test_returns_ok_response.yaml index 729a64db96..162c6e921c 100644 --- a/tests/v1/cassettes/test_scenarios/test_create_a_global_variable_from_test_returns_ok_response.yaml +++ b/tests/v1/cassettes/test_scenarios/test_create_a_global_variable_from_test_returns_ok_response.yaml @@ -2,8 +2,15 @@ interactions: - request: body: '{"config":{"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"exitIfSucceed":true,"extractedValues":[{"field":"server","name":"EXTRACTED_VALUE","parser":{"type":"raw"},"secure":true,"type":"http_header"}],"extractedValuesFromScript":"dd.variable.set(''STATUS_CODE'', dd.response.statusCode);","isCritical":true,"name":"request is sent","request":{"httpVersion":"http2","method":"GET","timeout":10,"url":"https://datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"},{"name":"Wait","subtype":"wait","value":1},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"extractedValues":[],"isCritical":true,"name":"GRPC - CALL","request":{"callType":"unary","compressedJsonDescriptor":"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==","host":"grpcbin.test.k6.io","message":"{}","metadata":{},"method":"Index","port":9000,"service":"grpcbin.GRPCBin"},"retry":{"count":0,"interval":300},"subtype":"grpc"}]},"locations":["aws:us-east-2"],"message":"BDD - test payload: synthetics_api_test_multi_step_payload.json","name":"Test-Create_a_global_variable_from_test_returns_OK_response-1740501269","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_a_global_variable_from_test_returns_OK_response-1740501269","monitor_priority":5,"retry":{"count":3,"interval":1000},"tick_every":60},"subtype":"multi","tags":["testing:api"],"type":"api"}' + CALL","request":{"callType":"unary","compressedJsonDescriptor":"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==","host":"grpcbin.test.k6.io","message":"{}","metadata":{},"method":"Index","port":9000,"service":"grpcbin.GRPCBin"},"retry":{"count":0,"interval":300},"subtype":"grpc"},{"allowFailure":false,"assertions":[{"operator":"isInMoreThan","target":10,"type":"certificate"}],"isCritical":true,"name":"SSL + step","request":{"checkCertificateRevocation":true,"host":"example.org","port":443},"retry":{"count":0,"interval":300},"subtype":"ssl"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"DNS + step","request":{"dnsServer":"8.8.8.8","dnsServerPort":"53","host":"troisdizaines.com"},"retry":{"count":0,"interval":300},"subtype":"dns"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"TCP + step","request":{"host":"34.95.79.70","port":80,"shouldTrackHops":true,"timeout":32},"retry":{"count":0,"interval":300},"subtype":"tcp"},{"allowFailure":false,"assertions":[{"operator":"is","target":0,"type":"packetLossPercentage"}],"isCritical":true,"name":"ICMP + step","request":{"host":"34.95.79.70","numberOfPackets":4,"shouldTrackHops":true,"timeout":38},"retry":{"count":0,"interval":300},"subtype":"icmp"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"Websocket + step","request":{"basicAuth":{"password":"password","type":"web","username":"user"},"headers":{"f":"g"},"isMessageBase64Encoded":true,"message":"My + message","url":"ws://34.95.79.70/web-socket"},"retry":{"count":0,"interval":300},"subtype":"websocket"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"UDP + step","request":{"host":"8.8.8.8","message":"A image.google.com","port":53},"retry":{"count":0,"interval":300},"subtype":"udp"}]},"locations":["aws:us-east-2"],"message":"BDD + test payload: synthetics_api_test_multi_step_payload.json","name":"Test-Create_a_global_variable_from_test_returns_OK_response-1748873031","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_a_global_variable_from_test_returns_OK_response-1748873031","monitor_priority":5,"retry":{"count":3,"interval":1000},"tick_every":60},"subtype":"multi","tags":["testing:api"],"type":"api"}' headers: accept: - application/json @@ -13,12 +20,17 @@ interactions: uri: https://api.datadoghq.com/api/v1/synthetics/tests/api response: body: - string: '{"public_id":"qg9-nec-wty","name":"Test-Create_a_global_variable_from_test_returns_OK_response-1740501269","status":"live","type":"api","subtype":"multi","tags":["testing:api"],"created_at":"2025-02-25T16:34:30.448446+00:00","modified_at":"2025-02-25T16:34:30.448446+00:00","config":{"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"exitIfSucceed":true,"extractedValues":[{"field":"server","name":"EXTRACTED_VALUE","parser":{"type":"raw"},"secure":true,"type":"http_header"}],"extractedValuesFromScript":"dd.variable.set(''STATUS_CODE'', - dd.response.statusCode);","isCritical":true,"name":"request is sent","request":{"httpVersion":"http2","method":"GET","timeout":10,"url":"https://datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http","id":"hz3-p7k-vb9"},{"name":"Wait","subtype":"wait","value":1,"id":"epb-pxk-9md"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"extractedValues":[],"isCritical":true,"name":"GRPC - CALL","request":{"callType":"unary","compressedJsonDescriptor":"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==","host":"grpcbin.test.k6.io","message":"{}","metadata":{},"method":"Index","port":9000,"service":"grpcbin.GRPCBin"},"retry":{"count":0,"interval":300},"subtype":"grpc","id":"ze2-6az-iy4"}]},"message":"BDD - test payload: synthetics_api_test_multi_step_payload.json","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_a_global_variable_from_test_returns_OK_response-1740501269","monitor_priority":5,"retry":{"count":3,"interval":1000},"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":165393060,"org_id":321813,"modified_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","email":"team-intg-tools-libs-spam@datadoghq.com"}}' + string: '{"public_id":"igt-x8m-s8i","name":"Test-Create_a_global_variable_from_test_returns_OK_response-1748873031","status":"live","type":"api","subtype":"multi","tags":["testing:api"],"created_at":"2025-06-02T14:03:52.956600+00:00","modified_at":"2025-06-02T14:03:52.956600+00:00","config":{"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"exitIfSucceed":true,"extractedValues":[{"field":"server","name":"EXTRACTED_VALUE","parser":{"type":"raw"},"secure":true,"type":"http_header"}],"extractedValuesFromScript":"dd.variable.set(''STATUS_CODE'', + dd.response.statusCode);","isCritical":true,"name":"request is sent","request":{"httpVersion":"http2","method":"GET","timeout":10,"url":"https://datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http","id":"mr7-rvd-njj"},{"name":"Wait","subtype":"wait","value":1,"id":"wse-66s-yfk"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"extractedValues":[],"isCritical":true,"name":"GRPC + CALL","request":{"callType":"unary","compressedJsonDescriptor":"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==","host":"grpcbin.test.k6.io","message":"{}","metadata":{},"method":"Index","port":9000,"service":"grpcbin.GRPCBin"},"retry":{"count":0,"interval":300},"subtype":"grpc","id":"uga-mju-nnv"},{"allowFailure":false,"assertions":[{"operator":"isInMoreThan","target":10,"type":"certificate"}],"isCritical":true,"name":"SSL + step","request":{"checkCertificateRevocation":true,"host":"example.org","port":443},"retry":{"count":0,"interval":300},"subtype":"ssl","id":"c97-pxs-iih"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"DNS + step","request":{"dnsServer":"8.8.8.8","dnsServerPort":"53","host":"troisdizaines.com"},"retry":{"count":0,"interval":300},"subtype":"dns","id":"4t2-4au-uhr"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"TCP + step","request":{"host":"34.95.79.70","port":80,"shouldTrackHops":true,"timeout":32},"retry":{"count":0,"interval":300},"subtype":"tcp","id":"vvz-ht9-u8e"},{"allowFailure":false,"assertions":[{"operator":"is","target":0,"type":"packetLossPercentage"}],"isCritical":true,"name":"ICMP + step","request":{"host":"34.95.79.70","numberOfPackets":4,"shouldTrackHops":true,"timeout":38},"retry":{"count":0,"interval":300},"subtype":"icmp","id":"gkv-emx-pz7"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"Websocket + step","request":{"basicAuth":{"password":"password","type":"web","username":"user"},"headers":{"f":"g"},"isMessageBase64Encoded":true,"message":"My + message","url":"ws://34.95.79.70/web-socket"},"retry":{"count":0,"interval":300},"subtype":"websocket","id":"pke-6qx-k5s"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"UDP + step","request":{"host":"8.8.8.8","message":"A image.google.com","port":53},"retry":{"count":0,"interval":300},"subtype":"udp","id":"k5s-jya-7v8"}]},"message":"BDD + test payload: synthetics_api_test_multi_step_payload.json","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_a_global_variable_from_test_returns_OK_response-1748873031","monitor_priority":5,"retry":{"count":3,"interval":1000},"tick_every":60},"locations":["aws:us-east-2"],"created_by":{"name":"frog","handle":"frog@datadoghq.com","email":"frog@datadoghq.com"},"deleted_at":null,"monitor_id":173873535,"org_id":321813,"modified_by":{"name":"frog","handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}}' headers: content-type: - application/json @@ -26,7 +38,7 @@ interactions: code: 200 message: OK - request: - body: '{"description":"","name":"GLOBAL_VARIABLE_FROM_TEST_PAYLOAD_TESTCREATEAGLOBALVARIABLEFROMTESTRETURNSOKRESPONSE1740501269","parse_test_options":{"localVariableName":"EXTRACTED_VALUE","type":"local_variable"},"parse_test_public_id":"qg9-nec-wty","tags":[],"value":{"secure":false,"value":""}}' + body: '{"description":"","name":"GLOBAL_VARIABLE_FROM_TEST_PAYLOAD_TESTCREATEAGLOBALVARIABLEFROMTESTRETURNSOKRESPONSE1748873031","parse_test_options":{"localVariableName":"EXTRACTED_VALUE","type":"local_variable"},"parse_test_public_id":"igt-x8m-s8i","tags":[],"value":{"secure":false,"value":""}}' headers: accept: - application/json @@ -36,7 +48,7 @@ interactions: uri: https://api.datadoghq.com/api/v1/synthetics/variables response: body: - string: '{"id":"dc945f01-e7b6-47d6-9ce7-e57ae9756a52","name":"GLOBAL_VARIABLE_FROM_TEST_PAYLOAD_TESTCREATEAGLOBALVARIABLEFROMTESTRETURNSOKRESPONSE1740501269","description":"","type":"variable","tags":[],"last_error":null,"value":{"secure":false,"value":""},"parse_test_public_id":"qg9-nec-wty","parse_test_name":null,"parse_test_options":{"localVariableName":"EXTRACTED_VALUE","type":"local_variable"},"parse_test_extracted_at":null} + string: '{"id":"3425a5b3-4433-4272-96b1-ba3ae4251c4c","name":"GLOBAL_VARIABLE_FROM_TEST_PAYLOAD_TESTCREATEAGLOBALVARIABLEFROMTESTRETURNSOKRESPONSE1748873031","description":"","type":"variable","tags":[],"last_error":null,"value":{"secure":false,"value":""},"parse_test_public_id":"igt-x8m-s8i","parse_test_name":null,"parse_test_options":{"localVariableName":"EXTRACTED_VALUE","type":"local_variable"},"parse_test_extracted_at":null} ' headers: @@ -51,7 +63,7 @@ interactions: accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v1/synthetics/variables/dc945f01-e7b6-47d6-9ce7-e57ae9756a52 + uri: https://api.datadoghq.com/api/v1/synthetics/variables/3425a5b3-4433-4272-96b1-ba3ae4251c4c response: body: string: '' @@ -62,7 +74,7 @@ interactions: code: 200 message: OK - request: - body: '{"public_ids":["qg9-nec-wty"]}' + body: '{"public_ids":["igt-x8m-s8i"]}' headers: accept: - application/json @@ -72,7 +84,7 @@ interactions: uri: https://api.datadoghq.com/api/v1/synthetics/tests/delete response: body: - string: '{"deleted_tests":[{"public_id":"qg9-nec-wty","deleted_at":"2025-02-25T16:34:32.298728+00:00"}]} + string: '{"deleted_tests":[{"public_id":"igt-x8m-s8i","deleted_at":"2025-06-02T14:03:55.017560+00:00"}]} ' headers: diff --git a/tests/v1/cassettes/test_scenarios/test_create_a_totp_global_variable_returns_ok_response.frozen b/tests/v1/cassettes/test_scenarios/test_create_a_totp_global_variable_returns_ok_response.frozen index 7bf81373a2..61b25cdab4 100644 --- a/tests/v1/cassettes/test_scenarios/test_create_a_totp_global_variable_returns_ok_response.frozen +++ b/tests/v1/cassettes/test_scenarios/test_create_a_totp_global_variable_returns_ok_response.frozen @@ -1 +1 @@ -2025-02-25T16:34:26.775Z \ No newline at end of file +2025-06-02T14:05:42.416Z \ No newline at end of file diff --git a/tests/v1/cassettes/test_scenarios/test_create_a_totp_global_variable_returns_ok_response.yaml b/tests/v1/cassettes/test_scenarios/test_create_a_totp_global_variable_returns_ok_response.yaml index 1276d16c9f..658a9aaa15 100644 --- a/tests/v1/cassettes/test_scenarios/test_create_a_totp_global_variable_returns_ok_response.yaml +++ b/tests/v1/cassettes/test_scenarios/test_create_a_totp_global_variable_returns_ok_response.yaml @@ -2,8 +2,15 @@ interactions: - request: body: '{"config":{"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"exitIfSucceed":true,"extractedValues":[{"field":"server","name":"EXTRACTED_VALUE","parser":{"type":"raw"},"secure":true,"type":"http_header"}],"extractedValuesFromScript":"dd.variable.set(''STATUS_CODE'', dd.response.statusCode);","isCritical":true,"name":"request is sent","request":{"httpVersion":"http2","method":"GET","timeout":10,"url":"https://datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"},{"name":"Wait","subtype":"wait","value":1},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"extractedValues":[],"isCritical":true,"name":"GRPC - CALL","request":{"callType":"unary","compressedJsonDescriptor":"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==","host":"grpcbin.test.k6.io","message":"{}","metadata":{},"method":"Index","port":9000,"service":"grpcbin.GRPCBin"},"retry":{"count":0,"interval":300},"subtype":"grpc"}]},"locations":["aws:us-east-2"],"message":"BDD - test payload: synthetics_api_test_multi_step_payload.json","name":"Test-Create_a_TOTP_global_variable_returns_OK_response-1740501266","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_a_TOTP_global_variable_returns_OK_response-1740501266","monitor_priority":5,"retry":{"count":3,"interval":1000},"tick_every":60},"subtype":"multi","tags":["testing:api"],"type":"api"}' + CALL","request":{"callType":"unary","compressedJsonDescriptor":"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==","host":"grpcbin.test.k6.io","message":"{}","metadata":{},"method":"Index","port":9000,"service":"grpcbin.GRPCBin"},"retry":{"count":0,"interval":300},"subtype":"grpc"},{"allowFailure":false,"assertions":[{"operator":"isInMoreThan","target":10,"type":"certificate"}],"isCritical":true,"name":"SSL + step","request":{"checkCertificateRevocation":true,"host":"example.org","port":443},"retry":{"count":0,"interval":300},"subtype":"ssl"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"DNS + step","request":{"dnsServer":"8.8.8.8","dnsServerPort":"53","host":"troisdizaines.com"},"retry":{"count":0,"interval":300},"subtype":"dns"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"TCP + step","request":{"host":"34.95.79.70","port":80,"shouldTrackHops":true,"timeout":32},"retry":{"count":0,"interval":300},"subtype":"tcp"},{"allowFailure":false,"assertions":[{"operator":"is","target":0,"type":"packetLossPercentage"}],"isCritical":true,"name":"ICMP + step","request":{"host":"34.95.79.70","numberOfPackets":4,"shouldTrackHops":true,"timeout":38},"retry":{"count":0,"interval":300},"subtype":"icmp"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"Websocket + step","request":{"basicAuth":{"password":"password","type":"web","username":"user"},"headers":{"f":"g"},"isMessageBase64Encoded":true,"message":"My + message","url":"ws://34.95.79.70/web-socket"},"retry":{"count":0,"interval":300},"subtype":"websocket"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"UDP + step","request":{"host":"8.8.8.8","message":"A image.google.com","port":53},"retry":{"count":0,"interval":300},"subtype":"udp"}]},"locations":["aws:us-east-2"],"message":"BDD + test payload: synthetics_api_test_multi_step_payload.json","name":"Test-Create_a_TOTP_global_variable_returns_OK_response-1748873142","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_a_TOTP_global_variable_returns_OK_response-1748873142","monitor_priority":5,"retry":{"count":3,"interval":1000},"tick_every":60},"subtype":"multi","tags":["testing:api"],"type":"api"}' headers: accept: - application/json @@ -13,12 +20,17 @@ interactions: uri: https://api.datadoghq.com/api/v1/synthetics/tests/api response: body: - string: '{"public_id":"bse-bii-ers","name":"Test-Create_a_TOTP_global_variable_returns_OK_response-1740501266","status":"live","type":"api","subtype":"multi","tags":["testing:api"],"created_at":"2025-02-25T16:34:27.539621+00:00","modified_at":"2025-02-25T16:34:27.539621+00:00","config":{"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"exitIfSucceed":true,"extractedValues":[{"field":"server","name":"EXTRACTED_VALUE","parser":{"type":"raw"},"secure":true,"type":"http_header"}],"extractedValuesFromScript":"dd.variable.set(''STATUS_CODE'', - dd.response.statusCode);","isCritical":true,"name":"request is sent","request":{"httpVersion":"http2","method":"GET","timeout":10,"url":"https://datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http","id":"sq5-s9r-42j"},{"name":"Wait","subtype":"wait","value":1,"id":"94k-jji-78c"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"extractedValues":[],"isCritical":true,"name":"GRPC - CALL","request":{"callType":"unary","compressedJsonDescriptor":"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==","host":"grpcbin.test.k6.io","message":"{}","metadata":{},"method":"Index","port":9000,"service":"grpcbin.GRPCBin"},"retry":{"count":0,"interval":300},"subtype":"grpc","id":"cae-vwz-fxu"}]},"message":"BDD - test payload: synthetics_api_test_multi_step_payload.json","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_a_TOTP_global_variable_returns_OK_response-1740501266","monitor_priority":5,"retry":{"count":3,"interval":1000},"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":165393056,"org_id":321813,"modified_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","email":"team-intg-tools-libs-spam@datadoghq.com"}}' + string: '{"public_id":"rvj-43h-5zv","name":"Test-Create_a_TOTP_global_variable_returns_OK_response-1748873142","status":"live","type":"api","subtype":"multi","tags":["testing:api"],"created_at":"2025-06-02T14:05:43.614434+00:00","modified_at":"2025-06-02T14:05:43.614434+00:00","config":{"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"exitIfSucceed":true,"extractedValues":[{"field":"server","name":"EXTRACTED_VALUE","parser":{"type":"raw"},"secure":true,"type":"http_header"}],"extractedValuesFromScript":"dd.variable.set(''STATUS_CODE'', + dd.response.statusCode);","isCritical":true,"name":"request is sent","request":{"httpVersion":"http2","method":"GET","timeout":10,"url":"https://datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http","id":"hmq-tvi-gud"},{"name":"Wait","subtype":"wait","value":1,"id":"6ce-ark-rtb"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"extractedValues":[],"isCritical":true,"name":"GRPC + CALL","request":{"callType":"unary","compressedJsonDescriptor":"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==","host":"grpcbin.test.k6.io","message":"{}","metadata":{},"method":"Index","port":9000,"service":"grpcbin.GRPCBin"},"retry":{"count":0,"interval":300},"subtype":"grpc","id":"c3r-2wg-dag"},{"allowFailure":false,"assertions":[{"operator":"isInMoreThan","target":10,"type":"certificate"}],"isCritical":true,"name":"SSL + step","request":{"checkCertificateRevocation":true,"host":"example.org","port":443},"retry":{"count":0,"interval":300},"subtype":"ssl","id":"aaq-vgm-28b"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"DNS + step","request":{"dnsServer":"8.8.8.8","dnsServerPort":"53","host":"troisdizaines.com"},"retry":{"count":0,"interval":300},"subtype":"dns","id":"n2p-m48-cyq"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"TCP + step","request":{"host":"34.95.79.70","port":80,"shouldTrackHops":true,"timeout":32},"retry":{"count":0,"interval":300},"subtype":"tcp","id":"b94-35d-5ig"},{"allowFailure":false,"assertions":[{"operator":"is","target":0,"type":"packetLossPercentage"}],"isCritical":true,"name":"ICMP + step","request":{"host":"34.95.79.70","numberOfPackets":4,"shouldTrackHops":true,"timeout":38},"retry":{"count":0,"interval":300},"subtype":"icmp","id":"6bj-7tj-cmw"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"Websocket + step","request":{"basicAuth":{"password":"password","type":"web","username":"user"},"headers":{"f":"g"},"isMessageBase64Encoded":true,"message":"My + message","url":"ws://34.95.79.70/web-socket"},"retry":{"count":0,"interval":300},"subtype":"websocket","id":"xxg-ngd-hds"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"UDP + step","request":{"host":"8.8.8.8","message":"A image.google.com","port":53},"retry":{"count":0,"interval":300},"subtype":"udp","id":"irv-quv-d2f"}]},"message":"BDD + test payload: synthetics_api_test_multi_step_payload.json","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_a_TOTP_global_variable_returns_OK_response-1748873142","monitor_priority":5,"retry":{"count":3,"interval":1000},"tick_every":60},"locations":["aws:us-east-2"],"created_by":{"name":"frog","handle":"frog@datadoghq.com","email":"frog@datadoghq.com"},"deleted_at":null,"monitor_id":173873648,"org_id":321813,"modified_by":{"name":"frog","handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}}' headers: content-type: - application/json @@ -26,7 +38,7 @@ interactions: code: 200 message: OK - request: - body: '{"description":"","is_totp":true,"name":"GLOBAL_VARIABLE_TOTP_PAYLOAD_TESTCREATEATOTPGLOBALVARIABLERETURNSOKRESPONSE1740501266","tags":[],"value":{"options":{"totp_parameters":{"digits":6,"refresh_interval":30}},"secure":false,"value":""}}' + body: '{"description":"","is_totp":true,"name":"GLOBAL_VARIABLE_TOTP_PAYLOAD_TESTCREATEATOTPGLOBALVARIABLERETURNSOKRESPONSE1748873142","tags":[],"value":{"options":{"totp_parameters":{"digits":6,"refresh_interval":30}},"secure":false,"value":""}}' headers: accept: - application/json @@ -36,7 +48,7 @@ interactions: uri: https://api.datadoghq.com/api/v1/synthetics/variables response: body: - string: '{"id":"c4f2b7b7-ff83-426d-8cc3-d44834d240ef","name":"GLOBAL_VARIABLE_TOTP_PAYLOAD_TESTCREATEATOTPGLOBALVARIABLERETURNSOKRESPONSE1740501266","description":"","type":"variable","tags":[],"last_error":null,"is_totp":true,"value":{"options":{"totp_parameters":{"digits":6,"refresh_interval":30}},"secure":false,"value":""}} + string: '{"id":"6243bf46-c2da-4411-ae6e-11a2f6499106","name":"GLOBAL_VARIABLE_TOTP_PAYLOAD_TESTCREATEATOTPGLOBALVARIABLERETURNSOKRESPONSE1748873142","description":"","type":"variable","tags":[],"last_error":null,"is_totp":true,"value":{"options":{"totp_parameters":{"digits":6,"refresh_interval":30}},"secure":false,"value":""}} ' headers: @@ -51,7 +63,7 @@ interactions: accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v1/synthetics/variables/c4f2b7b7-ff83-426d-8cc3-d44834d240ef + uri: https://api.datadoghq.com/api/v1/synthetics/variables/6243bf46-c2da-4411-ae6e-11a2f6499106 response: body: string: '' @@ -62,7 +74,7 @@ interactions: code: 200 message: OK - request: - body: '{"public_ids":["bse-bii-ers"]}' + body: '{"public_ids":["rvj-43h-5zv"]}' headers: accept: - application/json @@ -72,7 +84,7 @@ interactions: uri: https://api.datadoghq.com/api/v1/synthetics/tests/delete response: body: - string: '{"deleted_tests":[{"public_id":"bse-bii-ers","deleted_at":"2025-02-25T16:34:29.583519+00:00"}]} + string: '{"deleted_tests":[{"public_id":"rvj-43h-5zv","deleted_at":"2025-06-02T14:05:45.464641+00:00"}]} ' headers: diff --git a/tests/v1/cassettes/test_scenarios/test_create_an_api_test_with_multi_subtype_returns_ok_returns_the_created_test_details_response.frozen b/tests/v1/cassettes/test_scenarios/test_create_an_api_test_with_multi_subtype_returns_ok_returns_the_created_test_details_response.frozen index c53266a6c6..75119b9425 100644 --- a/tests/v1/cassettes/test_scenarios/test_create_an_api_test_with_multi_subtype_returns_ok_returns_the_created_test_details_response.frozen +++ b/tests/v1/cassettes/test_scenarios/test_create_an_api_test_with_multi_subtype_returns_ok_returns_the_created_test_details_response.frozen @@ -1 +1 @@ -2025-02-25T16:34:32.557Z \ No newline at end of file +2025-06-02T13:54:14.928Z \ No newline at end of file diff --git a/tests/v1/cassettes/test_scenarios/test_create_an_api_test_with_multi_subtype_returns_ok_returns_the_created_test_details_response.yaml b/tests/v1/cassettes/test_scenarios/test_create_an_api_test_with_multi_subtype_returns_ok_returns_the_created_test_details_response.yaml index 3df517bbcc..d0e3dec5fd 100644 --- a/tests/v1/cassettes/test_scenarios/test_create_an_api_test_with_multi_subtype_returns_ok_returns_the_created_test_details_response.yaml +++ b/tests/v1/cassettes/test_scenarios/test_create_an_api_test_with_multi_subtype_returns_ok_returns_the_created_test_details_response.yaml @@ -2,8 +2,15 @@ interactions: - request: body: '{"config":{"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"exitIfSucceed":true,"extractedValues":[{"field":"server","name":"EXTRACTED_VALUE","parser":{"type":"raw"},"secure":true,"type":"http_header"}],"extractedValuesFromScript":"dd.variable.set(''STATUS_CODE'', dd.response.statusCode);","isCritical":true,"name":"request is sent","request":{"httpVersion":"http2","method":"GET","timeout":10,"url":"https://datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"},{"name":"Wait","subtype":"wait","value":1},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"extractedValues":[],"isCritical":true,"name":"GRPC - CALL","request":{"callType":"unary","compressedJsonDescriptor":"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==","host":"grpcbin.test.k6.io","message":"{}","metadata":{},"method":"Index","port":9000,"service":"grpcbin.GRPCBin"},"retry":{"count":0,"interval":300},"subtype":"grpc"}]},"locations":["aws:us-east-2"],"message":"BDD - test payload: synthetics_api_test_multi_step_payload.json","name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1740501272","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1740501272","monitor_priority":5,"retry":{"count":3,"interval":1000},"tick_every":60},"subtype":"multi","tags":["testing:api"],"type":"api"}' + CALL","request":{"callType":"unary","compressedJsonDescriptor":"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==","host":"grpcbin.test.k6.io","message":"{}","metadata":{},"method":"Index","port":9000,"service":"grpcbin.GRPCBin"},"retry":{"count":0,"interval":300},"subtype":"grpc"},{"allowFailure":false,"assertions":[{"operator":"isInMoreThan","target":10,"type":"certificate"}],"isCritical":true,"name":"SSL + step","request":{"checkCertificateRevocation":true,"host":"example.org","port":443},"retry":{"count":0,"interval":300},"subtype":"ssl"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"DNS + step","request":{"dnsServer":"8.8.8.8","dnsServerPort":"53","host":"troisdizaines.com"},"retry":{"count":0,"interval":300},"subtype":"dns"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"TCP + step","request":{"host":"34.95.79.70","port":80,"shouldTrackHops":true,"timeout":32},"retry":{"count":0,"interval":300},"subtype":"tcp"},{"allowFailure":false,"assertions":[{"operator":"is","target":0,"type":"packetLossPercentage"}],"isCritical":true,"name":"ICMP + step","request":{"host":"34.95.79.70","numberOfPackets":4,"shouldTrackHops":true,"timeout":38},"retry":{"count":0,"interval":300},"subtype":"icmp"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"Websocket + step","request":{"basicAuth":{"password":"password","type":"web","username":"user"},"headers":{"f":"g"},"isMessageBase64Encoded":true,"message":"My + message","url":"ws://34.95.79.70/web-socket"},"retry":{"count":0,"interval":300},"subtype":"websocket"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"UDP + step","request":{"host":"8.8.8.8","message":"A image.google.com","port":53},"retry":{"count":0,"interval":300},"subtype":"udp"}]},"locations":["aws:us-east-2"],"message":"BDD + test payload: synthetics_api_test_multi_step_payload.json","name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1748872454","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1748872454","monitor_priority":5,"retry":{"count":3,"interval":1000},"tick_every":60},"subtype":"multi","tags":["testing:api"],"type":"api"}' headers: accept: - application/json @@ -13,12 +20,17 @@ interactions: uri: https://api.datadoghq.com/api/v1/synthetics/tests/api response: body: - string: '{"public_id":"xbn-4ef-iaf","name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1740501272","status":"live","type":"api","subtype":"multi","tags":["testing:api"],"created_at":"2025-02-25T16:34:33.210809+00:00","modified_at":"2025-02-25T16:34:33.210809+00:00","config":{"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"exitIfSucceed":true,"extractedValues":[{"field":"server","name":"EXTRACTED_VALUE","parser":{"type":"raw"},"secure":true,"type":"http_header"}],"extractedValuesFromScript":"dd.variable.set(''STATUS_CODE'', - dd.response.statusCode);","isCritical":true,"name":"request is sent","request":{"httpVersion":"http2","method":"GET","timeout":10,"url":"https://datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http","id":"4z3-ufk-5rx"},{"name":"Wait","subtype":"wait","value":1,"id":"dyn-2dd-g5j"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"extractedValues":[],"isCritical":true,"name":"GRPC - CALL","request":{"callType":"unary","compressedJsonDescriptor":"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==","host":"grpcbin.test.k6.io","message":"{}","metadata":{},"method":"Index","port":9000,"service":"grpcbin.GRPCBin"},"retry":{"count":0,"interval":300},"subtype":"grpc","id":"msb-wjm-zt6"}]},"message":"BDD - test payload: synthetics_api_test_multi_step_payload.json","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1740501272","monitor_priority":5,"retry":{"count":3,"interval":1000},"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":165393063,"org_id":321813,"modified_by":{"name":"CI - Account","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","email":"team-intg-tools-libs-spam@datadoghq.com"}}' + string: '{"public_id":"f8g-ufw-7jh","name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1748872454","status":"live","type":"api","subtype":"multi","tags":["testing:api"],"created_at":"2025-06-02T13:54:16.385956+00:00","modified_at":"2025-06-02T13:54:16.385956+00:00","config":{"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"exitIfSucceed":true,"extractedValues":[{"field":"server","name":"EXTRACTED_VALUE","parser":{"type":"raw"},"secure":true,"type":"http_header"}],"extractedValuesFromScript":"dd.variable.set(''STATUS_CODE'', + dd.response.statusCode);","isCritical":true,"name":"request is sent","request":{"httpVersion":"http2","method":"GET","timeout":10,"url":"https://datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http","id":"b9i-49e-cbc"},{"name":"Wait","subtype":"wait","value":1,"id":"hts-r8n-7cd"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"extractedValues":[],"isCritical":true,"name":"GRPC + CALL","request":{"callType":"unary","compressedJsonDescriptor":"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==","host":"grpcbin.test.k6.io","message":"{}","metadata":{},"method":"Index","port":9000,"service":"grpcbin.GRPCBin"},"retry":{"count":0,"interval":300},"subtype":"grpc","id":"bjn-q2b-i3f"},{"allowFailure":false,"assertions":[{"operator":"isInMoreThan","target":10,"type":"certificate"}],"isCritical":true,"name":"SSL + step","request":{"checkCertificateRevocation":true,"host":"example.org","port":443},"retry":{"count":0,"interval":300},"subtype":"ssl","id":"4av-6tm-hv2"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"DNS + step","request":{"dnsServer":"8.8.8.8","dnsServerPort":"53","host":"troisdizaines.com"},"retry":{"count":0,"interval":300},"subtype":"dns","id":"fpg-qw2-4hd"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"TCP + step","request":{"host":"34.95.79.70","port":80,"shouldTrackHops":true,"timeout":32},"retry":{"count":0,"interval":300},"subtype":"tcp","id":"mhy-akb-v3w"},{"allowFailure":false,"assertions":[{"operator":"is","target":0,"type":"packetLossPercentage"}],"isCritical":true,"name":"ICMP + step","request":{"host":"34.95.79.70","numberOfPackets":4,"shouldTrackHops":true,"timeout":38},"retry":{"count":0,"interval":300},"subtype":"icmp","id":"hzi-i5i-5q6"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"Websocket + step","request":{"basicAuth":{"password":"password","type":"web","username":"user"},"headers":{"f":"g"},"isMessageBase64Encoded":true,"message":"My + message","url":"ws://34.95.79.70/web-socket"},"retry":{"count":0,"interval":300},"subtype":"websocket","id":"ghb-izk-i5v"},{"allowFailure":false,"assertions":[{"operator":"lessThan","target":1000,"type":"responseTime"}],"isCritical":true,"name":"UDP + step","request":{"host":"8.8.8.8","message":"A image.google.com","port":53},"retry":{"count":0,"interval":300},"subtype":"udp","id":"e8r-xz9-g9j"}]},"message":"BDD + test payload: synthetics_api_test_multi_step_payload.json","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1748872454","monitor_priority":5,"retry":{"count":3,"interval":1000},"tick_every":60},"locations":["aws:us-east-2"],"created_by":{"name":"frog","handle":"frog@datadoghq.com","email":"frog@datadoghq.com"},"deleted_at":null,"monitor_id":173872568,"org_id":321813,"modified_by":{"name":"frog","handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}}' headers: content-type: - application/json @@ -26,7 +38,7 @@ interactions: code: 200 message: OK - request: - body: '{"public_ids":["xbn-4ef-iaf"]}' + body: '{"public_ids":["f8g-ufw-7jh"]}' headers: accept: - application/json @@ -36,7 +48,7 @@ interactions: uri: https://api.datadoghq.com/api/v1/synthetics/tests/delete response: body: - string: '{"deleted_tests":[{"public_id":"xbn-4ef-iaf","deleted_at":"2025-02-25T16:34:34.204246+00:00"}]} + string: '{"deleted_tests":[{"public_id":"f8g-ufw-7jh","deleted_at":"2025-06-02T13:54:17.391847+00:00"}]} ' headers: diff --git a/tests/v1/features/given.json b/tests/v1/features/given.json index 088e40aed1..3aff222e7c 100644 --- a/tests/v1/features/given.json +++ b/tests/v1/features/given.json @@ -250,7 +250,7 @@ "parameters": [ { "name": "body", - "value": "{\n \"config\": {\n \"configVariables\": [\n {\n \"example\": \"content-type\",\n \"name\": \"PROPERTY\",\n \"pattern\": \"content-type\",\n \"type\": \"text\"\n }\n ],\n \"steps\": [\n {\n \"allowFailure\": true,\n \"assertions\": [\n {\n \"operator\": \"is\",\n \"type\": \"statusCode\",\n \"target\": 200\n }\n ],\n \"exitIfSucceed\": true,\n \"extractedValues\": [\n {\n \"field\": \"server\",\n \"name\": \"EXTRACTED_VALUE\",\n \"parser\": {\n \"type\": \"raw\"\n },\n \"type\": \"http_header\",\n \"secure\": true\n }\n ],\n \"isCritical\": true,\n \"name\": \"request is sent\",\n \"request\": {\n \"method\": \"GET\",\n \"timeout\": 10,\n \"url\": \"https://datadoghq.com\",\n \"httpVersion\": \"http2\"\n },\n \"retry\": {\n \"count\": 5,\n \"interval\": 1000\n },\n \"subtype\": \"http\",\n \"extractedValuesFromScript\": \"dd.variable.set('STATUS_CODE', dd.response.statusCode);\"\n },\n {\n \"name\": \"Wait\",\n \"subtype\": \"wait\",\n \"value\": 1\n },\n {\n \"name\": \"GRPC CALL\",\n \"subtype\": \"grpc\",\n \"extractedValues\": [],\n \"allowFailure\": false,\n \"isCritical\": true,\n \"retry\": {\n \"count\": 0,\n \"interval\": 300\n },\n \"assertions\": [\n {\n \"operator\": \"lessThan\",\n \"type\": \"responseTime\",\n \"target\": 1000\n }\n ],\n \"request\": {\n \"host\": \"grpcbin.test.k6.io\",\n \"port\": 9000,\n \"service\": \"grpcbin.GRPCBin\",\n \"method\": \"Index\",\n \"message\": \"{}\",\n \"compressedJsonDescriptor\": \"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==\",\n \"metadata\": {},\n \"callType\": \"unary\"\n }\n }\n ]\n },\n \"locations\": [\"aws:us-east-2\"],\n \"message\": \"BDD test payload: synthetics_api_test_multi_step_payload.json\",\n \"name\": \"{{ unique }}\",\n \"options\": {\n \"accept_self_signed\": false,\n \"allow_insecure\": true,\n \"follow_redirects\": true,\n \"min_failure_duration\": 10,\n \"min_location_failed\": 1,\n \"monitor_name\": \"{{ unique }}\",\n \"monitor_priority\": 5,\n \"retry\": { \"count\": 3, \"interval\": 1000 },\n \"tick_every\": 60\n },\n \"subtype\": \"multi\",\n \"tags\": [\"testing:api\"],\n \"type\": \"api\"\n}\n" + "value": "{\n \"config\": {\n \"configVariables\": [\n {\n \"example\": \"content-type\",\n \"name\": \"PROPERTY\",\n \"pattern\": \"content-type\",\n \"type\": \"text\"\n }\n ],\n \"steps\": [\n {\n \"allowFailure\": true,\n \"assertions\": [\n {\n \"operator\": \"is\",\n \"type\": \"statusCode\",\n \"target\": 200\n }\n ],\n \"exitIfSucceed\": true,\n \"extractedValues\": [\n {\n \"field\": \"server\",\n \"name\": \"EXTRACTED_VALUE\",\n \"parser\": {\n \"type\": \"raw\"\n },\n \"type\": \"http_header\",\n \"secure\": true\n }\n ],\n \"isCritical\": true,\n \"name\": \"request is sent\",\n \"request\": {\n \"method\": \"GET\",\n \"timeout\": 10,\n \"url\": \"https://datadoghq.com\",\n \"httpVersion\": \"http2\"\n },\n \"retry\": {\n \"count\": 5,\n \"interval\": 1000\n },\n \"subtype\": \"http\",\n \"extractedValuesFromScript\": \"dd.variable.set('STATUS_CODE', dd.response.statusCode);\"\n },\n {\n \"name\": \"Wait\",\n \"subtype\": \"wait\",\n \"value\": 1\n },\n {\n \"name\": \"GRPC CALL\",\n \"subtype\": \"grpc\",\n \"extractedValues\": [],\n \"allowFailure\": false,\n \"isCritical\": true,\n \"retry\": {\n \"count\": 0,\n \"interval\": 300\n },\n \"assertions\": [\n {\n \"operator\": \"lessThan\",\n \"type\": \"responseTime\",\n \"target\": 1000\n }\n ],\n \"request\": {\n \"host\": \"grpcbin.test.k6.io\",\n \"port\": 9000,\n \"service\": \"grpcbin.GRPCBin\",\n \"method\": \"Index\",\n \"message\": \"{}\",\n \"compressedJsonDescriptor\": \"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==\",\n \"metadata\": {},\n \"callType\": \"unary\"\n }\n },\n {\n \"name\": \"SSL step\",\n \"subtype\": \"ssl\",\n \"allowFailure\": false,\n \"isCritical\": true,\n \"retry\": {\n \"count\": 0,\n \"interval\": 300\n },\n \"assertions\": [\n {\n \"operator\": \"isInMoreThan\",\n \"type\": \"certificate\",\n \"target\": 10\n }\n ],\n \"request\": {\n \"checkCertificateRevocation\": true,\n \"host\": \"example.org\",\n \"port\": 443\n }\n },\n {\n \"name\": \"DNS step\",\n \"subtype\": \"dns\",\n \"allowFailure\": false,\n \"isCritical\": true,\n \"retry\": {\n \"count\": 0,\n \"interval\": 300\n },\n \"assertions\": [\n {\n \"operator\": \"lessThan\",\n \"type\": \"responseTime\",\n \"target\": 1000\n }\n ],\n \"request\": {\n \"host\": \"troisdizaines.com\",\n \"dnsServer\": \"8.8.8.8\",\n \"dnsServerPort\": \"53\"\n }\n },\n {\n \"name\": \"TCP step\",\n \"subtype\": \"tcp\",\n \"allowFailure\": false,\n \"isCritical\": true,\n \"retry\": {\n \"count\": 0,\n \"interval\": 300\n },\n \"assertions\": [\n {\n \"operator\": \"lessThan\",\n \"type\": \"responseTime\",\n \"target\": 1000\n }\n ],\n \"request\": {\n \"host\": \"34.95.79.70\",\n \"port\": 80,\n \"shouldTrackHops\": true,\n \"timeout\": 32\n }\n },\n {\n \"name\": \"ICMP step\",\n \"subtype\": \"icmp\",\n \"allowFailure\": false,\n \"isCritical\": true,\n \"retry\": {\n \"count\": 0,\n \"interval\": 300\n },\n \"assertions\": [\n {\n \"operator\": \"is\",\n \"target\": 0,\n \"type\": \"packetLossPercentage\"\n }\n ],\n \"request\": {\n \"host\": \"34.95.79.70\",\n \"numberOfPackets\": 4,\n \"shouldTrackHops\": true,\n \"timeout\": 38\n }\n },\n {\n \"name\": \"Websocket step\",\n \"subtype\": \"websocket\",\n \"allowFailure\": false,\n \"isCritical\": true,\n \"retry\": {\n \"count\": 0,\n \"interval\": 300\n },\n \"assertions\": [\n {\n \"operator\": \"lessThan\",\n \"type\": \"responseTime\",\n \"target\": 1000\n }\n ],\n \"request\": {\n \"url\": \"ws://34.95.79.70/web-socket\",\n \"message\": \"My message\",\n \"isMessageBase64Encoded\": true,\n \"headers\": {\n \"f\": \"g\"\n },\n \"basicAuth\": {\n \"type\": \"web\",\n \"username\": \"user\",\n \"password\": \"password\"\n }\n }\n },\n {\n \"name\": \"UDP step\",\n \"subtype\": \"udp\",\n \"allowFailure\": false,\n \"isCritical\": true,\n \"retry\": {\n \"count\": 0,\n \"interval\": 300\n },\n \"assertions\": [\n {\n \"operator\": \"lessThan\",\n \"type\": \"responseTime\",\n \"target\": 1000\n }\n ],\n \"request\": {\n \"host\": \"8.8.8.8\",\n \"port\": 53,\n \"message\": \"A image.google.com\"\n }\n }\n ]\n },\n \"locations\": [\n \"aws:us-east-2\"\n ],\n \"message\": \"BDD test payload: synthetics_api_test_multi_step_payload.json\",\n \"name\": \"{{ unique }}\",\n \"options\": {\n \"accept_self_signed\": false,\n \"allow_insecure\": true,\n \"follow_redirects\": true,\n \"min_failure_duration\": 10,\n \"min_location_failed\": 1,\n \"monitor_name\": \"{{ unique }}\",\n \"monitor_priority\": 5,\n \"retry\": {\n \"count\": 3,\n \"interval\": 1000\n },\n \"tick_every\": 60\n },\n \"subtype\": \"multi\",\n \"tags\": [\n \"testing:api\"\n ],\n \"type\": \"api\"\n}" } ], "step": "there is a valid \"synthetics_api_test_multi_step\" in the system", diff --git a/tests/v1/features/synthetics.feature b/tests/v1/features/synthetics.feature index 931551e30f..8ac89dcd26 100644 --- a/tests/v1/features/synthetics.feature +++ b/tests/v1/features/synthetics.feature @@ -302,7 +302,26 @@ Feature: Synthetics And the response "config.steps[1].subtype" is equal to "wait" And the response "config.steps[1].value" is equal to 1 And the response "config.steps[2].request.host" is equal to "grpcbin.test.k6.io" - And the response "config.steps[2].request.host" is equal to "grpcbin.test.k6.io" + And the response "config.steps[3].subtype" is equal to "ssl" + And the response "config.steps[3].request.host" is equal to "example.org" + And the response "config.steps[3].request.port" is equal to 443 + And the response "config.steps[3].request.checkCertificateRevocation" is equal to true + And the response "config.steps[4].subtype" is equal to "dns" + And the response "config.steps[4].request.host" is equal to "troisdizaines.com" + And the response "config.steps[4].request.dnsServer" is equal to "8.8.8.8" + And the response "config.steps[4].request.dnsServerPort" is equal to "53" + And the response "config.steps[5].subtype" is equal to "tcp" + And the response "config.steps[5].request.host" is equal to "34.95.79.70" + And the response "config.steps[5].request.shouldTrackHops" is equal to true + And the response "config.steps[6].subtype" is equal to "icmp" + And the response "config.steps[6].request.host" is equal to "34.95.79.70" + And the response "config.steps[6].request.numberOfPackets" is equal to 4 + And the response "config.steps[7].subtype" is equal to "websocket" + And the response "config.steps[7].request.url" is equal to "ws://34.95.79.70/web-socket" + And the response "config.steps[7].request.message" is equal to "My message" + And the response "config.steps[7].request.isMessageBase64Encoded" is equal to true + And the response "config.steps[8].subtype" is equal to "udp" + And the response "config.steps[8].request.host" is equal to "8.8.8.8" @generated @skip @team:DataDog/synthetics-ct Scenario: Delete a global variable returns "JSON format is wrong" response diff --git a/tests/v1/features/synthetics_api_test_multi_step_payload.json b/tests/v1/features/synthetics_api_test_multi_step_payload.json index c15117ba64..70e79e7b6b 100644 --- a/tests/v1/features/synthetics_api_test_multi_step_payload.json +++ b/tests/v1/features/synthetics_api_test_multi_step_payload.json @@ -77,10 +77,154 @@ "metadata": {}, "callType": "unary" } + }, + { + "name": "SSL step", + "subtype": "ssl", + "allowFailure": false, + "isCritical": true, + "retry": { + "count": 0, + "interval": 300 + }, + "assertions": [ + { + "operator": "isInMoreThan", + "type": "certificate", + "target": 10 + } + ], + "request": { + "checkCertificateRevocation": true, + "host": "example.org", + "port": 443 + } + }, + { + "name": "DNS step", + "subtype": "dns", + "allowFailure": false, + "isCritical": true, + "retry": { + "count": 0, + "interval": 300 + }, + "assertions": [ + { + "operator": "lessThan", + "type": "responseTime", + "target": 1000 + } + ], + "request": { + "host": "troisdizaines.com", + "dnsServer": "8.8.8.8", + "dnsServerPort": "53" + } + }, + { + "name": "TCP step", + "subtype": "tcp", + "allowFailure": false, + "isCritical": true, + "retry": { + "count": 0, + "interval": 300 + }, + "assertions": [ + { + "operator": "lessThan", + "type": "responseTime", + "target": 1000 + } + ], + "request": { + "host": "34.95.79.70", + "port": 80, + "shouldTrackHops": true, + "timeout": 32 + } + }, + { + "name": "ICMP step", + "subtype": "icmp", + "allowFailure": false, + "isCritical": true, + "retry": { + "count": 0, + "interval": 300 + }, + "assertions": [ + { + "operator": "is", + "target": 0, + "type": "packetLossPercentage" + } + ], + "request": { + "host": "34.95.79.70", + "numberOfPackets": 4, + "shouldTrackHops": true, + "timeout": 38 + } + }, + { + "name": "Websocket step", + "subtype": "websocket", + "allowFailure": false, + "isCritical": true, + "retry": { + "count": 0, + "interval": 300 + }, + "assertions": [ + { + "operator": "lessThan", + "type": "responseTime", + "target": 1000 + } + ], + "request": { + "url": "ws://34.95.79.70/web-socket", + "message": "My message", + "isMessageBase64Encoded": true, + "headers": { + "f": "g" + }, + "basicAuth": { + "type": "web", + "username": "user", + "password": "password" + } + } + }, + { + "name": "UDP step", + "subtype": "udp", + "allowFailure": false, + "isCritical": true, + "retry": { + "count": 0, + "interval": 300 + }, + "assertions": [ + { + "operator": "lessThan", + "type": "responseTime", + "target": 1000 + } + ], + "request": { + "host": "8.8.8.8", + "port": 53, + "message": "A image.google.com" + } } ] }, - "locations": ["aws:us-east-2"], + "locations": [ + "aws:us-east-2" + ], "message": "BDD test payload: synthetics_api_test_multi_step_payload.json", "name": "{{ unique }}", "options": { @@ -91,10 +235,15 @@ "min_location_failed": 1, "monitor_name": "{{ unique }}", "monitor_priority": 5, - "retry": { "count": 3, "interval": 1000 }, + "retry": { + "count": 3, + "interval": 1000 + }, "tick_every": 60 }, "subtype": "multi", - "tags": ["testing:api"], + "tags": [ + "testing:api" + ], "type": "api" -} +} \ No newline at end of file