diff --git a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml index d1b9e059c..ea65ce231 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml @@ -2,21 +2,24 @@ version: 1 interactions: - request: - body: '{"name":"name for synthetics test foo","type":"api","subtype":"http","tags":["foo:bar","baz"],"config":{"request":{"url":"https://www.datadoghq.com","method":"GET","timeout":30,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"message":"Notify - @datadog.user","options":{"tick_every":60,"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1},"locations":["aws:eu-central-1"],"status":"paused"}' + body: | + {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test foo","options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - CreateTest User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"a86-tuq-sw2","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":16887156,"type":"api","created_at":"2020-03-16T13:06:10.522260+00:00","modified_at":"2020-03-16T13:06:10.522260+00:00","subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"2fn-8gb-s2h","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":18378143,"type":"api","created_at":"2020-05-11T10:53:08.248682+00:00","modified_at":"2020-05-11T10:53:08.248682+00:00","subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -27,13 +30,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:10 GMT + - Mon, 11 May 2020 10:53:08 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:10 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:08 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -42,9 +45,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - F11u7JCZTPrHz8VfzL5YeXThxcQSR6CdLGgk2tF52+EbYWhXciN8nv9vA8oQ9C9A + - xNK8D8E4U1PyLMVOdDgzcc4izX6UzMbP9Ygv1jJl/dgpKsJQ0NHsqPPadJ+IsqEV X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -54,7 +57,7 @@ interactions: X-Ratelimit-Remaining: - "119" X-Ratelimit-Reset: - - "50" + - "52" status: 200 OK code: 200 duration: "" @@ -62,15 +65,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/a86-tuq-sw2 + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/2fn-8gb-s2h method: GET response: - body: '{"status":"paused","public_id":"a86-tuq-sw2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887156,"type":"api","created_at":"2020-03-16T13:06:10.522260+00:00","modified_at":"2020-03-16T13:06:10.522260+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"2fn-8gb-s2h","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378143,"type":"api","created_at":"2020-05-11T10:53:08.248682+00:00","modified_at":"2020-05-11T10:53:08.248682+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","config":{"variables":[],"request":{"body":"this is + a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -81,13 +89,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:10 GMT + - Mon, 11 May 2020 10:53:08 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:10 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:08 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -96,19 +104,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - gVnECQ7ifaEfJ6BNPsXSglLjlU41ay4U8jXHC6V3+oC4U6gHkBb20H5zrSJj1zee + - ztq+F8HwxRthTKNo0l2MCEDK5uwvgQzF00nWu49lHsBM51hGZBm/pPILDqupy+Xd X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "119" + - "999" X-Ratelimit-Reset: - - "50" + - "52" status: 200 OK code: 200 duration: "" @@ -116,15 +124,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/a86-tuq-sw2 + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/2fn-8gb-s2h method: GET response: - body: '{"status":"paused","public_id":"a86-tuq-sw2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887156,"type":"api","created_at":"2020-03-16T13:06:10.522260+00:00","modified_at":"2020-03-16T13:06:10.522260+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"2fn-8gb-s2h","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378143,"type":"api","created_at":"2020-05-11T10:53:08.248682+00:00","modified_at":"2020-05-11T10:53:08.248682+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","config":{"variables":[],"request":{"body":"this is + a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -135,13 +148,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:10 GMT + - Mon, 11 May 2020 10:53:08 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:10 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:08 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -150,19 +163,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - IkXBg4ZNMRmDsobzMjEa2v35+NuPiQI0gFmho/o6e7+hfyyJl3rjuklsE4uVJo7l + - GG9N5JNk6zUo5YQ1gmfpF0kYcSj/kjDOsFItaODUS7qQCwsMrhI3QWJVQns7uvtI X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "118" + - "998" X-Ratelimit-Reset: - - "50" + - "52" status: 200 OK code: 200 duration: "" @@ -170,15 +183,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/a86-tuq-sw2 + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/2fn-8gb-s2h method: GET response: - body: '{"status":"paused","public_id":"a86-tuq-sw2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887156,"type":"api","created_at":"2020-03-16T13:06:10.522260+00:00","modified_at":"2020-03-16T13:06:10.522260+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","overall_state_modified":"2020-03-16T13:06:11.068299+00:00","overall_state":2,"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"2fn-8gb-s2h","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378143,"type":"api","created_at":"2020-05-11T10:53:08.248682+00:00","modified_at":"2020-05-11T10:53:08.248682+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","config":{"variables":[],"request":{"body":"this is + a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -189,13 +207,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:11 GMT + - Mon, 11 May 2020 10:53:08 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:11 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:08 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -204,19 +222,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - /Lq4EjXKMzRKp9qa/TaJTTVqSY3uTwQpdi8SFIU3firYrLG0qdPC+ksTJBROerQS + - hABsPq9DIvV7yAEiU7rMxs7UCRuTbRH/kYpwue4a0q9qmwd4SUh9bBZ5SHPkBLc6 X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "117" + - "997" X-Ratelimit-Reset: - - "49" + - "52" status: 200 OK code: 200 duration: "" @@ -224,15 +242,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/a86-tuq-sw2 + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/2fn-8gb-s2h method: GET response: - body: '{"status":"paused","public_id":"a86-tuq-sw2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887156,"type":"api","created_at":"2020-03-16T13:06:10.522260+00:00","modified_at":"2020-03-16T13:06:10.522260+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","overall_state_modified":"2020-03-16T13:06:11.286859+00:00","overall_state":2,"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"2fn-8gb-s2h","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378143,"type":"api","created_at":"2020-05-11T10:53:08.248682+00:00","modified_at":"2020-05-11T10:53:08.248682+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","config":{"variables":[],"request":{"body":"this is + a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -243,13 +266,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:11 GMT + - Mon, 11 May 2020 10:53:09 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:11 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:08 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -258,34 +281,39 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - YCJuwY9AAFMveejFq3DmCuXNgWrXpDBQxqXi3LxQxaHO16MK3yMSWa14TOuRlDjy + - ty7T8eIeXOfZhM7KDN5nGo8JS7ZSIWAqBNFeZshTg3LLDJJa7mPU5wqGt0nOPCpy X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "116" + - "996" X-Ratelimit-Reset: - - "49" + - "52" status: 200 OK code: 200 duration: "" - request: - body: '{"public_ids":["a86-tuq-sw2"]}' + body: | + {"public_ids":["2fn-8gb-s2h"]} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - DeleteTests User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-03-16T13:06:11.490168+00:00","public_id":"a86-tuq-sw2"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-11T10:53:09.229152+00:00","public_id":"2fn-8gb-s2h"}]}' headers: Cache-Control: - no-cache @@ -296,13 +324,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:11 GMT + - Mon, 11 May 2020 10:53:09 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:11 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:09 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -311,9 +339,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - KKdI9UAf8fC5q7osIllxNui0A1CUm45w7mZBz+tu6Vlp/ga+Q6ZXvY0JoJlUBVi+ + - rpB/2GMZHvzTHZxhwmnNa1XnSQuif7FV+gIndoDc8IvUeRNb65r4x+P7Djp1119C X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -323,7 +351,7 @@ interactions: X-Ratelimit-Remaining: - "119" X-Ratelimit-Reset: - - "49" + - "51" status: 200 OK code: 200 duration: "" @@ -331,9 +359,13 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/a86-tuq-sw2 + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/2fn-8gb-s2h method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -347,7 +379,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:11 GMT + - Mon, 11 May 2020 10:53:09 GMT Dd-Pool: - dogweb Pragma: @@ -359,17 +391,17 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "115" + - "995" X-Ratelimit-Reset: - - "49" + - "51" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml index 4b8f2d468..f6e9008f8 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml @@ -2,21 +2,24 @@ version: 1 interactions: - request: - body: '{"name":"name for synthetics test foo","type":"api","subtype":"http","tags":["foo:bar","baz"],"config":{"request":{"url":"https://www.datadoghq.com","method":"GET","timeout":30,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"message":"Notify - @datadog.user","options":{"tick_every":60,"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1},"locations":["aws:eu-central-1"],"status":"paused"}' + body: | + {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test foo","options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - CreateTest User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"5pc-mgw-3js","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":16887157,"type":"api","created_at":"2020-03-16T13:06:12.156714+00:00","modified_at":"2020-03-16T13:06:12.156714+00:00","subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"xtp-fx6-nuh","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":18378144,"type":"api","created_at":"2020-05-11T10:53:09.798580+00:00","modified_at":"2020-05-11T10:53:09.798580+00:00","subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -27,13 +30,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:12 GMT + - Mon, 11 May 2020 10:53:09 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:12 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:09 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -42,9 +45,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - nRZqCODixwNZX0HLyT17WzYwenviVG0rmnZak57k5KsDWun3aWEsPedTsRpiFQxf + - 11g4TM+MO8VJV6iUJTOff4hAGEXsIqbG4IMv2YuWygOleCGxCxx6NihCkVtjenZN X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -54,7 +57,7 @@ interactions: X-Ratelimit-Remaining: - "118" X-Ratelimit-Reset: - - "48" + - "51" status: 200 OK code: 200 duration: "" @@ -62,15 +65,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/5pc-mgw-3js + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/xtp-fx6-nuh method: GET response: - body: '{"status":"paused","public_id":"5pc-mgw-3js","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887157,"type":"api","created_at":"2020-03-16T13:06:12.156714+00:00","modified_at":"2020-03-16T13:06:12.156714+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"xtp-fx6-nuh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378144,"type":"api","created_at":"2020-05-11T10:53:09.798580+00:00","modified_at":"2020-05-11T10:53:09.798580+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","config":{"variables":[],"request":{"body":"this is + a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -81,13 +89,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:12 GMT + - Mon, 11 May 2020 10:53:10 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:12 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:10 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -96,19 +104,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - bZImwKnIO3sUAXCuyRs9fWaEMDsBOTeSFh5dFNajdvBKpGDGzy05mj4PBPSf18hx + - 562ySu37xnxKxbTr0NFd7oH3+L3JO3D7GcG/Lb1Dr0vgKuyocJBk1SrO7ogLRZuZ X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "114" + - "994" X-Ratelimit-Reset: - - "48" + - "50" status: 200 OK code: 200 duration: "" @@ -116,15 +124,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/5pc-mgw-3js + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/xtp-fx6-nuh method: GET response: - body: '{"status":"paused","public_id":"5pc-mgw-3js","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887157,"type":"api","created_at":"2020-03-16T13:06:12.156714+00:00","modified_at":"2020-03-16T13:06:12.156714+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"xtp-fx6-nuh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378144,"type":"api","created_at":"2020-05-11T10:53:09.798580+00:00","modified_at":"2020-05-11T10:53:09.798580+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","overall_state_modified":"2020-05-11T10:53:10.696876+00:00","overall_state":2,"config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -135,13 +148,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:12 GMT + - Mon, 11 May 2020 10:53:10 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:12 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:10 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -150,19 +163,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Iy6HNgrdx6jplabT1ZfQVzkCrk+jqjHEQw0NvfR/5Sb/NsvSUgBv2AbCahJdaB7p + - oiF9oLqSEnBWpAh9z89c+Ruy9xKAqrdZzQPjGsNOxlGQNWaw3sCTSoKaMkMdPunL X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "113" + - "993" X-Ratelimit-Reset: - - "48" + - "50" status: 200 OK code: 200 duration: "" @@ -170,15 +183,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/5pc-mgw-3js + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/xtp-fx6-nuh method: GET response: - body: '{"status":"paused","public_id":"5pc-mgw-3js","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887157,"type":"api","created_at":"2020-03-16T13:06:12.156714+00:00","modified_at":"2020-03-16T13:06:12.156714+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"xtp-fx6-nuh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378144,"type":"api","created_at":"2020-05-11T10:53:09.798580+00:00","modified_at":"2020-05-11T10:53:09.798580+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","overall_state_modified":"2020-05-11T10:53:10.856964+00:00","overall_state":2,"config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -189,13 +207,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:12 GMT + - Mon, 11 May 2020 10:53:10 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:12 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:10 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -204,19 +222,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - f5hY0MW4w2fhZz0SAfv1+LF9me92dJz6mowUerU7gZ8k/CpuQLqOWzykixb5WZaX + - 3GTZ6ImnvkiMOuKTP2ILv/2CbQJLb5wTjyX1KOTCD/aaxDS+HyYye1EH1uVK9Ajh X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "112" + - "992" X-Ratelimit-Reset: - - "48" + - "50" status: 200 OK code: 200 duration: "" @@ -224,15 +242,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/5pc-mgw-3js + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/xtp-fx6-nuh method: GET response: - body: '{"status":"paused","public_id":"5pc-mgw-3js","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887157,"type":"api","created_at":"2020-03-16T13:06:12.156714+00:00","modified_at":"2020-03-16T13:06:12.156714+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"xtp-fx6-nuh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378144,"type":"api","created_at":"2020-05-11T10:53:09.798580+00:00","modified_at":"2020-05-11T10:53:09.798580+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","overall_state_modified":"2020-05-11T10:53:11.084079+00:00","overall_state":2,"config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -243,13 +266,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:12 GMT + - Mon, 11 May 2020 10:53:11 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:12 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:11 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -258,36 +281,40 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 1bzfAqb/6TIngEeU7r7YcGGp2+NaI+ne9J3bzgQrdB0qTrgVrMtd4iKXr1zCNOHr + - xuqj9hdWDkSD9EtpcqPe+eGtJAYYHPEMbUsHJUlu4ckBMffeXAIJAOyY354PYCG0 X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "111" + - "991" X-Ratelimit-Reset: - - "48" + - "49" status: 200 OK code: 200 duration: "" - request: - body: '{"name":"updated name","type":"api","subtype":"http","tags":["foo:bar","foo","env:test"],"config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"message":"Notify - @pagerduty","options":{"tick_every":900,"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1},"locations":["aws:eu-central-1"],"status":"live"}' + body: | + {"config":{"assertions":[{"operator":"isNot","target":500,"type":"statusCode"}],"request":{"method":"GET","timeout":60,"url":"https://docs.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"updated name","options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - UpdateTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/5pc-mgw-3js + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/xtp-fx6-nuh method: PUT response: - body: '{"status":"live","public_id":"5pc-mgw-3js","tags":["foo:bar","foo","env:test"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","deleted_at":null,"name":"updated name","monitor_id":16887157,"type":"api","created_at":"2020-03-16T13:06:12.156714+00:00","modified_at":"2020-03-16T13:06:13.189138+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' + body: '{"status":"live","public_id":"xtp-fx6-nuh","tags":["foo:bar","foo","env:test"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","deleted_at":null,"name":"updated name","monitor_id":18378144,"type":"api","created_at":"2020-05-11T10:53:09.798580+00:00","modified_at":"2020-05-11T10:53:11.312709+00:00","subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -298,13 +325,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:13 GMT + - Mon, 11 May 2020 10:53:11 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:13 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:11 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -313,19 +340,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - HTCsbjwqQM0jTFHFq9ukWObBv4f/yxvHIxzrANPhzJkr6s3+rN5uCN3TcZuK2V2B + - aq7EAvMMXGdldXT5eVhOcqdveqp5VDY6MoO0A/xKTuSa7v4Cc6HWT9iWUnYD+m1F X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "500" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "119" + - "499" X-Ratelimit-Reset: - - "47" + - "49" status: 200 OK code: 200 duration: "" @@ -333,14 +360,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/5pc-mgw-3js + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/xtp-fx6-nuh method: GET response: - body: '{"status":"live","public_id":"5pc-mgw-3js","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name","monitor_id":16887157,"type":"api","created_at":"2020-03-16T13:06:12.156714+00:00","modified_at":"2020-03-16T13:06:13.189138+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","overall_state_modified":"2020-03-16T13:06:13.432704+00:00","overall_state":2,"config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' + body: '{"status":"live","public_id":"xtp-fx6-nuh","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"updated name","monitor_id":18378144,"type":"api","created_at":"2020-05-11T10:53:09.798580+00:00","modified_at":"2020-05-11T10:53:11.312709+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","overall_state_modified":"2020-05-11T10:53:11.553002+00:00","overall_state":2,"config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -351,13 +383,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:13 GMT + - Mon, 11 May 2020 10:53:11 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:13 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:11 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -366,19 +398,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - zDaLXgTwOglSG/+LeCisOhDwAOr7D4UzTY02i97kQg3V5W3f2nMLfChR6yLoaPN1 + - skwclWwYkKW38qisoeAm0+G71HHbXaQZSRP+zaGh2pZ7dRVTlLXlAp6DZVg5jg4x X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "110" + - "990" X-Ratelimit-Reset: - - "47" + - "49" status: 200 OK code: 200 duration: "" @@ -386,14 +418,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/5pc-mgw-3js + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/xtp-fx6-nuh method: GET response: - body: '{"status":"live","public_id":"5pc-mgw-3js","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name","monitor_id":16887157,"type":"api","created_at":"2020-03-16T13:06:12.156714+00:00","modified_at":"2020-03-16T13:06:13.189138+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","overall_state_modified":"2020-03-16T13:06:13.626756+00:00","overall_state":2,"config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' + body: '{"status":"live","public_id":"xtp-fx6-nuh","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"updated name","monitor_id":18378144,"type":"api","created_at":"2020-05-11T10:53:09.798580+00:00","modified_at":"2020-05-11T10:53:11.312709+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","overall_state_modified":"2020-05-11T10:53:11.718318+00:00","overall_state":2,"config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -404,13 +441,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:13 GMT + - Mon, 11 May 2020 10:53:11 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:13 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:11 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -419,19 +456,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - OGWvqyuIWnbl6WkXpkkRXBvKLURJhdDx+xXZ6vxnnyjZzYdefkAlNGOfG85GcOUu + - 3OCRM/4FZbkllI4iloi1acHDABD1SJi2aj2fysEPLLsOVOk5Ki6mi6IOsVG7JIay X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "109" + - "989" X-Ratelimit-Reset: - - "47" + - "49" status: 200 OK code: 200 duration: "" @@ -439,14 +476,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/5pc-mgw-3js + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/xtp-fx6-nuh method: GET response: - body: '{"status":"live","public_id":"5pc-mgw-3js","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name","monitor_id":16887157,"type":"api","created_at":"2020-03-16T13:06:12.156714+00:00","modified_at":"2020-03-16T13:06:13.189138+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","overall_state_modified":"2020-03-16T13:06:13.810802+00:00","overall_state":2,"config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' + body: '{"status":"live","public_id":"xtp-fx6-nuh","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"updated name","monitor_id":18378144,"type":"api","created_at":"2020-05-11T10:53:09.798580+00:00","modified_at":"2020-05-11T10:53:11.312709+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","overall_state_modified":"2020-05-11T10:53:11.898912+00:00","overall_state":2,"config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -457,13 +499,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:13 GMT + - Mon, 11 May 2020 10:53:11 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:13 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:11 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -472,19 +514,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - kqXz3OvR7iajEJOdRFWpzJtcDHRumYwGfjdF12Vd65Xt1uV9T6lEO/K0lkxmcRvl + - vYQu3ls2HKdZ2pXErBiwg/FlJyuK31hjiI+oJSqoEPPw/7mzimb2FzvWEsshbznY X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "108" + - "988" X-Ratelimit-Reset: - - "47" + - "49" status: 200 OK code: 200 duration: "" @@ -492,14 +534,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/5pc-mgw-3js + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/xtp-fx6-nuh method: GET response: - body: '{"status":"live","public_id":"5pc-mgw-3js","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name","monitor_id":16887157,"type":"api","created_at":"2020-03-16T13:06:12.156714+00:00","modified_at":"2020-03-16T13:06:13.189138+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","overall_state_modified":"2020-03-16T13:06:13.999315+00:00","overall_state":2,"config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' + body: '{"status":"live","public_id":"xtp-fx6-nuh","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"updated name","monitor_id":18378144,"type":"api","created_at":"2020-05-11T10:53:09.798580+00:00","modified_at":"2020-05-11T10:53:11.312709+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","overall_state_modified":"2020-05-11T10:53:12.086461+00:00","overall_state":2,"config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}]},"options":{"follow_redirects":false,"min_failure_duration":10,"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -510,13 +557,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:14 GMT + - Mon, 11 May 2020 10:53:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:13 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -525,34 +572,39 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - oQ/oy4ezTZ+/WzL4afBMlDjLd5w62e5H15hF5BJChw1Gte+Sq8B8tB7i6vlTiLL0 + - EE74ncTR989SomsonUvABJWdGDkXBs7Emqj3HVDpp6NYddpvHp95kXsnHux1Es9E X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "107" + - "987" X-Ratelimit-Reset: - - "47" + - "48" status: 200 OK code: 200 duration: "" - request: - body: '{"public_ids":["5pc-mgw-3js"]}' + body: | + {"public_ids":["xtp-fx6-nuh"]} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - DeleteTests User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-03-16T13:06:14.193378+00:00","public_id":"5pc-mgw-3js"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-11T10:53:12.264290+00:00","public_id":"xtp-fx6-nuh"}]}' headers: Cache-Control: - no-cache @@ -563,13 +615,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:14 GMT + - Mon, 11 May 2020 10:53:12 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:14 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -578,9 +630,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - YKF8+1vTI0wiWlB3VWhiMVnZ1RLtV3h2yAW6/TGe9qIMWdYXxsNpy3J4QxfrJoDD + - vwiIwb5QepaQFIQrmPfIwwVWkQ/z0inFQwNEDjqDDy4v3CsF5qbv9dnyfb7UGzLf X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -590,7 +642,7 @@ interactions: X-Ratelimit-Remaining: - "118" X-Ratelimit-Reset: - - "46" + - "48" status: 200 OK code: 200 duration: "" @@ -598,9 +650,13 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/5pc-mgw-3js + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/xtp-fx6-nuh method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -614,7 +670,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:15 GMT + - Mon, 11 May 2020 10:53:12 GMT Dd-Pool: - dogweb Pragma: @@ -626,17 +682,17 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "106" + - "986" X-Ratelimit-Reset: - - "45" + - "48" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml index 80f8cac55..59cd622c9 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml @@ -2,21 +2,24 @@ version: 1 interactions: - request: - body: '{"name":"name for synthetics test foo","type":"api","subtype":"http","tags":["foo:bar","baz"],"config":{"request":{"url":"https://www.datadoghq.com","method":"GET","timeout":30,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"message":"Notify - @datadog.user","options":{"tick_every":60,"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1},"locations":["aws:eu-central-1"],"status":"paused"}' + body: | + {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"doesNotContain","target":"terraform","type":"body"}],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test foo","options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - CreateTest User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"a8j-qk5-53a","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":16887166,"type":"api","created_at":"2020-03-16T13:06:38.186803+00:00","modified_at":"2020-03-16T13:06:38.186803+00:00","subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"ena-zps-3j3","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics test foo","monitor_id":18378146,"type":"api","created_at":"2020-05-11T10:53:14.959162+00:00","modified_at":"2020-05-11T10:53:14.959162+00:00","subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -27,13 +30,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Mon, 11 May 2020 10:53:15 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:14 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -42,9 +45,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - RL7BSOiWXeq2P2iJbmiDo/2BPpcpoCDzQceVuBkp6yO348trcqTrfm/pm8rvZRoT + - ADT0ms9dQnbDHbbduv4c09ChngZrYY7A/Pgms/qacMOruS4mPwZ1GJWq74I7G11W X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -52,9 +55,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "113" + - "117" X-Ratelimit-Reset: - - "22" + - "46" status: 200 OK code: 200 duration: "" @@ -62,15 +65,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/a8j-qk5-53a + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/ena-zps-3j3 method: GET response: - body: '{"status":"paused","public_id":"a8j-qk5-53a","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887166,"type":"api","created_at":"2020-03-16T13:06:38.186803+00:00","modified_at":"2020-03-16T13:06:38.186803+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"ena-zps-3j3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378146,"type":"api","created_at":"2020-05-11T10:53:14.959162+00:00","modified_at":"2020-05-11T10:53:14.959162+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","config":{"variables":[],"request":{"body":"this is + a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -81,13 +89,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Mon, 11 May 2020 10:53:15 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:15 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -96,19 +104,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - TAg/qKywM5rz/AUGkmt8+wB4wzGMJfSiHOrBzxBctPLsV/erSD5TChi/uo5ZlVXK + - Jhz2Lh32XBCZ7PVSj7/lof8hXjgbtiexG4VIRWAEYHPFefqyYpXnVaeT62yBncrB X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "77" + - "985" X-Ratelimit-Reset: - - "22" + - "45" status: 200 OK code: 200 duration: "" @@ -116,15 +124,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/a8j-qk5-53a + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/ena-zps-3j3 method: GET response: - body: '{"status":"paused","public_id":"a8j-qk5-53a","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887166,"type":"api","created_at":"2020-03-16T13:06:38.186803+00:00","modified_at":"2020-03-16T13:06:38.186803+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"ena-zps-3j3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378146,"type":"api","created_at":"2020-05-11T10:53:14.959162+00:00","modified_at":"2020-05-11T10:53:14.959162+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","config":{"variables":[],"request":{"body":"this is + a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -135,13 +148,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Mon, 11 May 2020 10:53:15 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:15 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -150,19 +163,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - vYQu3ls2HKdZ2pXErBiwg/FlJyuK31hjiI+oJSqoEPPw/7mzimb2FzvWEsshbznY + - bZImwKnIO3sUAXCuyRs9fWaEMDsBOTeSFh5dFNajdvBKpGDGzy05mj4PBPSf18hx X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "75" + - "984" X-Ratelimit-Reset: - - "22" + - "45" status: 200 OK code: 200 duration: "" @@ -170,15 +183,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/a8j-qk5-53a + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/ena-zps-3j3 method: GET response: - body: '{"status":"paused","public_id":"a8j-qk5-53a","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887166,"type":"api","created_at":"2020-03-16T13:06:38.186803+00:00","modified_at":"2020-03-16T13:06:38.186803+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"ena-zps-3j3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378146,"type":"api","created_at":"2020-05-11T10:53:14.959162+00:00","modified_at":"2020-05-11T10:53:14.959162+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","config":{"variables":[],"request":{"body":"this is + a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -189,13 +207,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Mon, 11 May 2020 10:53:15 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:15 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -204,19 +222,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - F11u7JCZTPrHz8VfzL5YeXThxcQSR6CdLGgk2tF52+EbYWhXciN8nv9vA8oQ9C9A + - DAk/CQntZmry+u4cYsuVOELuKFo1I3NzKRNwPlY9WvlbH+rffk5VylB8tKDaSRWP X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "73" + - "983" X-Ratelimit-Reset: - - "22" + - "45" status: 200 OK code: 200 duration: "" @@ -224,15 +242,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/a8j-qk5-53a + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/ena-zps-3j3 method: GET response: - body: '{"status":"paused","public_id":"a8j-qk5-53a","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test foo","monitor_id":16887166,"type":"api","created_at":"2020-03-16T13:06:38.186803+00:00","modified_at":"2020-03-16T13:06:38.186803+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"http","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"body":"this - is a body","method":"GET","timeout":30},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"tick_every":60,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"ena-zps-3j3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"name":"name for synthetics test foo","monitor_id":18378146,"type":"api","created_at":"2020-05-11T10:53:14.959162+00:00","modified_at":"2020-05-11T10:53:14.959162+00:00","created_by":{"email":"nicholas.muesch@datadoghq.com","handle":"nicholas.muesch@datadoghq.com","id":1379811,"name":"Nicholas + Muesch"},"subtype":"http","config":{"variables":[],"request":{"body":"this is + a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"doesNotContain","type":"body","target":"terraform"}]},"options":{"follow_redirects":true,"min_failure_duration":0,"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -243,13 +266,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Mon, 11 May 2020 10:53:15 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:15 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -258,34 +281,39 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - FiLv+OaMPfXL1uddbn+9yDPMV5awac1EEhAgzXF2ZG6GNVh7KFUCM+HhGv6IDSg0 + - 3OCRM/4FZbkllI4iloi1acHDABD1SJi2aj2fysEPLLsOVOk5Ki6mi6IOsVG7JIay X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "70" + - "982" X-Ratelimit-Reset: - - "22" + - "45" status: 200 OK code: 200 duration: "" - request: - body: '{"public_ids":["a8j-qk5-53a"]}' + body: | + {"public_ids":["ena-zps-3j3"]} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - DeleteTests User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-03-16T13:06:39.130182+00:00","public_id":"a8j-qk5-53a"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-11T10:53:15.930963+00:00","public_id":"ena-zps-3j3"}]}' headers: Cache-Control: - no-cache @@ -296,13 +324,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:39 GMT + - Mon, 11 May 2020 10:53:16 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:39 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 18-May-2020 10:53:15 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -311,9 +339,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - svhoihUM58m7WJ4Z4lY5tmaXf/MnplHzAbMByuVznFW8yf3JIFAZgW/pCvMnq4iN + - og1WGdy+2nV+rkkclmd3Cf2I26XhV3/6yjBeQCP8aHbH2k2cKwC+X9WmhIghcJ94 X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -321,9 +349,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "113" + - "117" X-Ratelimit-Reset: - - "21" + - "45" status: 200 OK code: 200 duration: "" @@ -331,9 +359,13 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/a8j-qk5-53a + - datadog-api-client-go/1.0.0-beta.2 (go go1.13; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/ena-zps-3j3 method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -347,7 +379,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:39 GMT + - Mon, 11 May 2020 10:53:16 GMT Dd-Pool: - dogweb Pragma: @@ -359,17 +391,17 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2282030" + - "35.2487444" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "65" + - "981" X-Ratelimit-Reset: - - "21" + - "44" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml b/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml index e852a4e7f..82b529d35 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml @@ -2,20 +2,24 @@ version: 1 interactions: - request: - body: '{"name":"name for synthetics browser test bar","type":"browser","tags":["foo:bar","baz"],"config":{"request":{"url":"https://www.datadoghq.com","method":"GET","timeout":30,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body"}},"message":"Notify @datadog.user","options":{"tick_every":900,"min_failure_duration":0,"min_location_failed":1,"device_ids":["laptop_large","mobile_small"]},"locations":["aws:eu-central-1"],"status":"paused"}' + body: | + {"config":{"assertions":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics browser test bar","options":{"device_ids":["laptop_large","mobile_small"],"min_failure_duration":0,"min_location_failed":1,"tick_every":900},"status":"paused","tags":["foo:bar","baz"],"type":"browser"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - CreateTest User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"h6g-v4e-c38","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics browser test bar","monitor_id":16887160,"type":"browser","created_at":"2020-03-16T13:06:20.434916+00:00","modified_at":"2020-03-16T13:06:20.434916+00:00","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"pak-dmb-qx7","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics browser test bar","monitor_id":18206936,"type":"browser","created_at":"2020-05-04T01:26:34.544537+00:00","modified_at":"2020-05-04T01:26:34.544537+00:00","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -26,13 +30,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:20 GMT + - Mon, 04 May 2020 01:26:34 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:20 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:34 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -41,9 +45,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 3GTZ6ImnvkiMOuKTP2ILv/2CbQJLb5wTjyX1KOTCD/aaxDS+HyYye1EH1uVK9Ajh + - yEcEaKqmSUfeSlQ/kN/c5E6EpIXbM1JPI9KV27pdsvBWWv3FI4tsqqRarYTS+fS+ X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -53,7 +57,7 @@ interactions: X-Ratelimit-Remaining: - "115" X-Ratelimit-Reset: - - "40" + - "26" status: 200 OK code: 200 duration: "" @@ -61,15 +65,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/h6g-v4e-c38 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/pak-dmb-qx7 method: GET response: - body: '{"status":"paused","public_id":"h6g-v4e-c38","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887160,"type":"browser","created_at":"2020-03-16T13:06:20.434916+00:00","modified_at":"2020-03-16T13:06:20.434916+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"pak-dmb-qx7","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206936,"type":"browser","created_at":"2020-05-04T01:26:34.544537+00:00","modified_at":"2020-05-04T01:26:34.544537+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -80,13 +88,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:20 GMT + - Mon, 04 May 2020 01:26:34 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:20 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:34 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -95,19 +103,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - KHJbOoqp3I4BOBzIFnc/Ois3eg3Rjmudy0YalRpnXQEDXDoppykpDMDaJPIufi9t + - Jhz2Lh32XBCZ7PVSj7/lof8hXjgbtiexG4VIRWAEYHPFefqyYpXnVaeT62yBncrB X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "91" + - "971" X-Ratelimit-Reset: - - "40" + - "26" status: 200 OK code: 200 duration: "" @@ -115,15 +123,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/h6g-v4e-c38 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/pak-dmb-qx7 method: GET response: - body: '{"status":"paused","public_id":"h6g-v4e-c38","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887160,"type":"browser","created_at":"2020-03-16T13:06:20.434916+00:00","modified_at":"2020-03-16T13:06:20.434916+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"pak-dmb-qx7","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206936,"type":"browser","created_at":"2020-05-04T01:26:34.544537+00:00","modified_at":"2020-05-04T01:26:34.544537+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -134,13 +146,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:20 GMT + - Mon, 04 May 2020 01:26:34 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:20 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:34 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -149,19 +161,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - aERr2Ftx8O/BR8oAhSymZ3bVROQEC+81YMSphOQK1me4DxXSbMIcFkB0Di4ggZ++ + - L5yd3v29mZzDtdpTLB/OLdaP/nm856X8oKVK7IsHIbLmKRYkqq5Jv7+SBx/bs1VS X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "90" + - "970" X-Ratelimit-Reset: - - "40" + - "26" status: 200 OK code: 200 duration: "" @@ -169,15 +181,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/h6g-v4e-c38 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/pak-dmb-qx7 method: GET response: - body: '{"status":"paused","public_id":"h6g-v4e-c38","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887160,"type":"browser","created_at":"2020-03-16T13:06:20.434916+00:00","modified_at":"2020-03-16T13:06:20.434916+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"pak-dmb-qx7","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206936,"type":"browser","created_at":"2020-05-04T01:26:34.544537+00:00","modified_at":"2020-05-04T01:26:34.544537+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -188,13 +204,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:20 GMT + - Mon, 04 May 2020 01:26:34 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:20 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:34 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -203,19 +219,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - kg+/Cls6zaJcT2blJLlU62BwgGePGdpqSwWrJ0xEIvzmSMWHXxGNsiyEzBPJ1a96 + - HtltRxB6FWULKbr8JD/35HKWhI+dqAFQg/rNpMbjeMOPUq5j5iWk+nIs8OwDOqUR X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "89" + - "969" X-Ratelimit-Reset: - - "40" + - "26" status: 200 OK code: 200 duration: "" @@ -223,15 +239,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/h6g-v4e-c38 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/pak-dmb-qx7 method: GET response: - body: '{"status":"paused","public_id":"h6g-v4e-c38","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887160,"type":"browser","created_at":"2020-03-16T13:06:20.434916+00:00","modified_at":"2020-03-16T13:06:20.434916+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"overall_state_modified":"2020-03-16T13:06:21.259221+00:00","overall_state":2,"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"pak-dmb-qx7","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206936,"type":"browser","created_at":"2020-05-04T01:26:34.544537+00:00","modified_at":"2020-05-04T01:26:34.544537+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -242,13 +262,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:21 GMT + - Mon, 04 May 2020 01:26:34 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:21 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:34 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -257,34 +277,39 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - JbIYRXbRMsAVaKGy+d2H1ud8Z295ghodOPi6eELPzhmBKrZI3+dlseyrUY1cqOAd + - mIWJPPM06xs5rSGFgggpdD5UbOnt6ntntAO8/8YDsVuXnSmp/k0aZ5dEUtAKB7Td X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "88" + - "968" X-Ratelimit-Reset: - - "39" + - "26" status: 200 OK code: 200 duration: "" - request: - body: '{"public_ids":["h6g-v4e-c38"]}' + body: | + {"public_ids":["pak-dmb-qx7"]} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - DeleteTests User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-03-16T13:06:21.499685+00:00","public_id":"h6g-v4e-c38"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-04T01:26:35.123559+00:00","public_id":"pak-dmb-qx7"}]}' headers: Cache-Control: - no-cache @@ -295,13 +320,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:21 GMT + - Mon, 04 May 2020 01:26:35 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:21 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:35 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -310,9 +335,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - pEDVi2191MvoIMwusdL+COAxndBmcRhJtxAtWxDDnECWDI8Z99hIoBZbpR57tJKz + - PcnVfOcEtqolY6fi98GEVSGXOZZkwQSBbl/twLr2TucYRfYyGCLXvKm6pTUNQt1l X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -322,7 +347,7 @@ interactions: X-Ratelimit-Remaining: - "115" X-Ratelimit-Reset: - - "39" + - "25" status: 200 OK code: 200 duration: "" @@ -330,9 +355,13 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/h6g-v4e-c38 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/pak-dmb-qx7 method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -346,7 +375,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:22 GMT + - Mon, 04 May 2020 01:26:35 GMT Dd-Pool: - dogweb Pragma: @@ -358,17 +387,17 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "87" + - "967" X-Ratelimit-Reset: - - "38" + - "25" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml b/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml index fc2bd9f77..1c1280a3b 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml @@ -2,20 +2,24 @@ version: 1 interactions: - request: - body: '{"name":"name for synthetics browser test bar","type":"browser","tags":["foo:bar","baz"],"config":{"request":{"url":"https://www.datadoghq.com","method":"GET","timeout":30,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body"}},"message":"Notify @datadog.user","options":{"tick_every":900,"min_failure_duration":0,"min_location_failed":1,"device_ids":["laptop_large","mobile_small"]},"locations":["aws:eu-central-1"],"status":"paused"}' + body: | + {"config":{"assertions":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics browser test bar","options":{"device_ids":["laptop_large","mobile_small"],"min_failure_duration":0,"min_location_failed":1,"tick_every":900},"status":"paused","tags":["foo:bar","baz"],"type":"browser"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - CreateTest User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"f6q-cfn-tr5","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics browser test bar","monitor_id":16887161,"type":"browser","created_at":"2020-03-16T13:06:22.507104+00:00","modified_at":"2020-03-16T13:06:22.507104+00:00","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"hcc-w69-acd","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics browser test bar","monitor_id":18206937,"type":"browser","created_at":"2020-05-04T01:26:35.677986+00:00","modified_at":"2020-05-04T01:26:35.677986+00:00","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -26,13 +30,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:22 GMT + - Mon, 04 May 2020 01:26:35 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:22 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:35 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -41,9 +45,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Iy6HNgrdx6jplabT1ZfQVzkCrk+jqjHEQw0NvfR/5Sb/NsvSUgBv2AbCahJdaB7p + - OdMYjD4Lcx2EOYJ2NSqLNRIyMqxNYyUQxCcT6zY9ZmZ+zl9yipXz0nuLjH5hVxTY X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -53,7 +57,7 @@ interactions: X-Ratelimit-Remaining: - "114" X-Ratelimit-Reset: - - "38" + - "25" status: 200 OK code: 200 duration: "" @@ -61,15 +65,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/f6q-cfn-tr5 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/hcc-w69-acd method: GET response: - body: '{"status":"paused","public_id":"f6q-cfn-tr5","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887161,"type":"browser","created_at":"2020-03-16T13:06:22.507104+00:00","modified_at":"2020-03-16T13:06:22.507104+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"hcc-w69-acd","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206937,"type":"browser","created_at":"2020-05-04T01:26:35.677986+00:00","modified_at":"2020-05-04T01:26:35.677986+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -80,13 +88,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:22 GMT + - Mon, 04 May 2020 01:26:35 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:22 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:35 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -95,19 +103,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - SaHvyR/hQzhMjBxXmmuM76vwlwfocpgL0LhX3u6R0CFONYqUGm7Xe/7/HyTliTFX + - QpzDmIoaO5Hufx014PqM5BuLw+G9k75nLqy12TEr4Iab1Fl7hIFT5DrERoBer8OF X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "86" + - "966" X-Ratelimit-Reset: - - "38" + - "25" status: 200 OK code: 200 duration: "" @@ -115,15 +123,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/f6q-cfn-tr5 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/hcc-w69-acd method: GET response: - body: '{"status":"paused","public_id":"f6q-cfn-tr5","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887161,"type":"browser","created_at":"2020-03-16T13:06:22.507104+00:00","modified_at":"2020-03-16T13:06:22.507104+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"overall_state_modified":"2020-03-16T13:06:23.085449+00:00","overall_state":2,"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"hcc-w69-acd","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206937,"type":"browser","created_at":"2020-05-04T01:26:35.677986+00:00","modified_at":"2020-05-04T01:26:35.677986+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -134,13 +146,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:23 GMT + - Mon, 04 May 2020 01:26:35 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:23 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:35 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -149,19 +161,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - qA85Kiicwd/s93AfT3MSf+l6IYc5FQ6tEbp4Kft/ri41UOumJ967MPQKmz3gwejd + - +UwwYRc+A5vkEib2s1YY/+OMx26FxXkDPMnhrpaIz/kTVseyL62lC12FdLJrU3nv X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "85" + - "965" X-Ratelimit-Reset: - - "37" + - "25" status: 200 OK code: 200 duration: "" @@ -169,15 +181,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/f6q-cfn-tr5 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/hcc-w69-acd method: GET response: - body: '{"status":"paused","public_id":"f6q-cfn-tr5","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887161,"type":"browser","created_at":"2020-03-16T13:06:22.507104+00:00","modified_at":"2020-03-16T13:06:22.507104+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"overall_state_modified":"2020-03-16T13:06:23.308683+00:00","overall_state":2,"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"hcc-w69-acd","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206937,"type":"browser","created_at":"2020-05-04T01:26:35.677986+00:00","modified_at":"2020-05-04T01:26:35.677986+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -188,13 +204,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:23 GMT + - Mon, 04 May 2020 01:26:36 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:23 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:35 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -203,19 +219,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Jhz2Lh32XBCZ7PVSj7/lof8hXjgbtiexG4VIRWAEYHPFefqyYpXnVaeT62yBncrB + - 0pa1dtuadfHOUeVqLiK3mljtwHC7xKOrqXlG1EXfeExc1YyvZm51+jZLEiJ3YUs6 X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "84" + - "964" X-Ratelimit-Reset: - - "37" + - "25" status: 200 OK code: 200 duration: "" @@ -223,15 +239,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/f6q-cfn-tr5 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/hcc-w69-acd method: GET response: - body: '{"status":"paused","public_id":"f6q-cfn-tr5","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887161,"type":"browser","created_at":"2020-03-16T13:06:22.507104+00:00","modified_at":"2020-03-16T13:06:22.507104+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"overall_state_modified":"2020-03-16T13:06:23.555855+00:00","overall_state":2,"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"hcc-w69-acd","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206937,"type":"browser","created_at":"2020-05-04T01:26:35.677986+00:00","modified_at":"2020-05-04T01:26:35.677986+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -242,13 +262,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:23 GMT + - Mon, 04 May 2020 01:26:36 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:23 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:36 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -257,38 +277,42 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - tp1qdVxoUmtlsVp6hgBWraWfL5vEbA116VZkaWKWIZtgPr5Ima8zysCBv+o2WoZ/ + - UlUHD7I7ISIp2OTIKJ1HGCksOU1snpAx2HtkPJw2SYzWMPmqzICEuimWl9Uiyokg X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "83" + - "963" X-Ratelimit-Reset: - - "37" + - "24" status: 200 OK code: 200 duration: "" - request: - body: '{"name":"updated name for synthetics browser test bar","type":"browser","tags":["foo:bar","buz"],"config":{"request":{"url":"https://docs.datadoghq.com","method":"PUT","timeout":60,"headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"body":"this - is an updated body"}},"message":"Notify @pagerduty","options":{"tick_every":1800,"min_failure_duration":10,"min_location_failed":1,"device_ids":["laptop_large","tablet"]},"locations":["aws:eu-central-1"],"status":"live"}' + body: | + {"config":{"assertions":[],"request":{"body":"this is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"method":"PUT","timeout":60,"url":"https://docs.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"updated name for synthetics browser test bar","options":{"device_ids":["laptop_large","tablet"],"min_failure_duration":10,"min_location_failed":1,"tick_every":1800},"status":"live","tags":["foo:bar","buz"],"type":"browser"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - UpdateTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/f6q-cfn-tr5 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/hcc-w69-acd method: PUT response: - body: '{"status":"live","public_id":"f6q-cfn-tr5","tags":["foo:bar","buz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify + body: '{"status":"live","public_id":"hcc-w69-acd","tags":["foo:bar","buz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"updated name for synthetics browser test - bar","monitor_id":16887161,"type":"browser","created_at":"2020-03-16T13:06:22.507104+00:00","modified_at":"2020-03-16T13:06:23.927438+00:00","config":{"request":{"url":"https://docs.datadoghq.com","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"body":"this - is an updated body","method":"PUT","timeout":60}},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"tick_every":1800,"min_location_failed":1}}' + bar","monitor_id":18206937,"type":"browser","created_at":"2020-05-04T01:26:35.677986+00:00","modified_at":"2020-05-04T01:26:36.372366+00:00","config":{"variables":[],"request":{"body":"this + is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[]},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"min_location_failed":1,"tick_every":1800}}' headers: Cache-Control: - no-cache @@ -299,13 +323,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:24 GMT + - Mon, 04 May 2020 01:26:36 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:23 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:36 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -314,19 +338,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 11g4TM+MO8VJV6iUJTOff4hAGEXsIqbG4IMv2YuWygOleCGxCxx6NihCkVtjenZN + - 1bzfAqb/6TIngEeU7r7YcGGp2+NaI+ne9J3bzgQrdB0qTrgVrMtd4iKXr1zCNOHr X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "500" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "117" + - "497" X-Ratelimit-Reset: - - "37" + - "24" status: 200 OK code: 200 duration: "" @@ -334,15 +358,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/f6q-cfn-tr5 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/hcc-w69-acd method: GET response: - body: '{"status":"live","public_id":"f6q-cfn-tr5","tags":["foo:bar","buz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name for synthetics browser test bar","monitor_id":16887161,"type":"browser","created_at":"2020-03-16T13:06:22.507104+00:00","modified_at":"2020-03-16T13:06:23.927438+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"overall_state_modified":"2020-03-16T13:06:24.152562+00:00","overall_state":2,"config":{"request":{"url":"https://docs.datadoghq.com","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"body":"this - is an updated body","method":"PUT","timeout":60}},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"tick_every":1800,"min_location_failed":1}}' + body: '{"status":"live","public_id":"hcc-w69-acd","tags":["foo:bar","buz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name for synthetics browser test bar","monitor_id":18206937,"type":"browser","created_at":"2020-05-04T01:26:35.677986+00:00","modified_at":"2020-05-04T01:26:36.372366+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"overall_state_modified":"2020-05-04T01:26:36.699634+00:00","overall_state":2,"config":{"variables":[],"request":{"body":"this + is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[]},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"min_location_failed":1,"tick_every":1800}}' headers: Cache-Control: - no-cache @@ -353,13 +382,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:24 GMT + - Mon, 04 May 2020 01:26:36 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:24 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:36 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -368,19 +397,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 11g4TM+MO8VJV6iUJTOff4hAGEXsIqbG4IMv2YuWygOleCGxCxx6NihCkVtjenZN + - i/tjaZJ1Vhpke5HNSziupF5eEnHtDP3NjcuF7Ija0/AGuxq0WEQiFfpqy+mDADxv X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "82" + - "962" X-Ratelimit-Reset: - - "36" + - "24" status: 200 OK code: 200 duration: "" @@ -388,15 +417,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/f6q-cfn-tr5 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/hcc-w69-acd method: GET response: - body: '{"status":"live","public_id":"f6q-cfn-tr5","tags":["foo:bar","buz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name for synthetics browser test bar","monitor_id":16887161,"type":"browser","created_at":"2020-03-16T13:06:22.507104+00:00","modified_at":"2020-03-16T13:06:23.927438+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"overall_state_modified":"2020-03-16T13:06:24.298284+00:00","overall_state":2,"config":{"request":{"url":"https://docs.datadoghq.com","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"body":"this - is an updated body","method":"PUT","timeout":60}},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"tick_every":1800,"min_location_failed":1}}' + body: '{"status":"live","public_id":"hcc-w69-acd","tags":["foo:bar","buz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name for synthetics browser test bar","monitor_id":18206937,"type":"browser","created_at":"2020-05-04T01:26:35.677986+00:00","modified_at":"2020-05-04T01:26:36.372366+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"overall_state_modified":"2020-05-04T01:26:36.774358+00:00","overall_state":2,"config":{"variables":[],"request":{"body":"this + is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[]},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"min_location_failed":1,"tick_every":1800}}' headers: Cache-Control: - no-cache @@ -407,13 +441,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:24 GMT + - Mon, 04 May 2020 01:26:36 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:24 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:36 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -422,19 +456,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - +6muH0vWWhHE6JfE/xHkdpoFSNgX/+wCvqEMuEDvglDKir3htwvCDYdHi0bPaPF0 + - YKF8+1vTI0wiWlB3VWhiMVnZ1RLtV3h2yAW6/TGe9qIMWdYXxsNpy3J4QxfrJoDD X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "81" + - "961" X-Ratelimit-Reset: - - "36" + - "24" status: 200 OK code: 200 duration: "" @@ -442,15 +476,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/f6q-cfn-tr5 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/hcc-w69-acd method: GET response: - body: '{"status":"live","public_id":"f6q-cfn-tr5","tags":["foo:bar","buz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name for synthetics browser test bar","monitor_id":16887161,"type":"browser","created_at":"2020-03-16T13:06:22.507104+00:00","modified_at":"2020-03-16T13:06:23.927438+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"overall_state_modified":"2020-03-16T13:06:24.482165+00:00","overall_state":2,"config":{"request":{"url":"https://docs.datadoghq.com","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"body":"this - is an updated body","method":"PUT","timeout":60}},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"tick_every":1800,"min_location_failed":1}}' + body: '{"status":"live","public_id":"hcc-w69-acd","tags":["foo:bar","buz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name for synthetics browser test bar","monitor_id":18206937,"type":"browser","created_at":"2020-05-04T01:26:35.677986+00:00","modified_at":"2020-05-04T01:26:36.372366+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"overall_state_modified":"2020-05-04T01:26:36.872858+00:00","overall_state":2,"config":{"variables":[],"request":{"body":"this + is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[]},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"min_location_failed":1,"tick_every":1800}}' headers: Cache-Control: - no-cache @@ -461,13 +500,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:24 GMT + - Mon, 04 May 2020 01:26:36 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:24 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:36 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -476,19 +515,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - menB+JzZJZWnsBMzYDdvLqZLyJ1Z3XKvvLNUvAnnxCkhc359HSRPRWZhATTwUzcU + - 6qTaw+brNWWnKD6ULH8747/TVkPK0wedRsruOmMITJcYBkJ/Eac9bUO9jP1Btfl5 X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "80" + - "960" X-Ratelimit-Reset: - - "36" + - "24" status: 200 OK code: 200 duration: "" @@ -496,15 +535,20 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/f6q-cfn-tr5 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/hcc-w69-acd method: GET response: - body: '{"status":"live","public_id":"f6q-cfn-tr5","tags":["foo:bar","buz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name for synthetics browser test bar","monitor_id":16887161,"type":"browser","created_at":"2020-03-16T13:06:22.507104+00:00","modified_at":"2020-03-16T13:06:23.927438+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"overall_state_modified":"2020-03-16T13:06:24.676578+00:00","overall_state":2,"config":{"request":{"url":"https://docs.datadoghq.com","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"body":"this - is an updated body","method":"PUT","timeout":60}},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"tick_every":1800,"min_location_failed":1}}' + body: '{"status":"live","public_id":"hcc-w69-acd","tags":["foo:bar","buz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name for synthetics browser test bar","monitor_id":18206937,"type":"browser","created_at":"2020-05-04T01:26:35.677986+00:00","modified_at":"2020-05-04T01:26:36.372366+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"overall_state_modified":"2020-05-04T01:26:36.999641+00:00","overall_state":2,"config":{"variables":[],"request":{"body":"this + is an updated body","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com","timeout":60,"method":"PUT"},"assertions":[]},"options":{"min_failure_duration":10,"device_ids":["laptop_large","tablet"],"min_location_failed":1,"tick_every":1800}}' headers: Cache-Control: - no-cache @@ -515,13 +559,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:24 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:24 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:36 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -530,34 +574,39 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - jety+2H6BA1H4x31+wzy5BjqI2NDwh54fgbjSYyrLU0p2tWQPCCTKspX7sHO7u1n + - gVnECQ7ifaEfJ6BNPsXSglLjlU41ay4U8jXHC6V3+oC4U6gHkBb20H5zrSJj1zee X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "79" + - "959" X-Ratelimit-Reset: - - "36" + - "24" status: 200 OK code: 200 duration: "" - request: - body: '{"public_ids":["f6q-cfn-tr5"]}' + body: | + {"public_ids":["hcc-w69-acd"]} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - DeleteTests User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-03-16T13:06:24.877856+00:00","public_id":"f6q-cfn-tr5"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-04T01:26:37.088708+00:00","public_id":"hcc-w69-acd"}]}' headers: Cache-Control: - no-cache @@ -568,13 +617,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:25 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:24 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -583,9 +632,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - l+fZq7vW9gg1qInAzXkJZdt8f8e/094RDnN9pOEIlkXbx1jb6kpjgt1+syYCZyFC + - YNGrI7M9aLfuf6Npp7n/51e6xDtYCO9Rm/LB+HGbX4I6A/e7rnC+cgQxIZnsU+fj X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -595,7 +644,7 @@ interactions: X-Ratelimit-Remaining: - "114" X-Ratelimit-Reset: - - "36" + - "23" status: 200 OK code: 200 duration: "" @@ -603,9 +652,13 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/f6q-cfn-tr5 + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/hcc-w69-acd method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -619,7 +672,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:25 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: @@ -631,17 +684,17 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "78" + - "958" X-Ratelimit-Reset: - - "35" + - "23" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml b/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml index a948c3c8e..aca7ae228 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml @@ -2,20 +2,24 @@ version: 1 interactions: - request: - body: '{"name":"name for synthetics browser test bar","type":"browser","tags":["foo:bar","baz"],"config":{"request":{"url":"https://www.datadoghq.com","method":"GET","timeout":30,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body"}},"message":"Notify @datadog.user","options":{"tick_every":900,"min_failure_duration":0,"min_location_failed":1,"device_ids":["laptop_large","mobile_small"]},"locations":["aws:eu-central-1"],"status":"paused"}' + body: | + {"config":{"assertions":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics browser test bar","options":{"device_ids":["laptop_large","mobile_small"],"min_failure_duration":0,"min_location_failed":1,"tick_every":900},"status":"paused","tags":["foo:bar","baz"],"type":"browser"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - CreateTest User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"ez5-7jq-gmq","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics browser test bar","monitor_id":16887168,"type":"browser","created_at":"2020-03-16T13:06:38.630021+00:00","modified_at":"2020-03-16T13:06:38.630021+00:00","config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"b9h-5bg-sqt","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics browser test bar","monitor_id":18206940,"type":"browser","created_at":"2020-05-04T01:26:37.654955+00:00","modified_at":"2020-05-04T01:26:37.654955+00:00","config":{"variables":[],"request":{"body":"this + is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -26,13 +30,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -41,9 +45,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - pT9LlAdgAzlrCUxMXQkBRs/Qti76jKIHng1uB0/SctAaYjB4WqOgOZYpCbOMQKll + - 6TICFxDFBNq65Lw6aA0hO1z7nxUSiTzUAT0k7ln4UasEU6/emXomwtYWMJdIuxUV X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -53,7 +57,7 @@ interactions: X-Ratelimit-Remaining: - "111" X-Ratelimit-Reset: - - "22" + - "23" status: 200 OK code: 200 duration: "" @@ -61,15 +65,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/ez5-7jq-gmq + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/b9h-5bg-sqt method: GET response: - body: '{"status":"paused","public_id":"ez5-7jq-gmq","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887168,"type":"browser","created_at":"2020-03-16T13:06:38.630021+00:00","modified_at":"2020-03-16T13:06:38.630021+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"b9h-5bg-sqt","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206940,"type":"browser","created_at":"2020-05-04T01:26:37.654955+00:00","modified_at":"2020-05-04T01:26:37.654955+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -80,13 +88,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -95,19 +103,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - x4m73yTAj65OpCjnvpw3RBJyiFQpkDOBZ7rE/UM6Q4o0837nUb4ZsWFNJUD0Xh0e + - /Ib6MMQTHlX0/jTb6tlEMzSZs2crLqjkGjYkoQ/zb0RHtMaXT744DZRFpy23W0oi X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "71" + - "951" X-Ratelimit-Reset: - - "22" + - "23" status: 200 OK code: 200 duration: "" @@ -115,15 +123,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/ez5-7jq-gmq + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/b9h-5bg-sqt method: GET response: - body: '{"status":"paused","public_id":"ez5-7jq-gmq","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887168,"type":"browser","created_at":"2020-03-16T13:06:38.630021+00:00","modified_at":"2020-03-16T13:06:38.630021+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"b9h-5bg-sqt","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206940,"type":"browser","created_at":"2020-05-04T01:26:37.654955+00:00","modified_at":"2020-05-04T01:26:37.654955+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -134,13 +146,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -149,19 +161,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - IRAJ1mQ+c3epm0CLGtZoe/y8O4TCss3jYw+fwQOm7+eSKRCE+p3OtawVnIQ5ts76 + - yqCkAb2Y8/4OgTSGYvedTl/k5gsPukDI7OLTlGSm9adIbRDVlGb00Ve5DDv9ImFD X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "68" + - "949" X-Ratelimit-Reset: - - "22" + - "23" status: 200 OK code: 200 duration: "" @@ -169,15 +181,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/ez5-7jq-gmq + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/b9h-5bg-sqt method: GET response: - body: '{"status":"paused","public_id":"ez5-7jq-gmq","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887168,"type":"browser","created_at":"2020-03-16T13:06:38.630021+00:00","modified_at":"2020-03-16T13:06:38.630021+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"b9h-5bg-sqt","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206940,"type":"browser","created_at":"2020-05-04T01:26:37.654955+00:00","modified_at":"2020-05-04T01:26:37.654955+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -188,13 +204,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:39 GMT + - Mon, 04 May 2020 01:26:38 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:39 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:38 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -203,19 +219,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - EE74ncTR989SomsonUvABJWdGDkXBs7Emqj3HVDpp6NYddpvHp95kXsnHux1Es9E + - 7TxqGOOndreg52igtXLKdvEB8M2Uby8upoxCr+mzZBPLwPuOVdJ4ujutF+9TQL1R X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "67" + - "947" X-Ratelimit-Reset: - - "21" + - "22" status: 200 OK code: 200 duration: "" @@ -223,15 +239,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/ez5-7jq-gmq + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/b9h-5bg-sqt method: GET response: - body: '{"status":"paused","public_id":"ez5-7jq-gmq","tags":["foo:bar","baz"],"stepCount":0,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics browser test bar","monitor_id":16887168,"type":"browser","created_at":"2020-03-16T13:06:38.630021+00:00","modified_at":"2020-03-16T13:06:38.630021+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"config":{"request":{"url":"https://www.datadoghq.com","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"body":"this - is a body","method":"GET","timeout":30}},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"tick_every":900,"min_location_failed":1}}' + body: '{"status":"paused","public_id":"b9h-5bg-sqt","tags":["foo:bar","baz"],"stepCount":{"subtests":0,"total":0,"assertions":0},"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics browser test bar","monitor_id":18206940,"type":"browser","created_at":"2020-05-04T01:26:37.654955+00:00","modified_at":"2020-05-04T01:26:37.654955+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"config":{"variables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[]},"options":{"min_failure_duration":0,"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -242,13 +262,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:39 GMT + - Mon, 04 May 2020 01:26:38 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:39 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:38 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -257,34 +277,39 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - o1rjyOSbDnvYaQgtO33vwWSNsIwHafzLqam2amG/PbTP69SVY965ZpWutdoYJB30 + - FAXIqEyJyWWDyUDKgR+Td75IkfWeu40aSEpg9NtrH84gUkIxi84nk9RHrJt3rVD3 X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "66" + - "946" X-Ratelimit-Reset: - - "21" + - "22" status: 200 OK code: 200 duration: "" - request: - body: '{"public_ids":["ez5-7jq-gmq"]}' + body: | + {"public_ids":["b9h-5bg-sqt"]} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - DeleteTests User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-03-16T13:06:39.601573+00:00","public_id":"ez5-7jq-gmq"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-04T01:26:38.421875+00:00","public_id":"b9h-5bg-sqt"}]}' headers: Cache-Control: - no-cache @@ -295,13 +320,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:39 GMT + - Mon, 04 May 2020 01:26:38 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:39 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:38 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -310,9 +335,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 562ySu37xnxKxbTr0NFd7oH3+L3JO3D7GcG/Lb1Dr0vgKuyocJBk1SrO7ogLRZuZ + - LOVPYRkvxiVgJlSU7tTR5QW5I3IByFfoP5oRWZk6jukYFQiYGeCZXWoo6PiPBzrK X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -322,7 +347,7 @@ interactions: X-Ratelimit-Remaining: - "111" X-Ratelimit-Reset: - - "21" + - "22" status: 200 OK code: 200 duration: "" @@ -330,9 +355,13 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/ez5-7jq-gmq + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/b9h-5bg-sqt method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -346,7 +375,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:39 GMT + - Mon, 04 May 2020 01:26:38 GMT Dd-Pool: - dogweb Pragma: @@ -358,17 +387,17 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "63" + - "943" X-Ratelimit-Reset: - - "21" + - "22" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Basic.yaml b/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Basic.yaml index 2da3ad9b4..7b065808b 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Basic.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Basic.yaml @@ -2,19 +2,23 @@ version: 1 interactions: - request: - body: '{"name":"name for synthetics test ssl","type":"api","subtype":"ssl","tags":["foo:bar","baz"],"config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"message":"Notify - @datadog.user","options":{"tick_every":60,"accept_self_signed":true},"locations":["aws:eu-central-1"],"status":"paused"}' + body: | + {"config":{"assertions":[{"operator":"isInMoreThan","target":30,"type":"certificate"}],"request":{"host":"datadoghq.com","port":443},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test ssl","options":{"accept_self_signed":true,"tick_every":60},"status":"paused","subtype":"ssl","tags":["foo:bar","baz"],"type":"api"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - CreateTest User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"pte-txs-53q","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics test ssl","monitor_id":16887158,"type":"api","created_at":"2020-03-16T13:06:16.126704+00:00","modified_at":"2020-03-16T13:06:16.126704+00:00","subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"5bq-cui-e5t","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics test ssl","monitor_id":18206934,"type":"api","created_at":"2020-05-04T01:26:31.103710+00:00","modified_at":"2020-05-04T01:26:31.103710+00:00","subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -25,13 +29,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:16 GMT + - Mon, 04 May 2020 01:26:31 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:15 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:30 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -40,9 +44,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - CPK+34LtKdL5YYX/NFOJUdMpxMoO80HISGpGpzDG5fENYSoZ2QNw1gEubOsJ9JNb + - ztq+F8HwxRthTKNo0l2MCEDK5uwvgQzF00nWu49lHsBM51hGZBm/pPILDqupy+Xd X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -52,7 +56,7 @@ interactions: X-Ratelimit-Remaining: - "117" X-Ratelimit-Reset: - - "45" + - "29" status: 200 OK code: 200 duration: "" @@ -60,14 +64,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/pte-txs-53q + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/5bq-cui-e5t method: GET response: - body: '{"status":"paused","public_id":"pte-txs-53q","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887158,"type":"api","created_at":"2020-03-16T13:06:16.126704+00:00","modified_at":"2020-03-16T13:06:16.126704+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"5bq-cui-e5t","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206934,"type":"api","created_at":"2020-05-04T01:26:31.103710+00:00","modified_at":"2020-05-04T01:26:31.103710+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -78,13 +87,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:16 GMT + - Mon, 04 May 2020 01:26:31 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:16 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:31 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -93,19 +102,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - EbXB0e7cF4uDRViRvI+w6qPg1YzykoJqZiw5SbqL/81VRQW4a286h09eTGyIVvXJ + - IWbeot5NPPjwzkLRJwJSrhKxooUYWPiItYmeOu7MvfpEU9kI8879nM2EukYnEnom X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "105" + - "985" X-Ratelimit-Reset: - - "44" + - "29" status: 200 OK code: 200 duration: "" @@ -113,14 +122,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/pte-txs-53q + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/5bq-cui-e5t method: GET response: - body: '{"status":"paused","public_id":"pte-txs-53q","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887158,"type":"api","created_at":"2020-03-16T13:06:16.126704+00:00","modified_at":"2020-03-16T13:06:16.126704+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"5bq-cui-e5t","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206934,"type":"api","created_at":"2020-05-04T01:26:31.103710+00:00","modified_at":"2020-05-04T01:26:31.103710+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -131,13 +145,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:16 GMT + - Mon, 04 May 2020 01:26:31 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:16 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:31 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -146,19 +160,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - bZxgHnChon9vZm5xdRa4NrQAYSVWc7iQc54D228L4geTT/U2FwMh0nkSo8j+6vpL + - wFmrQbB6wLDPf1aNlKcgRoMicVhPlX6qIVwwvniX5cF7oyd+90s5trfE73Pzpvml X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "104" + - "984" X-Ratelimit-Reset: - - "44" + - "29" status: 200 OK code: 200 duration: "" @@ -166,14 +180,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/pte-txs-53q + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/5bq-cui-e5t method: GET response: - body: '{"status":"paused","public_id":"pte-txs-53q","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887158,"type":"api","created_at":"2020-03-16T13:06:16.126704+00:00","modified_at":"2020-03-16T13:06:16.126704+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"5bq-cui-e5t","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206934,"type":"api","created_at":"2020-05-04T01:26:31.103710+00:00","modified_at":"2020-05-04T01:26:31.103710+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -184,13 +203,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:16 GMT + - Mon, 04 May 2020 01:26:31 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:16 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:31 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -199,19 +218,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - sAPKocoLMDEnM5qY2PL6SCQ+dkENYAR/6IistAQ5iiTU/UnJHAba158nxOvVRvKJ + - 6qTaw+brNWWnKD6ULH8747/TVkPK0wedRsruOmMITJcYBkJ/Eac9bUO9jP1Btfl5 X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "103" + - "983" X-Ratelimit-Reset: - - "44" + - "29" status: 200 OK code: 200 duration: "" @@ -219,14 +238,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/pte-txs-53q + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/5bq-cui-e5t method: GET response: - body: '{"status":"paused","public_id":"pte-txs-53q","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887158,"type":"api","created_at":"2020-03-16T13:06:16.126704+00:00","modified_at":"2020-03-16T13:06:16.126704+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","overall_state_modified":"2020-03-16T13:06:17.090334+00:00","overall_state":2,"config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"5bq-cui-e5t","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206934,"type":"api","created_at":"2020-05-04T01:26:31.103710+00:00","modified_at":"2020-05-04T01:26:31.103710+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -237,13 +261,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:17 GMT + - Mon, 04 May 2020 01:26:31 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:17 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:31 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -252,34 +276,39 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 7/pC7B9bYAY6HGz006Bg+ZrYGMZFiH1gxYQ0jMSpdzevd2r/Iy3Bkt2FGvLL5qId + - kqXz3OvR7iajEJOdRFWpzJtcDHRumYwGfjdF12Vd65Xt1uV9T6lEO/K0lkxmcRvl X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "102" + - "982" X-Ratelimit-Reset: - - "43" + - "29" status: 200 OK code: 200 duration: "" - request: - body: '{"public_ids":["pte-txs-53q"]}' + body: | + {"public_ids":["5bq-cui-e5t"]} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - DeleteTests User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-03-16T13:06:17.299571+00:00","public_id":"pte-txs-53q"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-04T01:26:31.816248+00:00","public_id":"5bq-cui-e5t"}]}' headers: Cache-Control: - no-cache @@ -290,13 +319,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:17 GMT + - Mon, 04 May 2020 01:26:32 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:17 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:31 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -305,9 +334,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - zDaLXgTwOglSG/+LeCisOhDwAOr7D4UzTY02i97kQg3V5W3f2nMLfChR6yLoaPN1 + - eORbNuNjI+uNwQ5fL4WiSFLQTO+rx/Fd8RRk0TnSyEY4gQIkjrXIuJ1XAoOa+8yj X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -317,7 +346,7 @@ interactions: X-Ratelimit-Remaining: - "117" X-Ratelimit-Reset: - - "43" + - "29" status: 200 OK code: 200 duration: "" @@ -325,9 +354,13 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/pte-txs-53q + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/5bq-cui-e5t method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -341,7 +374,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:17 GMT + - Mon, 04 May 2020 01:26:32 GMT Dd-Pool: - dogweb Pragma: @@ -353,17 +386,17 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "101" + - "981" X-Ratelimit-Reset: - - "43" + - "28" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Updated.yaml b/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Updated.yaml index e1ac57486..debc03330 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Updated.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_Updated.yaml @@ -2,19 +2,23 @@ version: 1 interactions: - request: - body: '{"name":"name for synthetics test ssl","type":"api","subtype":"ssl","tags":["foo:bar","baz"],"config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"message":"Notify - @datadog.user","options":{"tick_every":60,"accept_self_signed":true},"locations":["aws:eu-central-1"],"status":"paused"}' + body: | + {"config":{"assertions":[{"operator":"isInMoreThan","target":30,"type":"certificate"}],"request":{"host":"datadoghq.com","port":443},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test ssl","options":{"accept_self_signed":true,"tick_every":60},"status":"paused","subtype":"ssl","tags":["foo:bar","baz"],"type":"api"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - CreateTest User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"8b6-t2t-7mu","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics test ssl","monitor_id":16887159,"type":"api","created_at":"2020-03-16T13:06:17.964498+00:00","modified_at":"2020-03-16T13:06:17.964498+00:00","subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"tdz-5ha-7bq","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics test ssl","monitor_id":18206935,"type":"api","created_at":"2020-05-04T01:26:32.329525+00:00","modified_at":"2020-05-04T01:26:32.329525+00:00","subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -25,13 +29,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:18 GMT + - Mon, 04 May 2020 01:26:32 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:17 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:32 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -40,9 +44,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - yqCkAb2Y8/4OgTSGYvedTl/k5gsPukDI7OLTlGSm9adIbRDVlGb00Ve5DDv9ImFD + - WyM4veckZw3QTGGZ+Ro8psXMR12RERTyuAWc4KNrn9Mfk0tQy+xf5Ofi04GlB+uh X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -52,7 +56,7 @@ interactions: X-Ratelimit-Remaining: - "116" X-Ratelimit-Reset: - - "43" + - "28" status: 200 OK code: 200 duration: "" @@ -60,14 +64,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/8b6-t2t-7mu + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/tdz-5ha-7bq method: GET response: - body: '{"status":"paused","public_id":"8b6-t2t-7mu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887159,"type":"api","created_at":"2020-03-16T13:06:17.964498+00:00","modified_at":"2020-03-16T13:06:17.964498+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"tdz-5ha-7bq","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206935,"type":"api","created_at":"2020-05-04T01:26:32.329525+00:00","modified_at":"2020-05-04T01:26:32.329525+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -78,13 +87,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:18 GMT + - Mon, 04 May 2020 01:26:32 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:18 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:32 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -93,19 +102,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - BQaWiIhDCyK3JbvyPZudxtMuoedbvOKE6tb5GJMfo6GT4EOQ8qx9lqgA4UCxp88q + - FiLv+OaMPfXL1uddbn+9yDPMV5awac1EEhAgzXF2ZG6GNVh7KFUCM+HhGv6IDSg0 X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "100" + - "980" X-Ratelimit-Reset: - - "42" + - "28" status: 200 OK code: 200 duration: "" @@ -113,14 +122,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/8b6-t2t-7mu + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/tdz-5ha-7bq method: GET response: - body: '{"status":"paused","public_id":"8b6-t2t-7mu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887159,"type":"api","created_at":"2020-03-16T13:06:17.964498+00:00","modified_at":"2020-03-16T13:06:17.964498+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"tdz-5ha-7bq","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206935,"type":"api","created_at":"2020-05-04T01:26:32.329525+00:00","modified_at":"2020-05-04T01:26:32.329525+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -131,13 +145,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:18 GMT + - Mon, 04 May 2020 01:26:32 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:18 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:32 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -146,19 +160,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - KKdI9UAf8fC5q7osIllxNui0A1CUm45w7mZBz+tu6Vlp/ga+Q6ZXvY0JoJlUBVi+ + - Z91NUpPIZnIQ9h7lBFWBkEPGVUEsn4/i71imPPwrChu4RPI5uNM5HGuodISK1HBR X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "99" + - "979" X-Ratelimit-Reset: - - "42" + - "28" status: 200 OK code: 200 duration: "" @@ -166,14 +180,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/8b6-t2t-7mu + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/tdz-5ha-7bq method: GET response: - body: '{"status":"paused","public_id":"8b6-t2t-7mu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887159,"type":"api","created_at":"2020-03-16T13:06:17.964498+00:00","modified_at":"2020-03-16T13:06:17.964498+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"tdz-5ha-7bq","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206935,"type":"api","created_at":"2020-05-04T01:26:32.329525+00:00","modified_at":"2020-05-04T01:26:32.329525+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -184,13 +203,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:18 GMT + - Mon, 04 May 2020 01:26:32 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:18 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:32 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -199,19 +218,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - DAk/CQntZmry+u4cYsuVOELuKFo1I3NzKRNwPlY9WvlbH+rffk5VylB8tKDaSRWP + - 5gIeAyE850e1lqVwTAgwvudewR8EzuQd3qGaXsS2D0CKQVhFOIjBoeQYiH0qPohy X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "98" + - "978" X-Ratelimit-Reset: - - "42" + - "28" status: 200 OK code: 200 duration: "" @@ -219,14 +238,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/8b6-t2t-7mu + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/tdz-5ha-7bq method: GET response: - body: '{"status":"paused","public_id":"8b6-t2t-7mu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887159,"type":"api","created_at":"2020-03-16T13:06:17.964498+00:00","modified_at":"2020-03-16T13:06:17.964498+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"tdz-5ha-7bq","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206935,"type":"api","created_at":"2020-05-04T01:26:32.329525+00:00","modified_at":"2020-05-04T01:26:32.329525+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -237,13 +261,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:18 GMT + - Mon, 04 May 2020 01:26:32 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:18 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:32 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -252,36 +276,40 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - cQFL4MaIw90DmTTH7z4Gqhr8PBtz47vyzddN9k7nXjUK2yrLiBjbdIgydUT8r1ut + - J7vOWsxZd7Grxzg2TIaQpn2nGjrOScgI4Kwzur8V2oOTYInX6xbVT4leinNkGLPk X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "97" + - "977" X-Ratelimit-Reset: - - "42" + - "28" status: 200 OK code: 200 duration: "" - request: - body: '{"name":"updated name","type":"api","subtype":"ssl","tags":["foo:bar","foo","env:test"],"config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"message":"Notify - @pagerduty","options":{"tick_every":60,"accept_self_signed":false},"locations":["aws:eu-central-1"],"status":"live"}' + body: | + {"config":{"assertions":[{"operator":"isInMoreThan","target":60,"type":"certificate"}],"request":{"host":"datadoghq.com","port":443},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"updated name","options":{"accept_self_signed":false,"tick_every":60},"status":"live","subtype":"ssl","tags":["foo:bar","foo","env:test"],"type":"api"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - UpdateTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/8b6-t2t-7mu + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/tdz-5ha-7bq method: PUT response: - body: '{"status":"live","public_id":"8b6-t2t-7mu","tags":["foo:bar","foo","env:test"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","deleted_at":null,"name":"updated name","monitor_id":16887159,"type":"api","created_at":"2020-03-16T13:06:17.964498+00:00","modified_at":"2020-03-16T13:06:18.915868+00:00","subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' + body: '{"status":"live","public_id":"tdz-5ha-7bq","tags":["foo:bar","foo","env:test"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","deleted_at":null,"name":"updated name","monitor_id":18206935,"type":"api","created_at":"2020-05-04T01:26:32.329525+00:00","modified_at":"2020-05-04T01:26:33.003280+00:00","subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -292,13 +320,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:18 GMT + - Mon, 04 May 2020 01:26:33 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:18 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:32 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -307,19 +335,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 0Ldh7zbvTvxG6fwW0tw8N7mZPnI2XNOUoKCE8H0O1+b4UJVtdo0G52qWoFveZXDz + - 7vC9CD2UnUYbC7cu05B95RgDyGt2vcRq8GQJgBahx4BAPKzA8OvLqEF8NdaLccla X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "500" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "118" + - "498" X-Ratelimit-Reset: - - "42" + - "28" status: 200 OK code: 200 duration: "" @@ -327,14 +355,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/8b6-t2t-7mu + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/tdz-5ha-7bq method: GET response: - body: '{"status":"live","public_id":"8b6-t2t-7mu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name","monitor_id":16887159,"type":"api","created_at":"2020-03-16T13:06:17.964498+00:00","modified_at":"2020-03-16T13:06:18.915868+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","overall_state_modified":"2020-03-16T13:06:19.173718+00:00","overall_state":2,"config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' + body: '{"status":"live","public_id":"tdz-5ha-7bq","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name","monitor_id":18206935,"type":"api","created_at":"2020-05-04T01:26:32.329525+00:00","modified_at":"2020-05-04T01:26:33.003280+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -345,13 +378,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:19 GMT + - Mon, 04 May 2020 01:26:33 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:19 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:33 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -360,19 +393,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - HtltRxB6FWULKbr8JD/35HKWhI+dqAFQg/rNpMbjeMOPUq5j5iWk+nIs8OwDOqUR + - 5gIeAyE850e1lqVwTAgwvudewR8EzuQd3qGaXsS2D0CKQVhFOIjBoeQYiH0qPohy X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "96" + - "976" X-Ratelimit-Reset: - - "41" + - "27" status: 200 OK code: 200 duration: "" @@ -380,14 +413,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/8b6-t2t-7mu + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/tdz-5ha-7bq method: GET response: - body: '{"status":"live","public_id":"8b6-t2t-7mu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name","monitor_id":16887159,"type":"api","created_at":"2020-03-16T13:06:17.964498+00:00","modified_at":"2020-03-16T13:06:18.915868+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","overall_state_modified":"2020-03-16T13:06:19.313944+00:00","overall_state":2,"config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' + body: '{"status":"live","public_id":"tdz-5ha-7bq","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name","monitor_id":18206935,"type":"api","created_at":"2020-05-04T01:26:32.329525+00:00","modified_at":"2020-05-04T01:26:33.003280+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -398,13 +436,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:19 GMT + - Mon, 04 May 2020 01:26:33 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:19 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:33 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -413,19 +451,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - FB5oGxuL9E/cplxahdQnU5Nw5E7KX0Smq18it9qYKIt8BXsSloE0IpDRA39tfQwn + - bZImwKnIO3sUAXCuyRs9fWaEMDsBOTeSFh5dFNajdvBKpGDGzy05mj4PBPSf18hx X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "95" + - "975" X-Ratelimit-Reset: - - "41" + - "27" status: 200 OK code: 200 duration: "" @@ -433,14 +471,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/8b6-t2t-7mu + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/tdz-5ha-7bq method: GET response: - body: '{"status":"live","public_id":"8b6-t2t-7mu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name","monitor_id":16887159,"type":"api","created_at":"2020-03-16T13:06:17.964498+00:00","modified_at":"2020-03-16T13:06:18.915868+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","overall_state_modified":"2020-03-16T13:06:19.484058+00:00","overall_state":2,"config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' + body: '{"status":"live","public_id":"tdz-5ha-7bq","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name","monitor_id":18206935,"type":"api","created_at":"2020-05-04T01:26:32.329525+00:00","modified_at":"2020-05-04T01:26:33.003280+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -451,13 +494,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:19 GMT + - Mon, 04 May 2020 01:26:33 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:19 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:33 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -466,19 +509,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - YCJuwY9AAFMveejFq3DmCuXNgWrXpDBQxqXi3LxQxaHO16MK3yMSWa14TOuRlDjy + - ztq+F8HwxRthTKNo0l2MCEDK5uwvgQzF00nWu49lHsBM51hGZBm/pPILDqupy+Xd X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "94" + - "974" X-Ratelimit-Reset: - - "41" + - "27" status: 200 OK code: 200 duration: "" @@ -486,14 +529,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/8b6-t2t-7mu + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/tdz-5ha-7bq method: GET response: - body: '{"status":"live","public_id":"8b6-t2t-7mu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"updated - name","monitor_id":16887159,"type":"api","created_at":"2020-03-16T13:06:17.964498+00:00","modified_at":"2020-03-16T13:06:18.915868+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","overall_state_modified":"2020-03-16T13:06:19.693301+00:00","overall_state":2,"config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' + body: '{"status":"live","public_id":"tdz-5ha-7bq","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"updated name","monitor_id":18206935,"type":"api","created_at":"2020-05-04T01:26:32.329525+00:00","modified_at":"2020-05-04T01:26:33.003280+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":60}]},"options":{"accept_self_signed":false,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -504,13 +552,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:19 GMT + - Mon, 04 May 2020 01:26:33 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:19 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:33 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -519,34 +567,39 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Wi4QF3nhe5s0sRyfZvyTHLc/3mQu/jJVn8BZnev44SXt+VBNA1+haKi5VcNZFpaP + - fLh2Ki8TBaqqP7azNnKugW2P+FqYhl36RGg8m8syr+2I6kNse5gXxG00+xylWppT X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "93" + - "973" X-Ratelimit-Reset: - - "41" + - "27" status: 200 OK code: 200 duration: "" - request: - body: '{"public_ids":["8b6-t2t-7mu"]}' + body: | + {"public_ids":["tdz-5ha-7bq"]} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - DeleteTests User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-03-16T13:06:19.883541+00:00","public_id":"8b6-t2t-7mu"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-04T01:26:33.747641+00:00","public_id":"tdz-5ha-7bq"}]}' headers: Cache-Control: - no-cache @@ -557,13 +610,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:19 GMT + - Mon, 04 May 2020 01:26:34 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:19 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:33 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -572,9 +625,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - btzHvL7Rg/f/n1wMP2CFVXsuErrwOO9p2hvsBofLQbxzRkmZbfvXcB18pURNtIOI + - NueLa2zkdBcl9S7BHrRuWyjAeR9iWgPFe330KTY6Cp0/yUhjUktbxu5rG2fG6gBk X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -584,7 +637,7 @@ interactions: X-Ratelimit-Remaining: - "116" X-Ratelimit-Reset: - - "41" + - "27" status: 200 OK code: 200 duration: "" @@ -592,9 +645,13 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/8b6-t2t-7mu + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/tdz-5ha-7bq method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -608,7 +665,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:20 GMT + - Mon, 04 May 2020 01:26:34 GMT Dd-Pool: - dogweb Pragma: @@ -620,17 +677,17 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "92" + - "972" X-Ratelimit-Reset: - - "40" + - "26" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_importBasic.yaml b/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_importBasic.yaml index 84cb9855e..0e7390c40 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_importBasic.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsSSLTest_importBasic.yaml @@ -2,19 +2,23 @@ version: 1 interactions: - request: - body: '{"name":"name for synthetics test ssl","type":"api","subtype":"ssl","tags":["foo:bar","baz"],"config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"message":"Notify - @datadog.user","options":{"tick_every":60,"accept_self_signed":true},"locations":["aws:eu-central-1"],"status":"paused"}' + body: | + {"config":{"assertions":[{"operator":"isInMoreThan","target":30,"type":"certificate"}],"request":{"host":"datadoghq.com","port":443},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"name for synthetics test ssl","options":{"accept_self_signed":true,"tick_every":60},"status":"paused","subtype":"ssl","tags":["foo:bar","baz"],"type":"api"} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - CreateTest User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"wpg-jaf-mwb","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"name for synthetics test ssl","monitor_id":16887167,"type":"api","created_at":"2020-03-16T13:06:38.213624+00:00","modified_at":"2020-03-16T13:06:38.213624+00:00","subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"eix-nk2-b6d","tags":["foo:bar","baz"],"org_id":242643,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"name for synthetics test ssl","monitor_id":18206938,"type":"api","created_at":"2020-05-04T01:26:37.467715+00:00","modified_at":"2020-05-04T01:26:37.467715+00:00","subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -25,13 +29,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -40,9 +44,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - LSmCynIhKaei2ZXhUwyt9n5ny5nHZCYRNYsTU4+Q86mceDsWCQtfUVf4lac22qNa + - A5a5htKhTUF1FdBQZRUZl4RVawKwk2RUtaZz3EDBmdXc0X6i0O7TBEBWn4bIBQ01 X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -50,9 +54,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "112" + - "113" X-Ratelimit-Reset: - - "22" + - "23" status: 200 OK code: 200 duration: "" @@ -60,14 +64,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/wpg-jaf-mwb + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/eix-nk2-b6d method: GET response: - body: '{"status":"paused","public_id":"wpg-jaf-mwb","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887167,"type":"api","created_at":"2020-03-16T13:06:38.213624+00:00","modified_at":"2020-03-16T13:06:38.213624+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"eix-nk2-b6d","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206938,"type":"api","created_at":"2020-05-04T01:26:37.467715+00:00","modified_at":"2020-05-04T01:26:37.467715+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -78,13 +87,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -93,19 +102,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - ErnxdXQi+pjNvJU00qnaaPgTN904IR+BI4NeCvSijs0uGcTaVMOpPOuObFW+gkC6 + - dPTJBBDv5jeY1gnH1FisDpda5Hi0boOGbsHxIOi4qkMt+QLOH7F7P7MeSr40vXZ0 X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "76" + - "957" X-Ratelimit-Reset: - - "22" + - "23" status: 200 OK code: 200 duration: "" @@ -113,14 +122,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/wpg-jaf-mwb + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/eix-nk2-b6d method: GET response: - body: '{"status":"paused","public_id":"wpg-jaf-mwb","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887167,"type":"api","created_at":"2020-03-16T13:06:38.213624+00:00","modified_at":"2020-03-16T13:06:38.213624+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"eix-nk2-b6d","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206938,"type":"api","created_at":"2020-05-04T01:26:37.467715+00:00","modified_at":"2020-05-04T01:26:37.467715+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -131,13 +145,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -146,19 +160,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - J5PL0LnJukdy69mckjXi3cjye/YJX2hkoCBkqKQi+tYjrsXYELx6DfDD11fhyjYF + - GAK1J4mJd/EBZfEK4rqUw9OeB9GOeKgSyrXGtzNUi5zrv5sHYU56xJgA4bcbtgUA X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "74" + - "956" X-Ratelimit-Reset: - - "22" + - "23" status: 200 OK code: 200 duration: "" @@ -166,14 +180,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/wpg-jaf-mwb + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/eix-nk2-b6d method: GET response: - body: '{"status":"paused","public_id":"wpg-jaf-mwb","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887167,"type":"api","created_at":"2020-03-16T13:06:38.213624+00:00","modified_at":"2020-03-16T13:06:38.213624+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"eix-nk2-b6d","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206938,"type":"api","created_at":"2020-05-04T01:26:37.467715+00:00","modified_at":"2020-05-04T01:26:37.467715+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -184,13 +203,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -199,19 +218,19 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - HIunaScoW4AWw8tnSbk8zc5V6c9XLV6++/KbgzaC4HIb212+evjUYL1yRLeLtS2T + - RngFxOd8mVeT14auLfzsH/6kz142QLoKkYXZjfmXpXDkZ/eN6uoCM3cTScXuFEa0 X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "72" + - "954" X-Ratelimit-Reset: - - "22" + - "23" status: 200 OK code: 200 duration: "" @@ -219,14 +238,19 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/wpg-jaf-mwb + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/eix-nk2-b6d method: GET response: - body: '{"status":"paused","public_id":"wpg-jaf-mwb","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","modified_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"name":"name - for synthetics test ssl","monitor_id":16887167,"type":"api","created_at":"2020-03-16T13:06:38.213624+00:00","modified_at":"2020-03-16T13:06:38.213624+00:00","created_by":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","id":1445416,"name":null},"subtype":"ssl","overall_state_modified":"2020-03-16T13:06:38.982312+00:00","overall_state":2,"config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' + body: '{"status":"paused","public_id":"eix-nk2-b6d","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","modified_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"name":"name for synthetics test ssl","monitor_id":18206938,"type":"api","created_at":"2020-05-04T01:26:37.467715+00:00","modified_at":"2020-05-04T01:26:37.467715+00:00","created_by":{"email":"sherzod.karimov@datadoghq.com","handle":"sherzod.karimov@datadoghq.com","id":1146666,"name":"Sherzod + Karimov"},"subtype":"ssl","config":{"variables":[],"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}]},"options":{"accept_self_signed":true,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -237,13 +261,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:38 GMT + - Mon, 04 May 2020 01:26:37 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:38 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -252,34 +276,39 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - nwn8Akm+cp12Jtby9xyfYjHWK2KZDWf5LxY+SMa+2NK6hVIBcKsVHXjynaTEG+o0 + - fqgAnnBv1js3TBerHAS1jOASlx3n1xB+hOOrFOLO2ZaBfZ3rktA3gzUaBetB5haL X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "69" + - "952" X-Ratelimit-Reset: - - "22" + - "23" status: 200 OK code: 200 duration: "" - request: - body: '{"public_ids":["wpg-jaf-mwb"]}' + body: | + {"public_ids":["eix-nk2-b6d"]} form: {} headers: + Accept: + - application/json Content-Type: - application/json + Dd-Operation-Id: + - DeleteTests User-Agent: - - Datadog/dev/terraform (go1.13) + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2020-03-16T13:06:39.182318+00:00","public_id":"wpg-jaf-mwb"}]}' + body: '{"deleted_tests":[{"deleted_at":"2020-05-04T01:26:38.060223+00:00","public_id":"eix-nk2-b6d"}]}' headers: Cache-Control: - no-cache @@ -290,13 +319,13 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:39 GMT + - Mon, 04 May 2020 01:26:38 GMT Dd-Pool: - dogweb Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Mon, 23-Mar-2020 13:06:39 GMT; + - DD-PSHARD=156; Max-Age=604800; Path=/; expires=Mon, 11-May-2020 01:26:37 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -305,9 +334,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - UmZMvwWLI5lgbGFBnw6J7jqO5hwyrvVF8Un8TwZ8TRQQ6jetE/6GVTSaoSUmQWRg + - bZImwKnIO3sUAXCuyRs9fWaEMDsBOTeSFh5dFNajdvBKpGDGzy05mj4PBPSf18hx X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -315,9 +344,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "112" + - "113" X-Ratelimit-Reset: - - "21" + - "22" status: 200 OK code: 200 duration: "" @@ -325,9 +354,13 @@ interactions: body: "" form: {} headers: + Accept: + - application/json + Dd-Operation-Id: + - GetTest User-Agent: - - Datadog/dev/terraform (go1.13) - url: https://api.datadoghq.com/api/v1/synthetics/tests/wpg-jaf-mwb + - datadog-api-client-go/1.0.0-beta.1+dev.1 (go go1.13.4; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/eix-nk2-b6d method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -341,7 +374,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 16 Mar 2020 13:06:39 GMT + - Mon, 04 May 2020 01:26:38 GMT Dd-Pool: - dogweb Pragma: @@ -353,17 +386,17 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.2282030" + - "35.2457590" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "120" + - "1000" X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "64" + - "945" X-Ratelimit-Reset: - - "21" + - "22" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/resource_datadog_synthetics_test_.go b/datadog/resource_datadog_synthetics_test_.go index adea31cfe..721b83c50 100644 --- a/datadog/resource_datadog_synthetics_test_.go +++ b/datadog/resource_datadog_synthetics_test_.go @@ -8,9 +8,9 @@ import ( "strconv" "strings" + datadogV1 "github.com/DataDog/datadog-api-client-go/api/v1/datadog" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" - "github.com/zorkian/go-datadog-api" ) var syntheticsTypes = []string{"api", "browser"} @@ -135,9 +135,9 @@ func syntheticsTestOptions() *schema.Schema { return &schema.Schema{ Type: schema.TypeMap, DiffSuppressFunc: func(key, old, new string, d *schema.ResourceData) bool { - if key == "options.follow_redirects" || key == "options.accept_self_signed" { + if key == "options.follow_redirects" || key == "options.accept_self_signed" || key == "options.allow_insecure" { // TF nested schemas is limited to string values only - // follow_redirects and accept_self_signed being booleans in Datadog json api + // follow_redirects, accept_self_signed and allow_insecure being booleans in Datadog json api // we need a sane way to convert from boolean to string // and from string to boolean oldValue, err1 := strconv.ParseBool(old) @@ -172,6 +172,16 @@ func syntheticsTestOptions() *schema.Schema { errs = append(errs, fmt.Errorf("%q.accept_self_signed must be either true or false, got: %s", key, acceptSelfSignedStr)) } } + allowInsecureRaw, ok := val.(map[string]interface{})["allow_insecure"] + if ok { + allowInsecureStr := convertToString(allowInsecureRaw) + switch allowInsecureStr { + case "true", "false": + break + default: + errs = append(errs, fmt.Errorf("%q.allow_insecure must be either true or false, got: %s", key, allowInsecureStr)) + } + } return }, Optional: true, @@ -197,6 +207,10 @@ func syntheticsTestOptions() *schema.Schema { Type: schema.TypeBool, Optional: true, }, + "allow_insecure": { + Type: schema.TypeBool, + Optional: true, + }, }, }, } @@ -204,10 +218,11 @@ func syntheticsTestOptions() *schema.Schema { func resourceDatadogSyntheticsTestCreate(d *schema.ResourceData, meta interface{}) error { providerConf := meta.(*ProviderConfiguration) - client := providerConf.CommunityClient + datadogClientV1 := providerConf.DatadogClientV1 + authV1 := providerConf.AuthV1 syntheticsTest := buildSyntheticsTestStruct(d) - createdSyntheticsTest, err := client.CreateSyntheticsTest(syntheticsTest) + createdSyntheticsTest, _, err := datadogClientV1.SyntheticsApi.CreateTest(authV1).Body(*syntheticsTest).Execute() if err != nil { // Note that Id won't be set, so no state will be saved. return translateClientError(err, "error creating synthetics test") @@ -223,9 +238,10 @@ func resourceDatadogSyntheticsTestCreate(d *schema.ResourceData, meta interface{ func resourceDatadogSyntheticsTestRead(d *schema.ResourceData, meta interface{}) error { providerConf := meta.(*ProviderConfiguration) - client := providerConf.CommunityClient + datadogClientV1 := providerConf.DatadogClientV1 + authV1 := providerConf.AuthV1 - syntheticsTest, err := client.GetSyntheticsTest(d.Id()) + syntheticsTest, _, err := datadogClientV1.SyntheticsApi.GetTest(authV1, d.Id()).Execute() if err != nil { if strings.Contains(err.Error(), "404 Not Found") { // Delete the resource from the local state since it doesn't exist anymore in the actual state @@ -235,17 +251,18 @@ func resourceDatadogSyntheticsTestRead(d *schema.ResourceData, meta interface{}) return translateClientError(err, "error getting synthetics test") } - updateSyntheticsTestLocalState(d, syntheticsTest) + updateSyntheticsTestLocalState(d, &syntheticsTest) return nil } func resourceDatadogSyntheticsTestUpdate(d *schema.ResourceData, meta interface{}) error { providerConf := meta.(*ProviderConfiguration) - client := providerConf.CommunityClient + datadogClientV1 := providerConf.DatadogClientV1 + authV1 := providerConf.AuthV1 syntheticsTest := buildSyntheticsTestStruct(d) - if _, err := client.UpdateSyntheticsTest(d.Id(), syntheticsTest); err != nil { + if _, _, err := datadogClientV1.SyntheticsApi.UpdateTest(authV1, d.Id()).Body(*syntheticsTest).Execute(); err != nil { // If the Update callback returns with or without an error, the full state is saved. translateClientError(err, "error updating synthetics test") } @@ -256,9 +273,11 @@ func resourceDatadogSyntheticsTestUpdate(d *schema.ResourceData, meta interface{ func resourceDatadogSyntheticsTestDelete(d *schema.ResourceData, meta interface{}) error { providerConf := meta.(*ProviderConfiguration) - client := providerConf.CommunityClient + datadogClientV1 := providerConf.DatadogClientV1 + authV1 := providerConf.AuthV1 - if err := client.DeleteSyntheticsTests([]string{d.Id()}); err != nil { + syntheticsDeleteTestsPayload := datadogV1.SyntheticsDeleteTestsPayload{PublicIds: &[]string{d.Id()}} + if _, _, err := datadogClientV1.SyntheticsApi.DeleteTests(authV1).Body(syntheticsDeleteTestsPayload).Execute(); err != nil { // The resource is assumed to still exist, and all prior state is preserved. return translateClientError(err, "error deleting synthetics test") } @@ -267,8 +286,8 @@ func resourceDatadogSyntheticsTestDelete(d *schema.ResourceData, meta interface{ return nil } -func isTargetOfTypeInt(assertionType string) bool { - for _, intTargetAssertionType := range []string{"responseTime", "statusCode", "certificate"} { +func isTargetOfTypeInt(assertionType datadogV1.SyntheticsAssertionType) bool { + for _, intTargetAssertionType := range []datadogV1.SyntheticsAssertionType{datadogV1.SYNTHETICSASSERTIONTYPE_RESPONSE_TIME, datadogV1.SYNTHETICSASSERTIONTYPE_STATUS_CODE, datadogV1.SYNTHETICSASSERTIONTYPE_CERTIFICATE} { if assertionType == intTargetAssertionType { return true } @@ -276,10 +295,10 @@ func isTargetOfTypeInt(assertionType string) bool { return false } -func buildSyntheticsTestStruct(d *schema.ResourceData) *datadog.SyntheticsTest { - request := datadog.SyntheticsRequest{} +func buildSyntheticsTestStruct(d *schema.ResourceData) *datadogV1.SyntheticsTestDetails { + request := datadogV1.NewSyntheticsTestRequest() if attr, ok := d.GetOk("request.method"); ok { - request.SetMethod(attr.(string)) + request.SetMethod(datadogV1.HTTPMethod(attr.(string))) } if attr, ok := d.GetOk("request.url"); ok { request.SetUrl(attr.(string)) @@ -289,64 +308,62 @@ func buildSyntheticsTestStruct(d *schema.ResourceData) *datadog.SyntheticsTest { } if attr, ok := d.GetOk("request.timeout"); ok { timeoutInt, _ := strconv.Atoi(attr.(string)) - request.SetTimeout(timeoutInt) + request.SetTimeout(float64(timeoutInt)) } if attr, ok := d.GetOk("request.host"); ok { request.SetHost(attr.(string)) } if attr, ok := d.GetOk("request.port"); ok { portInt, _ := strconv.Atoi(attr.(string)) - request.SetPort(portInt) + request.SetPort(int64(portInt)) } if attr, ok := d.GetOk("request_headers"); ok { headers := attr.(map[string]interface{}) if len(headers) > 0 { - request.Headers = make(map[string]string) + request.SetHeaders(make(map[string]string)) } for k, v := range headers { - request.Headers[k] = v.(string) + request.GetHeaders()[k] = v.(string) } } - config := datadog.SyntheticsConfig{ - Request: &request, - Variables: []interface{}{}, - } + config := datadogV1.NewSyntheticsTestConfig([]datadogV1.SyntheticsAssertion{}, *request) + config.SetVariables([]datadogV1.SyntheticsBrowserVariable{}) - if attr, ok := d.GetOk("assertions"); ok { + if attr, ok := d.GetOk("assertions"); ok && attr != nil { for _, attr := range attr.([]interface{}) { - assertion := datadog.SyntheticsAssertion{} + assertion := datadogV1.SyntheticsAssertion{} assertionMap := attr.(map[string]interface{}) if v, ok := assertionMap["type"]; ok { assertionType := v.(string) - assertion.Type = &assertionType + assertion.SetType(datadogV1.SyntheticsAssertionType(assertionType)) } if v, ok := assertionMap["property"]; ok { assertionProperty := v.(string) - assertion.Property = &assertionProperty + assertion.SetProperty(assertionProperty) } if v, ok := assertionMap["operator"]; ok { assertionOperator := v.(string) - assertion.Operator = &assertionOperator + assertion.SetOperator(datadogV1.SyntheticsAssertionOperator(assertionOperator)) } if v, ok := assertionMap["target"]; ok { - if isTargetOfTypeInt(*assertion.Type) { + if isTargetOfTypeInt(assertion.GetType()) { assertionTargetInt, _ := strconv.Atoi(v.(string)) - assertion.Target = assertionTargetInt - } else if *assertion.Operator == "validates" { - assertion.Target = json.RawMessage(v.(string)) + assertion.SetTarget(assertionTargetInt) + } else if assertion.GetOperator() == datadogV1.SYNTHETICSASSERTIONOPERATOR_VALIDATES { + assertion.SetTarget(v.(string)) } else { - assertion.Target = v.(string) + assertion.SetTarget(v.(string)) } } config.Assertions = append(config.Assertions, assertion) } } - options := datadog.SyntheticsOptions{} + options := datadogV1.NewSyntheticsTestOptions() if attr, ok := d.GetOk("options.tick_every"); ok { tickEvery, _ := strconv.Atoi(attr.(string)) - options.SetTickEvery(tickEvery) + options.SetTickEvery(datadogV1.SyntheticsTickInterval(tickEvery)) } if attr, ok := d.GetOk("options.follow_redirects"); ok { // follow_redirects is a string ("true" or "false") in TF state @@ -357,11 +374,11 @@ func buildSyntheticsTestStruct(d *schema.ResourceData) *datadog.SyntheticsTest { } if attr, ok := d.GetOk("options.min_failure_duration"); ok { minFailureDuration, _ := strconv.Atoi(attr.(string)) - options.SetMinFailureDuration(minFailureDuration) + options.SetMinFailureDuration(int64(minFailureDuration)) } if attr, ok := d.GetOk("options.min_location_failed"); ok { minLocationFailed, _ := strconv.Atoi(attr.(string)) - options.SetMinLocationFailed(minLocationFailed) + options.SetMinLocationFailed(int64(minLocationFailed)) } if attr, ok := d.GetOk("options.accept_self_signed"); ok { // for some reason, attr is equal to "1" or "0" in TF 0.11 @@ -369,29 +386,34 @@ func buildSyntheticsTestStruct(d *schema.ResourceData) *datadog.SyntheticsTest { acceptSelfSigned, _ := strconv.ParseBool(attr.(string)) options.SetAcceptSelfSigned(acceptSelfSigned) } + if attr, ok := d.GetOk("options.allow_insecure"); ok { + // for some reason, attr is equal to "1" or "0" in TF 0.11 + // so ParseBool is required for retro-compatibility + allowInsecure, _ := strconv.ParseBool(attr.(string)) + options.SetAllowInsecure(allowInsecure) + } if attr, ok := d.GetOk("device_ids"); ok { - var deviceIds []string + var deviceIds []datadogV1.SyntheticsDeviceID for _, s := range attr.([]interface{}) { - deviceIds = append(deviceIds, s.(string)) + deviceIds = append(deviceIds, datadogV1.SyntheticsDeviceID(s.(string))) } - options.DeviceIds = deviceIds + options.DeviceIds = &deviceIds } - syntheticsTest := datadog.SyntheticsTest{ - Name: datadog.String(d.Get("name").(string)), - Type: datadog.String(d.Get("type").(string)), - Config: &config, - Options: &options, - Message: datadog.String(d.Get("message").(string)), - Status: datadog.String(d.Get("status").(string)), - } + syntheticsTest := datadogV1.NewSyntheticsTestDetails() + syntheticsTest.SetName(d.Get("name").(string)) + syntheticsTest.SetType(datadogV1.SyntheticsTestDetailsType(d.Get("type").(string))) + syntheticsTest.SetConfig(*config) + syntheticsTest.SetOptions(*options) + syntheticsTest.SetMessage(d.Get("message").(string)) + syntheticsTest.SetStatus(datadogV1.SyntheticsTestPauseStatus(d.Get("status").(string))) if attr, ok := d.GetOk("locations"); ok { var locations []string for _, s := range attr.([]interface{}) { locations = append(locations, s.(string)) } - syntheticsTest.Locations = locations + syntheticsTest.SetLocations(locations) } var tags []string @@ -400,21 +422,21 @@ func buildSyntheticsTestStruct(d *schema.ResourceData) *datadog.SyntheticsTest { tags = append(tags, s.(string)) } } - syntheticsTest.Tags = tags + syntheticsTest.SetTags(tags) if attr, ok := d.GetOk("subtype"); ok { - syntheticsTest.Subtype = datadog.String(attr.(string)) + syntheticsTest.SetSubtype(datadogV1.SyntheticsTestDetailsSubType(attr.(string))) } else { - if *syntheticsTest.Type == "api" { + if syntheticsTest.GetType() == "api" { // we want to default to "http" subtype when type is "api" - syntheticsTest.Subtype = datadog.String("http") + syntheticsTest.SetSubtype(datadogV1.SYNTHETICSTESTDETAILSSUBTYPE_HTTP) } } - return &syntheticsTest + return syntheticsTest } -func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *datadog.SyntheticsTest) { +func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *datadogV1.SyntheticsTestDetails) { d.Set("type", syntheticsTest.GetType()) if syntheticsTest.HasSubtype() { d.Set("subtype", syntheticsTest.GetSubtype()) @@ -426,7 +448,7 @@ func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *data localRequest["body"] = actualRequest.GetBody() } if actualRequest.HasMethod() { - localRequest["method"] = actualRequest.GetMethod() + localRequest["method"] = convertToString(actualRequest.GetMethod()) } if actualRequest.HasTimeout() { localRequest["timeout"] = convertToString(actualRequest.GetTimeout()) @@ -447,17 +469,17 @@ func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *data var localAssertions []map[string]string for _, assertion := range actualAssertions { localAssertion := make(map[string]string) - if assertion.HasOperator() { - localAssertion["operator"] = assertion.GetOperator() + if v, ok := assertion.GetOperatorOk(); ok { + localAssertion["operator"] = string(*v) } if assertion.HasProperty() { localAssertion["property"] = assertion.GetProperty() } - if target := assertion.Target; target != nil { + if target := assertion.GetTarget(); target != nil { localAssertion["target"] = convertToString(target) } - if assertion.HasType() { - localAssertion["type"] = assertion.GetType() + if v, ok := assertion.GetTypeOk(); ok { + localAssertion["type"] = string(*v) } localAssertions = append(localAssertions, localAssertion) } @@ -484,6 +506,9 @@ func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *data if actualOptions.HasAcceptSelfSigned() { localOptions["accept_self_signed"] = convertToString(actualOptions.GetAcceptSelfSigned()) } + if actualOptions.HasAllowInsecure() { + localOptions["allow_insecure"] = convertToString(actualOptions.GetAllowInsecure()) + } d.Set("options", localOptions) @@ -504,6 +529,8 @@ func convertToString(i interface{}) string { return strconv.FormatFloat(v, 'f', -1, 64) case string: return v + case datadogV1.HTTPMethod: + return string(v) default: // TODO: manage target for JSON body assertions valStrr, err := json.Marshal(v) diff --git a/datadog/resource_datadog_synthetics_test_test.go b/datadog/resource_datadog_synthetics_test_test.go index bdff0ad10..d0de2aae2 100644 --- a/datadog/resource_datadog_synthetics_test_test.go +++ b/datadog/resource_datadog_synthetics_test_test.go @@ -719,10 +719,11 @@ resource "datadog_synthetics_test" "bar" { func testSyntheticsTestExists(accProvider *schema.Provider) resource.TestCheckFunc { return func(s *terraform.State) error { providerConf := accProvider.Meta().(*ProviderConfiguration) - client := providerConf.CommunityClient + datadogClientV1 := providerConf.DatadogClientV1 + authV1 := providerConf.AuthV1 for _, r := range s.RootModule().Resources { - if _, err := client.GetSyntheticsTest(r.Primary.ID); err != nil { + if _, _, err := datadogClientV1.SyntheticsApi.GetTest(authV1, r.Primary.ID).Execute(); err != nil { return fmt.Errorf("received an error retrieving synthetics test %s", err) } } @@ -733,10 +734,11 @@ func testSyntheticsTestExists(accProvider *schema.Provider) resource.TestCheckFu func testSyntheticsTestIsDestroyed(accProvider *schema.Provider) resource.TestCheckFunc { return func(s *terraform.State) error { providerConf := accProvider.Meta().(*ProviderConfiguration) - client := providerConf.CommunityClient + datadogClientV1 := providerConf.DatadogClientV1 + authV1 := providerConf.AuthV1 for _, r := range s.RootModule().Resources { - if _, err := client.GetSyntheticsTest(r.Primary.ID); err != nil { + if _, _, err := datadogClientV1.SyntheticsApi.GetTest(authV1, r.Primary.ID).Execute(); err != nil { if strings.Contains(err.Error(), "404 Not Found") { continue } diff --git a/website/docs/r/synthetics.html.markdown b/website/docs/r/synthetics.html.markdown index be8f7f278..7d502e568 100644 --- a/website/docs/r/synthetics.html.markdown +++ b/website/docs/r/synthetics.html.markdown @@ -140,6 +140,7 @@ The following arguments are supported: - `min_failure_duration` - (Optional) How long the test should be in failure before alerting (integer, number of seconds, max 7200). Default is 0. - `min_location_failed` - (Optional) Threshold below which a synthetics test is allowed to fail before sending notifications - `accept_self_signed` - (Optional) For type=ssl, true or false + - `allow_insecure` - (Optional) For type=api, true or false. Allow your HTTP test go on with connection even if there is an error when validating the certificate. - `locations` - (Required) Please refer to [Datadog documentation](https://docs.datadoghq.com/synthetics/api_test/#request) for available locations (e.g. "aws:eu-central-1") - `device_ids` - (Optional) "laptop_large", "tablet" or "mobile_small" (only available if type=browser) - `status` - (Required) "live", "paused"