|
| 1 | +--- |
| 2 | +version: 1 |
| 3 | +interactions: |
| 4 | +- request: |
| 5 | + body: | |
| 6 | + {"config":{"assertions":[],"configVariables":[],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[{"field":"content-length","name":"LOCAL_VAR_EXTRACT","parser":{"type":"regex","value":".*"},"type":"http_header"}],"isCritical":false,"name":"First api step","request":{"allow_insecure":true,"body":"this is a body","follow_redirects":true,"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"}]},"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":60},"status":"paused","subtype":"multi","tags":[],"type":"api"} |
| 7 | + form: {} |
| 8 | + headers: |
| 9 | + Accept: |
| 10 | + - application/json |
| 11 | + Content-Type: |
| 12 | + - application/json |
| 13 | + url: https://api.datadoghq.com/api/v1/synthetics/tests/api |
| 14 | + method: POST |
| 15 | + response: |
| 16 | + body: | |
| 17 | + {"status":"paused","public_id":"9bw-vck-5p9","tags":[],"org_id":321813,"locations":["aws:eu-central-1"],"message":"","deleted_at":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","monitor_id":86719615,"type":"api","created_at":"2022-09-13T18:00:54.595386+00:00","modified_at":"2022-09-13T18:00:54.595386+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"94v-6t6-psr","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} |
| 18 | + headers: |
| 19 | + Content-Type: |
| 20 | + - application/json |
| 21 | + status: 200 OK |
| 22 | + code: 200 |
| 23 | + duration: "" |
| 24 | +- request: |
| 25 | + body: "" |
| 26 | + form: {} |
| 27 | + headers: |
| 28 | + Accept: |
| 29 | + - application/json |
| 30 | + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/9bw-vck-5p9 |
| 31 | + method: GET |
| 32 | + response: |
| 33 | + body: | |
| 34 | + {"status":"paused","public_id":"9bw-vck-5p9","tags":[],"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","monitor_id":86719615,"type":"api","created_at":"2022-09-13T18:00:54.595386+00:00","creator":{"handle":"[email protected]","name":null,"email":"[email protected]"},"modified_at":"2022-09-13T18:00:54.595386+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"94v-6t6-psr","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} |
| 35 | + headers: |
| 36 | + Content-Type: |
| 37 | + - application/json |
| 38 | + status: 200 OK |
| 39 | + code: 200 |
| 40 | + duration: "" |
| 41 | +- request: |
| 42 | + body: | |
| 43 | + {"description":"a global variable from multistep test","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","parse_test_options":{"localVariableName":"LOCAL_VAR_EXTRACT","type":"local_variable"},"parse_test_public_id":"9bw-vck-5p9","tags":["foo:bar","baz"],"value":{"secure":false,"value":""}} |
| 44 | + form: {} |
| 45 | + headers: |
| 46 | + Accept: |
| 47 | + - application/json |
| 48 | + Content-Type: |
| 49 | + - application/json |
| 50 | + url: https://api.datadoghq.com/api/v1/synthetics/variables |
| 51 | + method: POST |
| 52 | + response: |
| 53 | + body: | |
| 54 | + {"parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"is_totp":null,"value":{"secure":false,"value":""},"parse_test_public_id":"9bw-vck-5p9","parse_test_name":null,"type":"variable","id":"819f1d49-7f73-4c05-8567-3626a453c9a3","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051"} |
| 55 | + headers: |
| 56 | + Content-Type: |
| 57 | + - application/json |
| 58 | + status: 200 OK |
| 59 | + code: 200 |
| 60 | + duration: "" |
| 61 | +- request: |
| 62 | + body: "" |
| 63 | + form: {} |
| 64 | + headers: |
| 65 | + Accept: |
| 66 | + - application/json |
| 67 | + url: https://api.datadoghq.com/api/v1/synthetics/variables/819f1d49-7f73-4c05-8567-3626a453c9a3 |
| 68 | + method: GET |
| 69 | + response: |
| 70 | + body: '{"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":"9bw-vck-5p9","is_totp":null,"id":"819f1d49-7f73-4c05-8567-3626a453c9a3","parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","created_at":"2022-09-13T18:00:55.115052+00:00","creator":{"handle":"[email protected]","name":null,"email":"[email protected]"},"modified_at":"2022-09-13T18:00:55.115052+00:00","value":{"secure":false,"value":""},"parse_test_name":null,"type":"variable"}' |
| 71 | + headers: |
| 72 | + Content-Type: |
| 73 | + - application/json |
| 74 | + status: 200 OK |
| 75 | + code: 200 |
| 76 | + duration: "" |
| 77 | +- request: |
| 78 | + body: "" |
| 79 | + form: {} |
| 80 | + headers: |
| 81 | + Accept: |
| 82 | + - application/json |
| 83 | + url: https://api.datadoghq.com/api/v1/synthetics/variables/819f1d49-7f73-4c05-8567-3626a453c9a3 |
| 84 | + method: GET |
| 85 | + response: |
| 86 | + body: '{"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":"9bw-vck-5p9","is_totp":null,"id":"819f1d49-7f73-4c05-8567-3626a453c9a3","parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","created_at":"2022-09-13T18:00:55.115052+00:00","creator":{"handle":"[email protected]","name":null,"email":"[email protected]"},"modified_at":"2022-09-13T18:00:55.115052+00:00","value":{"secure":false,"value":""},"parse_test_name":null,"type":"variable"}' |
| 87 | + headers: |
| 88 | + Content-Type: |
| 89 | + - application/json |
| 90 | + status: 200 OK |
| 91 | + code: 200 |
| 92 | + duration: "" |
| 93 | +- request: |
| 94 | + body: "" |
| 95 | + form: {} |
| 96 | + headers: |
| 97 | + Accept: |
| 98 | + - application/json |
| 99 | + url: https://api.datadoghq.com/api/v1/synthetics/variables/819f1d49-7f73-4c05-8567-3626a453c9a3 |
| 100 | + method: GET |
| 101 | + response: |
| 102 | + body: '{"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":"9bw-vck-5p9","is_totp":null,"id":"819f1d49-7f73-4c05-8567-3626a453c9a3","parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","created_at":"2022-09-13T18:00:55.115052+00:00","creator":{"handle":"[email protected]","name":null,"email":"[email protected]"},"modified_at":"2022-09-13T18:00:55.115052+00:00","value":{"secure":false,"value":""},"parse_test_name":null,"type":"variable"}' |
| 103 | + headers: |
| 104 | + Content-Type: |
| 105 | + - application/json |
| 106 | + status: 200 OK |
| 107 | + code: 200 |
| 108 | + duration: "" |
| 109 | +- request: |
| 110 | + body: "" |
| 111 | + form: {} |
| 112 | + headers: |
| 113 | + Accept: |
| 114 | + - application/json |
| 115 | + url: https://api.datadoghq.com/api/v1/synthetics/tests/9bw-vck-5p9 |
| 116 | + method: GET |
| 117 | + response: |
| 118 | + body: | |
| 119 | + {"status":"paused","public_id":"9bw-vck-5p9","tags":[],"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","monitor_id":86719615,"type":"api","created_at":"2022-09-13T18:00:54.595386+00:00","creator":{"handle":"[email protected]","name":null,"email":"[email protected]"},"modified_at":"2022-09-13T18:00:54.595386+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"94v-6t6-psr","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"tick_every":60,"min_location_failed":1}} |
| 120 | + headers: |
| 121 | + Content-Type: |
| 122 | + - application/json |
| 123 | + status: 200 OK |
| 124 | + code: 200 |
| 125 | + duration: "" |
| 126 | +- request: |
| 127 | + body: "" |
| 128 | + form: {} |
| 129 | + headers: |
| 130 | + Accept: |
| 131 | + - application/json |
| 132 | + url: https://api.datadoghq.com/api/v1/synthetics/tests/9bw-vck-5p9 |
| 133 | + method: GET |
| 134 | + response: |
| 135 | + body: | |
| 136 | + {"status":"paused","public_id":"9bw-vck-5p9","tags":[],"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","monitor_id":86719615,"type":"api","created_at":"2022-09-13T18:00:54.595386+00:00","creator":{"handle":"[email protected]","name":null,"email":"[email protected]"},"modified_at":"2022-09-13T18:00:54.595386+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"94v-6t6-psr","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"tick_every":60,"min_location_failed":1}} |
| 137 | + headers: |
| 138 | + Content-Type: |
| 139 | + - application/json |
| 140 | + status: 200 OK |
| 141 | + code: 200 |
| 142 | + duration: "" |
| 143 | +- request: |
| 144 | + body: "" |
| 145 | + form: {} |
| 146 | + headers: |
| 147 | + Accept: |
| 148 | + - application/json |
| 149 | + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/9bw-vck-5p9 |
| 150 | + method: GET |
| 151 | + response: |
| 152 | + body: | |
| 153 | + {"status":"paused","public_id":"9bw-vck-5p9","tags":[],"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","monitor_id":86719615,"type":"api","created_at":"2022-09-13T18:00:54.595386+00:00","creator":{"handle":"[email protected]","name":null,"email":"[email protected]"},"modified_at":"2022-09-13T18:00:54.595386+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"94v-6t6-psr","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"tick_every":60,"min_location_failed":1}} |
| 154 | + headers: |
| 155 | + Content-Type: |
| 156 | + - application/json |
| 157 | + status: 200 OK |
| 158 | + code: 200 |
| 159 | + duration: "" |
| 160 | +- request: |
| 161 | + body: "" |
| 162 | + form: {} |
| 163 | + headers: |
| 164 | + Accept: |
| 165 | + - application/json |
| 166 | + url: https://api.datadoghq.com/api/v1/synthetics/variables/819f1d49-7f73-4c05-8567-3626a453c9a3 |
| 167 | + method: GET |
| 168 | + response: |
| 169 | + body: '{"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":"9bw-vck-5p9","is_totp":null,"id":"819f1d49-7f73-4c05-8567-3626a453c9a3","parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","created_at":"2022-09-13T18:00:55.115052+00:00","creator":{"handle":"[email protected]","name":null,"email":"[email protected]"},"modified_at":"2022-09-13T18:00:55.115052+00:00","value":{"secure":false,"value":""},"parse_test_name":null,"type":"variable"}' |
| 170 | + headers: |
| 171 | + Content-Type: |
| 172 | + - application/json |
| 173 | + status: 200 OK |
| 174 | + code: 200 |
| 175 | + duration: "" |
| 176 | +- request: |
| 177 | + body: "" |
| 178 | + form: {} |
| 179 | + headers: |
| 180 | + Accept: |
| 181 | + - '*/*' |
| 182 | + url: https://api.datadoghq.com/api/v1/synthetics/variables/819f1d49-7f73-4c05-8567-3626a453c9a3 |
| 183 | + method: DELETE |
| 184 | + response: |
| 185 | + body: '{}' |
| 186 | + headers: |
| 187 | + Content-Type: |
| 188 | + - application/json |
| 189 | + status: 200 OK |
| 190 | + code: 200 |
| 191 | + duration: "" |
| 192 | +- request: |
| 193 | + body: | |
| 194 | + {"public_ids":["9bw-vck-5p9"]} |
| 195 | + form: {} |
| 196 | + headers: |
| 197 | + Accept: |
| 198 | + - application/json |
| 199 | + Content-Type: |
| 200 | + - application/json |
| 201 | + url: https://api.datadoghq.com/api/v1/synthetics/tests/delete |
| 202 | + method: POST |
| 203 | + response: |
| 204 | + body: | |
| 205 | + {"deleted_tests":[{"deleted_at":"2022-09-13T18:01:03.488705+00:00","public_id":"9bw-vck-5p9"}]} |
| 206 | + headers: |
| 207 | + Content-Type: |
| 208 | + - application/json |
| 209 | + status: 200 OK |
| 210 | + code: 200 |
| 211 | + duration: "" |
| 212 | +- request: |
| 213 | + body: "" |
| 214 | + form: {} |
| 215 | + headers: |
| 216 | + Accept: |
| 217 | + - application/json |
| 218 | + url: https://api.datadoghq.com/api/v1/synthetics/tests/9bw-vck-5p9 |
| 219 | + method: GET |
| 220 | + response: |
| 221 | + body: '{"errors":["Synthetics test not found"]}' |
| 222 | + headers: |
| 223 | + Content-Type: |
| 224 | + - application/json |
| 225 | + status: 404 Not Found |
| 226 | + code: 404 |
| 227 | + duration: "" |
| 228 | +- request: |
| 229 | + body: "" |
| 230 | + form: {} |
| 231 | + headers: |
| 232 | + Accept: |
| 233 | + - application/json |
| 234 | + url: https://api.datadoghq.com/api/v1/synthetics/variables/819f1d49-7f73-4c05-8567-3626a453c9a3 |
| 235 | + method: GET |
| 236 | + response: |
| 237 | + body: '{"errors": ["Synthetics global variable not found"]}' |
| 238 | + headers: |
| 239 | + Content-Type: |
| 240 | + - application/json |
| 241 | + status: 404 Not Found |
| 242 | + code: 404 |
| 243 | + duration: "" |
0 commit comments