|
| 1 | +interactions: |
| 2 | +- request: |
| 3 | + body: '{"config":{"assertions":[{"operator":"is","property":"{{ PROPERTY }}","target":"text/html","type":"header"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"}],"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"request":{"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"}},"headers":{"unique":"testgetasyntheticsmonitorsdetails1634655464"},"method":"GET","timeout":10,"url":"https://datadoghq.com"}},"locations":["aws:us-east-2"],"message":"BDD |
| 4 | + test payload: synthetics_api_test_payload.json","name":"Test-Get_a_synthetics_monitor_s_details-1634655464","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Get_a_synthetics_monitor_s_details-1634655464","monitor_priority":5,"retry":{"count":3,"interval":10},"tick_every":60},"subtype":"http","tags":["testing:api"],"type":"api"}' |
| 5 | + headers: |
| 6 | + accept: |
| 7 | + - application/json, */*;q=0.8 |
| 8 | + connection: |
| 9 | + - close |
| 10 | + content-length: |
| 11 | + - '1219' |
| 12 | + content-type: |
| 13 | + - application/json |
| 14 | + host: |
| 15 | + - api.datadoghq.com |
| 16 | + user-agent: |
| 17 | + - datadog-api-client-typescript/1.0.0-beta.5 (node 14.18.0; os Linux; arch x64) |
| 18 | + x-datadog-parent-id: |
| 19 | + - '9071599777512967423' |
| 20 | + x-datadog-trace-id: |
| 21 | + - '1217628308625908366' |
| 22 | + method: POST |
| 23 | + uri: https://api.datadoghq.com/api/v1/synthetics/tests/api |
| 24 | + response: |
| 25 | + body: |
| 26 | + string: '{"status":"live","public_id":"8u9-c6t-p7r","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD |
| 27 | + test payload: synthetics_api_test_payload.json","deleted_at":null,"name":"Test-Get_a_synthetics_monitor_s_details-1634655464","monitor_id":50341250,"type":"api","created_at":"2021-10-19T14:57:45.270034+00:00","modified_at":"2021-10-19T14:57:45.270034+00:00","subtype":"http","config":{"request":{"url":"https://datadoghq.com","headers":{"unique":"testgetasyntheticsmonitorsdetails1634655464"},"certificate":{"cert":{"filename":"cert-filename","updatedAt":"2020-10-16T09:23:24.857Z"},"key":{"filename":"key-filename","updatedAt":"2020-10-16T09:23:24.857Z"}},"method":"GET","timeout":10},"assertions":[{"operator":"is","property":"{{ |
| 28 | + PROPERTY }}","type":"header","target":"text/html"},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"monitor_priority":5,"monitor_name":"Test-Get_a_synthetics_monitor_s_details-1634655464","tick_every":60}}' |
| 29 | + headers: |
| 30 | + cache-control: |
| 31 | + - no-cache |
| 32 | + connection: |
| 33 | + - close |
| 34 | + content-length: |
| 35 | + - '1365' |
| 36 | + content-security-policy: |
| 37 | + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report |
| 38 | + content-type: |
| 39 | + - application/json |
| 40 | + date: |
| 41 | + - Tue, 19 Oct 2021 14:57:45 GMT |
| 42 | + pragma: |
| 43 | + - no-cache |
| 44 | + strict-transport-security: |
| 45 | + - max-age=15724800; |
| 46 | + vary: |
| 47 | + - Accept-Encoding |
| 48 | + x-content-type-options: |
| 49 | + - nosniff |
| 50 | + x-frame-options: |
| 51 | + - SAMEORIGIN |
| 52 | + x-ratelimit-limit: |
| 53 | + - '12000' |
| 54 | + x-ratelimit-period: |
| 55 | + - '60' |
| 56 | + x-ratelimit-remaining: |
| 57 | + - '11999' |
| 58 | + x-ratelimit-reset: |
| 59 | + - '15' |
| 60 | + status: |
| 61 | + code: 200 |
| 62 | + message: OK |
| 63 | +- request: |
| 64 | + body: null |
| 65 | + headers: |
| 66 | + accept: |
| 67 | + - application/json, */*;q=0.8 |
| 68 | + connection: |
| 69 | + - close |
| 70 | + host: |
| 71 | + - api.datadoghq.com |
| 72 | + user-agent: |
| 73 | + - datadog-api-client-typescript/1.0.0-beta.5 (node 14.18.0; os Linux; arch x64) |
| 74 | + x-datadog-parent-id: |
| 75 | + - '2046274214575695415' |
| 76 | + x-datadog-trace-id: |
| 77 | + - '1217628308625908366' |
| 78 | + method: GET |
| 79 | + uri: https://api.datadoghq.com/api/v1/monitor/50341250 |
| 80 | + response: |
| 81 | + body: |
| 82 | + string: '{"restricted_roles":null,"tags":["testing:api","probe_dc:aws:us-east-2","check_type:api","check_status:live"],"deleted":null,"query":"no_query","message":"BDD |
| 83 | + test payload: synthetics_api_test_payload.json","id":50341250,"multi":false,"name":"Test-Get_a_synthetics_monitor_s_details-1634655464","created":"2021-10-19T14:57:45.191294+00:00","created_at":1634655465000,"creator":{"id":1445416,"handle":"[email protected]","name":null,"email":"[email protected]"},"org_id":321813,"modified":"2021-10-19T14:57:45.191294+00:00","priority":5,"overall_state_modified":null,"overall_state":"No |
| 84 | + Data","type":"synthetics alert","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"new_host_delay":300,"notify_no_data":false,"synthetics_check_id":"8u9-c6t-p7r"}}' |
| 85 | + headers: |
| 86 | + cache-control: |
| 87 | + - no-cache |
| 88 | + connection: |
| 89 | + - close |
| 90 | + content-length: |
| 91 | + - '782' |
| 92 | + content-security-policy: |
| 93 | + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report |
| 94 | + content-type: |
| 95 | + - application/json |
| 96 | + date: |
| 97 | + - Tue, 19 Oct 2021 14:57:45 GMT |
| 98 | + pragma: |
| 99 | + - no-cache |
| 100 | + strict-transport-security: |
| 101 | + - max-age=15724800; |
| 102 | + vary: |
| 103 | + - Accept-Encoding |
| 104 | + x-content-type-options: |
| 105 | + - nosniff |
| 106 | + x-frame-options: |
| 107 | + - SAMEORIGIN |
| 108 | + x-ratelimit-limit: |
| 109 | + - '3000' |
| 110 | + x-ratelimit-period: |
| 111 | + - '10' |
| 112 | + x-ratelimit-remaining: |
| 113 | + - '2999' |
| 114 | + x-ratelimit-reset: |
| 115 | + - '5' |
| 116 | + status: |
| 117 | + code: 200 |
| 118 | + message: OK |
| 119 | +- request: |
| 120 | + body: '{"public_ids":["8u9-c6t-p7r"]}' |
| 121 | + headers: |
| 122 | + accept: |
| 123 | + - application/json, */*;q=0.8 |
| 124 | + connection: |
| 125 | + - close |
| 126 | + content-length: |
| 127 | + - '30' |
| 128 | + content-type: |
| 129 | + - application/json |
| 130 | + host: |
| 131 | + - api.datadoghq.com |
| 132 | + user-agent: |
| 133 | + - datadog-api-client-typescript/1.0.0-beta.5 (node 14.18.0; os Linux; arch x64) |
| 134 | + x-datadog-parent-id: |
| 135 | + - '705026336682070146' |
| 136 | + x-datadog-trace-id: |
| 137 | + - '1217628308625908366' |
| 138 | + method: POST |
| 139 | + uri: https://api.datadoghq.com/api/v1/synthetics/tests/delete |
| 140 | + response: |
| 141 | + body: |
| 142 | + string: '{"deleted_tests":[{"deleted_at":"2021-10-19T14:57:45.582428+00:00","public_id":"8u9-c6t-p7r"}]}' |
| 143 | + headers: |
| 144 | + cache-control: |
| 145 | + - no-cache |
| 146 | + connection: |
| 147 | + - close |
| 148 | + content-length: |
| 149 | + - '95' |
| 150 | + content-security-policy: |
| 151 | + - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report |
| 152 | + content-type: |
| 153 | + - application/json |
| 154 | + date: |
| 155 | + - Tue, 19 Oct 2021 14:57:45 GMT |
| 156 | + pragma: |
| 157 | + - no-cache |
| 158 | + strict-transport-security: |
| 159 | + - max-age=15724800; |
| 160 | + vary: |
| 161 | + - Accept-Encoding |
| 162 | + x-content-type-options: |
| 163 | + - nosniff |
| 164 | + x-frame-options: |
| 165 | + - SAMEORIGIN |
| 166 | + x-ratelimit-limit: |
| 167 | + - '12000' |
| 168 | + x-ratelimit-period: |
| 169 | + - '60' |
| 170 | + x-ratelimit-remaining: |
| 171 | + - '11999' |
| 172 | + x-ratelimit-reset: |
| 173 | + - '15' |
| 174 | + status: |
| 175 | + code: 200 |
| 176 | + message: OK |
| 177 | +version: 1 |
0 commit comments