|
| 1 | +{ |
| 2 | + "log": { |
| 3 | + "_recordingName": "Synthetics/Create an API test with a file payload returns \"OK - Returns the created test details.\" response", |
| 4 | + "creator": { |
| 5 | + "comment": "persister:fs", |
| 6 | + "name": "Polly.JS", |
| 7 | + "version": "6.0.5" |
| 8 | + }, |
| 9 | + "entries": [ |
| 10 | + { |
| 11 | + "_id": "beb59fb44cd488796fd2f4a99885da2d", |
| 12 | + "_order": 0, |
| 13 | + "cache": {}, |
| 14 | + "request": { |
| 15 | + "bodySize": 1969, |
| 16 | + "cookies": [], |
| 17 | + "headers": [ |
| 18 | + { |
| 19 | + "_fromType": "array", |
| 20 | + "name": "accept", |
| 21 | + "value": "application/json" |
| 22 | + }, |
| 23 | + { |
| 24 | + "_fromType": "array", |
| 25 | + "name": "content-type", |
| 26 | + "value": "application/json" |
| 27 | + } |
| 28 | + ], |
| 29 | + "headersSize": 579, |
| 30 | + "httpVersion": "HTTP/1.1", |
| 31 | + "method": "POST", |
| 32 | + "postData": { |
| 33 | + "mimeType": "application/json", |
| 34 | + "params": [], |
| 35 | + "text": "{\"config\":{\"assertions\":[{\"operator\":\"is\",\"property\":\"{{ PROPERTY }}\",\"target\":\"text/html\",\"type\":\"header\"},{\"operator\":\"lessThan\",\"target\":2000,\"timingsScope\":\"withoutDNS\",\"type\":\"responseTime\"},{\"operator\":\"validatesJSONPath\",\"target\":{\"jsonPath\":\"topKey\",\"operator\":\"isNot\",\"targetValue\":\"0\"},\"type\":\"body\"},{\"operator\":\"validatesXPath\",\"target\":{\"operator\":\"contains\",\"targetValue\":\"0\",\"xPath\":\"target-xpath\"},\"type\":\"body\"}],\"configVariables\":[{\"example\":\"content-type\",\"name\":\"PROPERTY\",\"pattern\":\"content-type\",\"type\":\"text\"}],\"request\":{\"basicAuth\":{\"accessTokenUrl\":\"https://datadog-token.com\",\"audience\":\"audience\",\"clientId\":\"client-id\",\"clientSecret\":\"client-secret\",\"resource\":\"resource\",\"scope\":\"yoyo\",\"tokenApiAuthentication\":\"header\",\"type\":\"oauth-client\"},\"bodyType\":\"application/octet-stream\",\"certificate\":{\"cert\":{\"content\":\"cert-content\",\"filename\":\"cert-filename\",\"updatedAt\":\"2020-10-16T09:23:24.857Z\"},\"key\":{\"content\":\"key-content\",\"filename\":\"key-filename\",\"updatedAt\":\"2020-10-16T09:23:24.857Z\"}},\"files\":[{\"content\":\"file content\",\"name\":\"file name\",\"type\":\"file type\"}],\"headers\":{\"unique\":\"testcreateanapitestwithafilepayloadreturnsokreturnsthecreatedtestdetailsresponse1712072139\"},\"method\":\"GET\",\"persistCookies\":true,\"proxy\":{\"headers\":{},\"url\":\"https://datadoghq.com\"},\"timeout\":10,\"url\":\"https://datadoghq.com\"}},\"locations\":[\"aws:us-east-2\"],\"message\":\"BDD test payload: synthetics_api_http_test_payload.json\",\"name\":\"Test-Create_an_API_test_with_a_file_payload_returns_OK_Returns_the_created_test_details_response-1712072139\",\"options\":{\"accept_self_signed\":false,\"allow_insecure\":true,\"follow_redirects\":true,\"httpVersion\":\"http2\",\"min_failure_duration\":10,\"min_location_failed\":1,\"monitor_name\":\"Test-Create_an_API_test_with_a_file_payload_returns_OK_Returns_the_created_test_details_response-1712072139\",\"monitor_priority\":5,\"retry\":{\"count\":3,\"interval\":10},\"tick_every\":60},\"subtype\":\"http\",\"tags\":[\"testing:api\"],\"type\":\"api\"}" |
| 36 | + }, |
| 37 | + "queryString": [], |
| 38 | + "url": "https://api.datadoghq.com/api/v1/synthetics/tests/api" |
| 39 | + }, |
| 40 | + "response": { |
| 41 | + "bodySize": 2376, |
| 42 | + "content": { |
| 43 | + "mimeType": "application/json", |
| 44 | + "size": 2376, |
| 45 | + "text": "{\"public_id\":\"sxp-kz5-mk7\",\"name\":\"Test-Create_an_API_test_with_a_file_payload_returns_OK_Returns_the_created_test_details_response-1712072139\",\"status\":\"live\",\"type\":\"api\",\"tags\":[\"testing:api\"],\"created_at\":\"2024-04-02T15:35:40.509801+00:00\",\"modified_at\":\"2024-04-02T15:35:40.509801+00:00\",\"config\":{\"assertions\":[{\"operator\":\"is\",\"property\":\"{{ PROPERTY }}\",\"target\":\"text/html\",\"type\":\"header\"},{\"operator\":\"lessThan\",\"target\":2000,\"timingsScope\":\"withoutDNS\",\"type\":\"responseTime\"},{\"operator\":\"validatesJSONPath\",\"target\":{\"jsonPath\":\"topKey\",\"operator\":\"isNot\",\"targetValue\":\"0\"},\"type\":\"body\"},{\"operator\":\"validatesXPath\",\"target\":{\"operator\":\"contains\",\"targetValue\":\"0\",\"xPath\":\"target-xpath\"},\"type\":\"body\"}],\"configVariables\":[{\"example\":\"content-type\",\"name\":\"PROPERTY\",\"pattern\":\"content-type\",\"type\":\"text\"}],\"request\":{\"basicAuth\":{\"accessTokenUrl\":\"https://datadog-token.com\",\"audience\":\"audience\",\"clientId\":\"client-id\",\"clientSecret\":\"client-secret\",\"resource\":\"resource\",\"scope\":\"yoyo\",\"tokenApiAuthentication\":\"header\",\"type\":\"oauth-client\"},\"bodyType\":\"application/octet-stream\",\"certificate\":{\"cert\":{\"filename\":\"cert-filename\",\"updatedAt\":\"2020-10-16T09:23:24.857Z\"},\"key\":{\"filename\":\"key-filename\",\"updatedAt\":\"2020-10-16T09:23:24.857Z\"}},\"files\":[{\"name\":\"file name\",\"type\":\"file type\",\"bucketKey\":\"api-upload-file/sxp-kz5-mk7/2024-04-02T15:35:40.363501_da19b48f-1756-453d-a03d-90526e629d7e.json\"}],\"headers\":{\"unique\":\"testcreateanapitestwithafilepayloadreturnsokreturnsthecreatedtestdetailsresponse1712072139\"},\"method\":\"GET\",\"persistCookies\":true,\"proxy\":{\"headers\":{},\"url\":\"https://datadoghq.com\"},\"timeout\":10,\"url\":\"https://datadoghq.com\"}},\"message\":\"BDD test payload: synthetics_api_http_test_payload.json\",\"options\":{\"accept_self_signed\":false,\"allow_insecure\":true,\"follow_redirects\":true,\"httpVersion\":\"http2\",\"min_failure_duration\":10,\"min_location_failed\":1,\"monitor_name\":\"Test-Create_an_API_test_with_a_file_payload_returns_OK_Returns_the_created_test_details_response-1712072139\",\"monitor_priority\":5,\"retry\":{\"count\":3,\"interval\":10},\"tick_every\":60},\"locations\":[\"aws:us-east-2\"],\"subtype\":\"http\",\"created_by\":{\"name\":null,\"handle\":\"frog@datadoghq.com\",\"email\":\"frog@datadoghq.com\"},\"deleted_at\":null,\"monitor_id\":142439982,\"org_id\":321813,\"modified_by\":{\"name\":null,\"handle\":\"frog@datadoghq.com\",\"email\":\"frog@datadoghq.com\"}}" |
| 46 | + }, |
| 47 | + "cookies": [], |
| 48 | + "headers": [ |
| 49 | + { |
| 50 | + "name": "content-type", |
| 51 | + "value": "application/json" |
| 52 | + } |
| 53 | + ], |
| 54 | + "headersSize": 663, |
| 55 | + "httpVersion": "HTTP/1.1", |
| 56 | + "redirectURL": "", |
| 57 | + "status": 200, |
| 58 | + "statusText": "OK" |
| 59 | + }, |
| 60 | + "startedDateTime": "2024-04-02T15:35:39.198Z", |
| 61 | + "time": 1262 |
| 62 | + }, |
| 63 | + { |
| 64 | + "_id": "c70757db460f03fae33e51e24a31a2a0", |
| 65 | + "_order": 0, |
| 66 | + "cache": {}, |
| 67 | + "request": { |
| 68 | + "bodySize": 30, |
| 69 | + "cookies": [], |
| 70 | + "headers": [ |
| 71 | + { |
| 72 | + "_fromType": "array", |
| 73 | + "name": "accept", |
| 74 | + "value": "application/json" |
| 75 | + }, |
| 76 | + { |
| 77 | + "_fromType": "array", |
| 78 | + "name": "content-type", |
| 79 | + "value": "application/json" |
| 80 | + } |
| 81 | + ], |
| 82 | + "headersSize": 568, |
| 83 | + "httpVersion": "HTTP/1.1", |
| 84 | + "method": "POST", |
| 85 | + "postData": { |
| 86 | + "mimeType": "application/json", |
| 87 | + "params": [], |
| 88 | + "text": "{\"public_ids\":[\"sxp-kz5-mk7\"]}" |
| 89 | + }, |
| 90 | + "queryString": [], |
| 91 | + "url": "https://api.datadoghq.com/api/v1/synthetics/tests/delete" |
| 92 | + }, |
| 93 | + "response": { |
| 94 | + "bodySize": 96, |
| 95 | + "content": { |
| 96 | + "mimeType": "application/json", |
| 97 | + "size": 96, |
| 98 | + "text": "{\"deleted_tests\":[{\"public_id\":\"sxp-kz5-mk7\",\"deleted_at\":\"2024-04-02T15:35:41.326918+00:00\"}]}\n" |
| 99 | + }, |
| 100 | + "cookies": [], |
| 101 | + "headers": [ |
| 102 | + { |
| 103 | + "name": "content-type", |
| 104 | + "value": "application/json" |
| 105 | + } |
| 106 | + ], |
| 107 | + "headersSize": 662, |
| 108 | + "httpVersion": "HTTP/1.1", |
| 109 | + "redirectURL": "", |
| 110 | + "status": 200, |
| 111 | + "statusText": "OK" |
| 112 | + }, |
| 113 | + "startedDateTime": "2024-04-02T15:35:40.475Z", |
| 114 | + "time": 863 |
| 115 | + } |
| 116 | + ], |
| 117 | + "pages": [], |
| 118 | + "version": "1.2" |
| 119 | + } |
| 120 | +} |
0 commit comments