diff --git a/.apigentools-info b/.apigentools-info index 871606e4118d..bb4e547e37fb 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:40.724881", - "spec_repo_commit": "faa72400" + "regenerated": "2025-06-06 09:05:57.050790", + "spec_repo_commit": "14586db5" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-06-05 09:49:40.740637", - "spec_repo_commit": "faa72400" + "regenerated": "2025-06-06 09:05:57.067750", + "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 3fe10ea7b612..1ad9e34e1c35 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/cassettes/v1/Synthetics_2658572017/Create-a-FIDO-global-variable-returns-OK-response_3226312717/frozen.json b/cassettes/v1/Synthetics_2658572017/Create-a-FIDO-global-variable-returns-OK-response_3226312717/frozen.json index dc28d0f2e2f8..90fc55073f1b 100644 --- a/cassettes/v1/Synthetics_2658572017/Create-a-FIDO-global-variable-returns-OK-response_3226312717/frozen.json +++ b/cassettes/v1/Synthetics_2658572017/Create-a-FIDO-global-variable-returns-OK-response_3226312717/frozen.json @@ -1 +1 @@ -"2025-02-25T16:34:23.928Z" +"2025-06-02T14:06:04.761Z" diff --git a/cassettes/v1/Synthetics_2658572017/Create-a-FIDO-global-variable-returns-OK-response_3226312717/recording.har b/cassettes/v1/Synthetics_2658572017/Create-a-FIDO-global-variable-returns-OK-response_3226312717/recording.har index 119689990f53..dc62cd66f9fd 100644 --- a/cassettes/v1/Synthetics_2658572017/Create-a-FIDO-global-variable-returns-OK-response_3226312717/recording.har +++ b/cassettes/v1/Synthetics_2658572017/Create-a-FIDO-global-variable-returns-OK-response_3226312717/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "eb75742d592bd5efb3a6bb4f4e8f079e", + "_id": "1a11f9c0af983dcdb8b06ab1aa1a2a55", "_order": 0, "cache": {}, "request": { - "bodySize": 2314, + "bodySize": 4024, "cookies": [], "headers": [ { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"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\"}" + "text": "{\"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\"},{\"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\"}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v1/synthetics/tests/api" }, "response": { - "bodySize": 2835, + "bodySize": 4569, "content": { "mimeType": "application/json", - "size": 2835, - "text": "{\"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\"}}" + "size": 4569, + "text": "{\"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\"}}" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/json" } ], - "headersSize": 663, + "headersSize": 694, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-02-25T16:34:23.937Z", - "time": 851 + "startedDateTime": "2025-06-02T14:06:04.772Z", + "time": 1366 }, { - "_id": "ddd27824152d552a69d1262de4f5b027", + "_id": "1ce0493353aa2ed61ce11e274f12a8a7", "_order": 0, "cache": {}, "request": { @@ -85,7 +85,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"description\":\"\",\"is_fido\":true,\"name\":\"GLOBAL_VARIABLE_FIDO_PAYLOAD_TESTCREATEAFIDOGLOBALVARIABLERETURNSOKRESPONSE1740501263\",\"tags\":[]}" + "text": "{\"description\":\"\",\"is_fido\":true,\"name\":\"GLOBAL_VARIABLE_FIDO_PAYLOAD_TESTCREATEAFIDOGLOBALVARIABLERETURNSOKRESPONSE1748873164\",\"tags\":[]}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v1/synthetics/variables" @@ -95,7 +95,7 @@ "content": { "mimeType": "application/json", "size": 243, - "text": "{\"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}}\n" + "text": "{\"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}}\n" }, "cookies": [], "headers": [ @@ -104,17 +104,17 @@ "value": "application/json" } ], - "headersSize": 666, + "headersSize": 697, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-02-25T16:34:24.796Z", - "time": 449 + "startedDateTime": "2025-06-02T14:06:06.145Z", + "time": 451 }, { - "_id": "bbea431a7ca3a4464a7a18d90f851ad6", + "_id": "eac4c2c0739e8d09fc07711ee4683c74", "_order": 0, "cache": {}, "request": { @@ -131,7 +131,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v1/synthetics/variables/8cf7404b-d839-4a30-b86e-02158c90d20e" + "url": "https://api.datadoghq.com/api/v1/synthetics/variables/9d28ea82-c207-4940-935c-82a6fbe69765" }, "response": { "bodySize": 0, @@ -146,17 +146,17 @@ "value": "text/html; charset=utf-8" } ], - "headersSize": 649, + "headersSize": 680, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-02-25T16:34:25.252Z", - "time": 476 + "startedDateTime": "2025-06-02T14:06:06.603Z", + "time": 492 }, { - "_id": "165ecbf9e0ae56464c0a4a3dcb1009f1", + "_id": "eddb86252912d9db92eac488f71207c9", "_order": 0, "cache": {}, "request": { @@ -180,7 +180,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"public_ids\":[\"rba-ta9-q2g\"]}" + "text": "{\"public_ids\":[\"xy5-fdf-62m\"]}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v1/synthetics/tests/delete" @@ -190,7 +190,7 @@ "content": { "mimeType": "application/json", "size": 96, - "text": "{\"deleted_tests\":[{\"public_id\":\"rba-ta9-q2g\",\"deleted_at\":\"2025-02-25T16:34:26.535007+00:00\"}]}\n" + "text": "{\"deleted_tests\":[{\"public_id\":\"xy5-fdf-62m\",\"deleted_at\":\"2025-06-02T14:06:07.944742+00:00\"}]}\n" }, "cookies": [], "headers": [ @@ -199,14 +199,14 @@ "value": "application/json" } ], - "headersSize": 662, + "headersSize": 693, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-02-25T16:34:25.731Z", - "time": 1037 + "startedDateTime": "2025-06-02T14:06:07.100Z", + "time": 978 } ], "pages": [], diff --git a/cassettes/v1/Synthetics_2658572017/Create-a-TOTP-global-variable-returns-OK-response_1775224512/frozen.json b/cassettes/v1/Synthetics_2658572017/Create-a-TOTP-global-variable-returns-OK-response_1775224512/frozen.json index 8ee58baf12e5..60ae6147c93c 100644 --- a/cassettes/v1/Synthetics_2658572017/Create-a-TOTP-global-variable-returns-OK-response_1775224512/frozen.json +++ b/cassettes/v1/Synthetics_2658572017/Create-a-TOTP-global-variable-returns-OK-response_1775224512/frozen.json @@ -1 +1 @@ -"2025-02-25T16:34:26.775Z" +"2025-06-02T14:05:42.416Z" diff --git a/cassettes/v1/Synthetics_2658572017/Create-a-TOTP-global-variable-returns-OK-response_1775224512/recording.har b/cassettes/v1/Synthetics_2658572017/Create-a-TOTP-global-variable-returns-OK-response_1775224512/recording.har index 8302f8633749..4671bafde611 100644 --- a/cassettes/v1/Synthetics_2658572017/Create-a-TOTP-global-variable-returns-OK-response_1775224512/recording.har +++ b/cassettes/v1/Synthetics_2658572017/Create-a-TOTP-global-variable-returns-OK-response_1775224512/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "20f07203527c1acb126ce461401c8e6b", + "_id": "4c41e93c8200cf547098876b47be7df7", "_order": 0, "cache": {}, "request": { - "bodySize": 2314, + "bodySize": 4024, "cookies": [], "headers": [ { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"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\"}" + "text": "{\"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\"},{\"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\"}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v1/synthetics/tests/api" }, "response": { - "bodySize": 2835, + "bodySize": 4569, "content": { "mimeType": "application/json", - "size": 2835, - "text": "{\"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\"}}" + "size": 4569, + "text": "{\"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\"}}" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/json" } ], - "headersSize": 663, + "headersSize": 694, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-02-25T16:34:26.779Z", - "time": 941 + "startedDateTime": "2025-06-02T14:05:42.425Z", + "time": 1238 }, { - "_id": "41350d9ed0ef42dcf0d60ae23d00ceca", + "_id": "b45a35bf9e5d6fff96cd59f596be4b52", "_order": 0, "cache": {}, "request": { @@ -85,7 +85,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"description\":\"\",\"is_totp\":true,\"name\":\"GLOBAL_VARIABLE_TOTP_PAYLOAD_TESTCREATEATOTPGLOBALVARIABLERETURNSOKRESPONSE1740501266\",\"tags\":[],\"value\":{\"options\":{\"totp_parameters\":{\"digits\":6,\"refresh_interval\":30}},\"secure\":false,\"value\":\"\"}}" + "text": "{\"description\":\"\",\"is_totp\":true,\"name\":\"GLOBAL_VARIABLE_TOTP_PAYLOAD_TESTCREATEATOTPGLOBALVARIABLERETURNSOKRESPONSE1748873142\",\"tags\":[],\"value\":{\"options\":{\"totp_parameters\":{\"digits\":6,\"refresh_interval\":30}},\"secure\":false,\"value\":\"\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v1/synthetics/variables" @@ -95,7 +95,7 @@ "content": { "mimeType": "application/json", "size": 320, - "text": "{\"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\":\"\"}}\n" + "text": "{\"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\":\"\"}}\n" }, "cookies": [], "headers": [ @@ -104,17 +104,17 @@ "value": "application/json" } ], - "headersSize": 666, + "headersSize": 697, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-02-25T16:34:27.726Z", - "time": 421 + "startedDateTime": "2025-06-02T14:05:43.671Z", + "time": 458 }, { - "_id": "02da5ece342accbabdae8d10a08ff5f1", + "_id": "cf8aaaf41db907f9b3d7b75b2a283031", "_order": 0, "cache": {}, "request": { @@ -131,7 +131,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v1/synthetics/variables/c4f2b7b7-ff83-426d-8cc3-d44834d240ef" + "url": "https://api.datadoghq.com/api/v1/synthetics/variables/6243bf46-c2da-4411-ae6e-11a2f6499106" }, "response": { "bodySize": 0, @@ -146,17 +146,17 @@ "value": "text/html; charset=utf-8" } ], - "headersSize": 649, + "headersSize": 680, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-02-25T16:34:28.153Z", - "time": 592 + "startedDateTime": "2025-06-02T14:05:44.135Z", + "time": 478 }, { - "_id": "56d825cd929418e234f50fbfe99ce593", + "_id": "891d9388c623ecafb8c7da5266947486", "_order": 0, "cache": {}, "request": { @@ -180,7 +180,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"public_ids\":[\"bse-bii-ers\"]}" + "text": "{\"public_ids\":[\"rvj-43h-5zv\"]}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v1/synthetics/tests/delete" @@ -190,7 +190,7 @@ "content": { "mimeType": "application/json", "size": 96, - "text": "{\"deleted_tests\":[{\"public_id\":\"bse-bii-ers\",\"deleted_at\":\"2025-02-25T16:34:29.583519+00:00\"}]}\n" + "text": "{\"deleted_tests\":[{\"public_id\":\"rvj-43h-5zv\",\"deleted_at\":\"2025-06-02T14:05:45.464641+00:00\"}]}\n" }, "cookies": [], "headers": [ @@ -199,14 +199,14 @@ "value": "application/json" } ], - "headersSize": 662, + "headersSize": 693, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-02-25T16:34:28.763Z", - "time": 1042 + "startedDateTime": "2025-06-02T14:05:44.617Z", + "time": 969 } ], "pages": [], diff --git a/cassettes/v1/Synthetics_2658572017/Create-a-global-variable-from-test-returns-OK-response_2967481205/frozen.json b/cassettes/v1/Synthetics_2658572017/Create-a-global-variable-from-test-returns-OK-response_2967481205/frozen.json index 05426d8bd194..341bdac2dd1f 100644 --- a/cassettes/v1/Synthetics_2658572017/Create-a-global-variable-from-test-returns-OK-response_2967481205/frozen.json +++ b/cassettes/v1/Synthetics_2658572017/Create-a-global-variable-from-test-returns-OK-response_2967481205/frozen.json @@ -1 +1 @@ -"2025-02-25T16:34:29.813Z" +"2025-06-02T14:03:51.685Z" diff --git a/cassettes/v1/Synthetics_2658572017/Create-a-global-variable-from-test-returns-OK-response_2967481205/recording.har b/cassettes/v1/Synthetics_2658572017/Create-a-global-variable-from-test-returns-OK-response_2967481205/recording.har index 26ab3d5e6d3e..28d7749dde2b 100644 --- a/cassettes/v1/Synthetics_2658572017/Create-a-global-variable-from-test-returns-OK-response_2967481205/recording.har +++ b/cassettes/v1/Synthetics_2658572017/Create-a-global-variable-from-test-returns-OK-response_2967481205/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "298910d6cbb27b4328e6219131a6c800", + "_id": "be9233575dd366373446a0374b3a27d5", "_order": 0, "cache": {}, "request": { - "bodySize": 2324, + "bodySize": 4034, "cookies": [], "headers": [ { @@ -26,23 +26,23 @@ "value": "application/json" } ], - "headersSize": 578, + "headersSize": 579, "httpVersion": "HTTP/1.1", "method": "POST", "postData": { "mimeType": "application/json", "params": [], - "text": "{\"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\"}" + "text": "{\"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\"},{\"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\"}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v1/synthetics/tests/api" }, "response": { - "bodySize": 2845, + "bodySize": 4579, "content": { "mimeType": "application/json", - "size": 2845, - "text": "{\"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\"}}" + "size": 4579, + "text": "{\"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\"}}" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/json" } ], - "headersSize": 663, + "headersSize": 693, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-02-25T16:34:29.816Z", - "time": 786 + "startedDateTime": "2025-06-02T14:03:51.699Z", + "time": 1304 }, { - "_id": "3788a1adddb3172260b1ed86c64f3257", + "_id": "eab99daf4571bf736ee95efd75aec4ad", "_order": 0, "cache": {}, "request": { @@ -85,7 +85,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"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\":\"\"}}" + "text": "{\"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\":\"\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v1/synthetics/variables" @@ -95,7 +95,7 @@ "content": { "mimeType": "application/json", "size": 425, - "text": "{\"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}\n" + "text": "{\"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}\n" }, "cookies": [], "headers": [ @@ -104,17 +104,17 @@ "value": "application/json" } ], - "headersSize": 666, + "headersSize": 696, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-02-25T16:34:30.608Z", - "time": 507 + "startedDateTime": "2025-06-02T14:03:53.012Z", + "time": 516 }, { - "_id": "d0544eb7e432fca9be94602b0044fc54", + "_id": "f3a9b993b011c302f348f06dde233304", "_order": 0, "cache": {}, "request": { @@ -131,7 +131,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v1/synthetics/variables/dc945f01-e7b6-47d6-9ce7-e57ae9756a52" + "url": "https://api.datadoghq.com/api/v1/synthetics/variables/3425a5b3-4433-4272-96b1-ba3ae4251c4c" }, "response": { "bodySize": 0, @@ -146,17 +146,17 @@ "value": "text/html; charset=utf-8" } ], - "headersSize": 649, + "headersSize": 679, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-02-25T16:34:31.120Z", - "time": 381 + "startedDateTime": "2025-06-02T14:03:53.549Z", + "time": 521 }, { - "_id": "461b7fe66b684dd6d85ea5d1f252c270", + "_id": "8fcebc13d238850bf3e0dd390ecaeb9f", "_order": 0, "cache": {}, "request": { @@ -180,7 +180,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"public_ids\":[\"qg9-nec-wty\"]}" + "text": "{\"public_ids\":[\"igt-x8m-s8i\"]}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v1/synthetics/tests/delete" @@ -190,7 +190,7 @@ "content": { "mimeType": "application/json", "size": 96, - "text": "{\"deleted_tests\":[{\"public_id\":\"qg9-nec-wty\",\"deleted_at\":\"2025-02-25T16:34:32.298728+00:00\"}]}\n" + "text": "{\"deleted_tests\":[{\"public_id\":\"igt-x8m-s8i\",\"deleted_at\":\"2025-06-02T14:03:55.017560+00:00\"}]}\n" }, "cookies": [], "headers": [ @@ -199,14 +199,14 @@ "value": "application/json" } ], - "headersSize": 662, + "headersSize": 692, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-02-25T16:34:31.504Z", - "time": 1037 + "startedDateTime": "2025-06-02T14:03:54.074Z", + "time": 1083 } ], "pages": [], diff --git a/cassettes/v1/Synthetics_2658572017/Create-an-API-test-with-multi-subtype-returns-OK-Returns-the-created-test-details-response_460745598/frozen.json b/cassettes/v1/Synthetics_2658572017/Create-an-API-test-with-multi-subtype-returns-OK-Returns-the-created-test-details-response_460745598/frozen.json index 63066c3086c6..378739dc3809 100644 --- a/cassettes/v1/Synthetics_2658572017/Create-an-API-test-with-multi-subtype-returns-OK-Returns-the-created-test-details-response_460745598/frozen.json +++ b/cassettes/v1/Synthetics_2658572017/Create-an-API-test-with-multi-subtype-returns-OK-Returns-the-created-test-details-response_460745598/frozen.json @@ -1 +1 @@ -"2025-02-25T16:34:32.557Z" +"2025-06-02T13:54:14.928Z" diff --git a/cassettes/v1/Synthetics_2658572017/Create-an-API-test-with-multi-subtype-returns-OK-Returns-the-created-test-details-response_460745598/recording.har b/cassettes/v1/Synthetics_2658572017/Create-an-API-test-with-multi-subtype-returns-OK-Returns-the-created-test-details-response_460745598/recording.har index f238400ae211..fb1a6a59e028 100644 --- a/cassettes/v1/Synthetics_2658572017/Create-an-API-test-with-multi-subtype-returns-OK-Returns-the-created-test-details-response_460745598/recording.har +++ b/cassettes/v1/Synthetics_2658572017/Create-an-API-test-with-multi-subtype-returns-OK-Returns-the-created-test-details-response_460745598/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "d731b8f1382058e3effe601840175ccc", + "_id": "ac8f2719f71f4d9fa3fca15fe7929d63", "_order": 0, "cache": {}, "request": { - "bodySize": 2396, + "bodySize": 4106, "cookies": [], "headers": [ { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"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\"}" + "text": "{\"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\"},{\"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\"}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v1/synthetics/tests/api" }, "response": { - "bodySize": 2917, + "bodySize": 4651, "content": { "mimeType": "application/json", - "size": 2917, - "text": "{\"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\"}}" + "size": 4651, + "text": "{\"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\"}}" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/json" } ], - "headersSize": 663, + "headersSize": 694, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-02-25T16:34:32.561Z", - "time": 832 + "startedDateTime": "2025-06-02T13:54:14.949Z", + "time": 1490 }, { - "_id": "b33b3d0429e284eab315e19b606b0162", + "_id": "48ae2ab66829d9f0d7571277274d2759", "_order": 0, "cache": {}, "request": { @@ -85,7 +85,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"public_ids\":[\"xbn-4ef-iaf\"]}" + "text": "{\"public_ids\":[\"f8g-ufw-7jh\"]}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v1/synthetics/tests/delete" @@ -95,7 +95,7 @@ "content": { "mimeType": "application/json", "size": 96, - "text": "{\"deleted_tests\":[{\"public_id\":\"xbn-4ef-iaf\",\"deleted_at\":\"2025-02-25T16:34:34.204246+00:00\"}]}\n" + "text": "{\"deleted_tests\":[{\"public_id\":\"f8g-ufw-7jh\",\"deleted_at\":\"2025-06-02T13:54:17.391847+00:00\"}]}\n" }, "cookies": [], "headers": [ @@ -104,14 +104,14 @@ "value": "application/json" } ], - "headersSize": 662, + "headersSize": 693, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-02-25T16:34:33.402Z", - "time": 1052 + "startedDateTime": "2025-06-02T13:54:16.475Z", + "time": 1058 } ], "pages": [], diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.ts b/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.ts index 515a573430fa..ad67815db9d5 100644 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.ts +++ b/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.ts @@ -90,6 +90,148 @@ const params: v1.SyntheticsApiCreateSyntheticsAPITestRequest = { 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"], diff --git a/features/v1/given.json b/features/v1/given.json index 088e40aed133..3aff222e7cd7 100644 --- a/features/v1/given.json +++ b/features/v1/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/features/v1/synthetics.feature b/features/v1/synthetics.feature index 931551e30f06..8ac89dcd26ec 100644 --- a/features/v1/synthetics.feature +++ b/features/v1/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/features/v1/synthetics_api_test_multi_step_payload.json b/features/v1/synthetics_api_test_multi_step_payload.json index c15117ba64d6..70e79e7b6b34 100644 --- a/features/v1/synthetics_api_test_multi_step_payload.json +++ b/features/v1/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 diff --git a/packages/datadog-api-client-v1/models/ObjectSerializer.ts b/packages/datadog-api-client-v1/models/ObjectSerializer.ts index 441837af7f44..1604a17ca929 100644 --- a/packages/datadog-api-client-v1/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v1/models/ObjectSerializer.ts @@ -1235,7 +1235,16 @@ const enumsMap: { [key: string]: any[] } = { SunburstWidgetDefinitionType: ["sunburst"], SunburstWidgetLegendInlineAutomaticType: ["inline", "automatic"], SunburstWidgetLegendTableType: ["table", "none"], - SyntheticsAPITestStepSubtype: ["http", "grpc"], + SyntheticsAPITestStepSubtype: [ + "http", + "grpc", + "ssl", + "dns", + "tcp", + "udp", + "icmp", + "websocket", + ], SyntheticsAPITestType: ["api"], SyntheticsAPIWaitStepSubtype: ["wait"], SyntheticsApiTestFailureCode: [ diff --git a/packages/datadog-api-client-v1/models/SyntheticsAPITestStepSubtype.ts b/packages/datadog-api-client-v1/models/SyntheticsAPITestStepSubtype.ts index 421e99734513..cdc73d9e0743 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsAPITestStepSubtype.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsAPITestStepSubtype.ts @@ -13,6 +13,18 @@ import { UnparsedObject } from "../../datadog-api-client-common/util"; export type SyntheticsAPITestStepSubtype = | typeof HTTP | typeof GRPC + | typeof SSL + | typeof DNS + | typeof TCP + | typeof UDP + | typeof ICMP + | typeof WEBSOCKET | UnparsedObject; export const HTTP = "http"; export const GRPC = "grpc"; +export const SSL = "ssl"; +export const DNS = "dns"; +export const TCP = "tcp"; +export const UDP = "udp"; +export const ICMP = "icmp"; +export const WEBSOCKET = "websocket"; diff --git a/packages/datadog-api-client-v1/models/SyntheticsTestRequest.ts b/packages/datadog-api-client-v1/models/SyntheticsTestRequest.ts index 9c0a065c4678..a8cf3898bab2 100644 --- a/packages/datadog-api-client-v1/models/SyntheticsTestRequest.ts +++ b/packages/datadog-api-client-v1/models/SyntheticsTestRequest.ts @@ -46,6 +46,10 @@ export class SyntheticsTestRequest { * 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`. */ "certificateDomains"?: Array; + /** + * Check for certificate revocation. + */ + "checkCertificateRevocation"?: boolean; /** * A protobuf JSON descriptor that needs to be gzipped first then base64 encoded. */ @@ -82,6 +86,10 @@ export class SyntheticsTestRequest { * HTTP version to use for a Synthetic test. */ "httpVersion"?: SyntheticsTestOptionsHTTPVersion; + /** + * Whether the message is base64 encoded. + */ + "isMessageBase64Encoded"?: boolean; /** * Message to send for UDP or WebSocket tests. */ @@ -185,6 +193,10 @@ export class SyntheticsTestRequest { baseName: "certificateDomains", type: "Array", }, + checkCertificateRevocation: { + baseName: "checkCertificateRevocation", + type: "boolean", + }, compressedJsonDescriptor: { baseName: "compressedJsonDescriptor", type: "string", @@ -221,6 +233,10 @@ export class SyntheticsTestRequest { baseName: "httpVersion", type: "SyntheticsTestOptionsHTTPVersion", }, + isMessageBase64Encoded: { + baseName: "isMessageBase64Encoded", + type: "boolean", + }, message: { baseName: "message", type: "string",