From 464293619b9938a530b68f89aead8892cde72b46 Mon Sep 17 00:00:00 2001 From: Kevin Zou Date: Wed, 2 Nov 2022 17:11:45 -0400 Subject: [PATCH 01/10] add body_type to synthetics test request, update tests --- datadog/resource_datadog_synthetics_test_.go | 17 +++++ ...stAccDatadogSyntheticsAPITest_Basic.freeze | 2 +- ...TestAccDatadogSyntheticsAPITest_Basic.yaml | 30 ++++---- ...csAPITest_BasicNewAssertionsOptions.freeze | 2 +- ...ticsAPITest_BasicNewAssertionsOptions.yaml | 30 ++++---- ...AccDatadogSyntheticsAPITest_Updated.freeze | 2 +- ...stAccDatadogSyntheticsAPITest_Updated.yaml | 57 +++++++-------- ...APITest_UpdatedNewAssertionsOptions.freeze | 2 +- ...csAPITest_UpdatedNewAssertionsOptions.yaml | 57 +++++++-------- ...atadogSyntheticsAPITest_importBasic.freeze | 2 +- ...cDatadogSyntheticsAPITest_importBasic.yaml | 34 ++++----- ...lobalVariableFromTest_LocalVariable.freeze | 2 +- ...sGlobalVariableFromTest_LocalVariable.yaml | 62 +++++++++-------- ...dogSyntheticsTestMultistepApi_Basic.freeze | 2 +- ...tadogSyntheticsTestMultistepApi_Basic.yaml | 69 +++++++++++-------- .../resource_datadog_synthetics_test_test.go | 3 + go.mod | 2 +- go.sum | 2 + 18 files changed, 208 insertions(+), 169 deletions(-) diff --git a/datadog/resource_datadog_synthetics_test_.go b/datadog/resource_datadog_synthetics_test_.go index 6df3e76de1..4ab61a846e 100644 --- a/datadog/resource_datadog_synthetics_test_.go +++ b/datadog/resource_datadog_synthetics_test_.go @@ -143,6 +143,11 @@ func syntheticsTestRequest() *schema.Resource { Type: schema.TypeString, Optional: true, }, + "body_type": { + Description: "Request body type. Supported values are `text/plain`, `application/json`, `text/xml`, `text/html`, `application/x-www-form-urlencoded`, `GraphQL`, or `None`.", + Type: schema.TypeString, + Optional: true, + }, "timeout": { Description: "Timeout in seconds for the test. Defaults to `60`.", Type: schema.TypeInt, @@ -1252,6 +1257,9 @@ func buildSyntheticsAPITestStruct(d *schema.ResourceData) *datadogV1.SyntheticsA if attr, ok := k.GetOkWith("body"); ok { request.SetBody(attr.(string)) } + if attr, ok := k.GetOkWith("body_type"); ok { + request.SetBodyType(attr.(string)) + } if attr, ok := k.GetOkWith("timeout"); ok { request.SetTimeout(float64(attr.(int))) } @@ -1349,6 +1357,9 @@ func buildSyntheticsAPITestStruct(d *schema.ResourceData) *datadogV1.SyntheticsA request.SetMethod(datadogV1.HTTPMethod(requestMap["method"].(string))) request.SetUrl(requestMap["url"].(string)) request.SetBody(requestMap["body"].(string)) + if v, ok := requestMap["body_type"].(string); ok && v != "" { + request.SetBodyType(v) + } request.SetTimeout(float64(requestMap["timeout"].(int))) request.SetAllowInsecure(requestMap["allow_insecure"].(bool)) request.SetFollowRedirects(requestMap["follow_redirects"].(bool)) @@ -1690,6 +1701,9 @@ func buildSyntheticsBrowserTestStruct(d *schema.ResourceData) *datadogV1.Synthet if attr, ok := k.GetOkWith("body"); ok { request.SetBody(attr.(string)) } + if attr, ok := k.GetOkWith("body_type"); ok { + request.SetBodyType(attr.(string)) + } if attr, ok := k.GetOkWith("timeout"); ok { request.SetTimeout(float64(attr.(int))) } @@ -2043,6 +2057,9 @@ func buildLocalRequest(request datadogV1.SyntheticsTestRequest) map[string]inter if request.HasBody() { localRequest["body"] = request.GetBody() } + if request.HasBodyType() { + localRequest["body_type"] = request.GetBodyType() + } if request.HasMethod() { localRequest["method"] = convertToString(request.GetMethod()) } diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze index 18bdf9f7e5..c3c5a0d2a4 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze @@ -1 +1 @@ -2022-09-06T21:35:48.291253+02:00 \ No newline at end of file +2022-11-02T16:52:02.489724-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml index e0196d9537..875e059f9d 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: 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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","monitor_priority":5,"restricted_roles":["abc"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","bodyType":"text/plain","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322-monitor","monitor_priority":5,"restricted_roles":["abc"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"4eu-idk-4gn","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","monitor_id":84053586,"type":"api","created_at":"2022-09-06T19:35:50.384494+00:00","modified_at":"2022-09-06T19:35:50.384494+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"56s-jdw-chh","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322","monitor_id":101765597,"type":"api","created_at":"2022-11-02T20:52:04.290143+00:00","modified_at":"2022-11-02T20:52:04.290143+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/4eu-idk-4gn + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/56s-jdw-chh method: GET response: body: | - {"status":"paused","public_id":"4eu-idk-4gn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","monitor_id":84053586,"type":"api","created_at":"2022-09-06T19:35:50.384494+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:50.384494+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"56s-jdw-chh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322","monitor_id":101765597,"type":"api","created_at":"2022-11-02T20:52:04.290143+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T20:52:04.290143+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -44,11 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/4eu-idk-4gn + url: https://api.datadoghq.com/api/v1/synthetics/tests/56s-jdw-chh method: GET response: body: | - {"status":"paused","public_id":"4eu-idk-4gn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","monitor_id":84053586,"type":"api","created_at":"2022-09-06T19:35:50.384494+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:50.384494+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"56s-jdw-chh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322","monitor_id":101765597,"type":"api","created_at":"2022-11-02T20:52:04.290143+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T20:52:04.290143+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -61,11 +61,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/4eu-idk-4gn + url: https://api.datadoghq.com/api/v1/synthetics/tests/56s-jdw-chh method: GET response: body: | - {"status":"paused","public_id":"4eu-idk-4gn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","monitor_id":84053586,"type":"api","created_at":"2022-09-06T19:35:50.384494+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:50.384494+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"56s-jdw-chh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322","monitor_id":101765597,"type":"api","created_at":"2022-11-02T20:52:04.290143+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T20:52:04.290143+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +78,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/4eu-idk-4gn + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/56s-jdw-chh method: GET response: body: | - {"status":"paused","public_id":"4eu-idk-4gn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","monitor_id":84053586,"type":"api","created_at":"2022-09-06T19:35:50.384494+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:50.384494+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"56s-jdw-chh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322","monitor_id":101765597,"type":"api","created_at":"2022-11-02T20:52:04.290143+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T20:52:04.290143+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -91,7 +91,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["4eu-idk-4gn"]} + {"public_ids":["56s-jdw-chh"]} form: {} headers: Accept: @@ -101,7 +101,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-09-06T19:35:57.521320+00:00","public_id":"4eu-idk-4gn"}]}' + body: | + {"deleted_tests":[{"deleted_at":"2022-11-02T20:52:05.971229+00:00","public_id":"56s-jdw-chh"}]} headers: Content-Type: - application/json @@ -114,11 +115,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/4eu-idk-4gn + url: https://api.datadoghq.com/api/v1/synthetics/tests/56s-jdw-chh method: GET response: - body: | - {"errors":["Synthetics test not found"]} + body: '{"errors":["Synthetics test not found"]}' headers: Content-Type: - application/json diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze index 7ca977e932..c3c5a0d2a4 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze @@ -1 +1 @@ -2022-09-06T21:35:48.291246+02:00 \ No newline at end of file +2022-11-02T16:52:02.489724-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml index 41e87f64c0..fc76512f30 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"},{"operator":"validatesJSONPath","target":{"jsonPath":"something","operator":"moreThan","targetValue":5},"type":"body"},{"operator":"isNot","target":200,"type":"statusCode"},{"operator":"matches","target":"20[04]","type":"statusCode"},{"operator":"doesNotMatch","target":"20[04]","type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"$.mykey","operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}"},"type":"body"}],"configVariables":[{"example":"1234","name":"TEST","pattern":"{{ numeric(4) }}","type":"text"}],"request":{"basicAuth":{"password":"secret","type":"web","username":"admin"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1662492948","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"},{"operator":"validatesJSONPath","target":{"jsonPath":"something","operator":"moreThan","targetValue":5},"type":"body"},{"operator":"isNot","target":200,"type":"statusCode"},{"operator":"matches","target":"20[04]","type":"statusCode"},{"operator":"doesNotMatch","target":"20[04]","type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"$.mykey","operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}"},"type":"body"}],"configVariables":[{"example":"1234","name":"TEST","pattern":"{{ numeric(4) }}","type":"text"}],"request":{"basicAuth":{"password":"secret","type":"web","username":"admin"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1667422322","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"7sy-c6r-c3u","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1662492948","monitor_id":84053589,"type":"api","created_at":"2022-09-06T19:35:50.638252+00:00","modified_at":"2022-09-06T19:35:50.638252+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"4ep-9vy-5t2","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1667422322","monitor_id":101765596,"type":"api","created_at":"2022-11-02T20:52:04.005703+00:00","modified_at":"2022-11-02T20:52:04.005703+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/7sy-c6r-c3u + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/4ep-9vy-5t2 method: GET response: body: | - {"status":"paused","public_id":"7sy-c6r-c3u","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1662492948","monitor_id":84053589,"type":"api","created_at":"2022-09-06T19:35:50.638252+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:50.638252+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"4ep-9vy-5t2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1667422322","monitor_id":101765596,"type":"api","created_at":"2022-11-02T20:52:04.005703+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T20:52:04.005703+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -44,11 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/7sy-c6r-c3u + url: https://api.datadoghq.com/api/v1/synthetics/tests/4ep-9vy-5t2 method: GET response: body: | - {"status":"paused","public_id":"7sy-c6r-c3u","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1662492948","monitor_id":84053589,"type":"api","created_at":"2022-09-06T19:35:50.638252+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:50.638252+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"4ep-9vy-5t2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1667422322","monitor_id":101765596,"type":"api","created_at":"2022-11-02T20:52:04.005703+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T20:52:04.005703+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -61,11 +61,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/7sy-c6r-c3u + url: https://api.datadoghq.com/api/v1/synthetics/tests/4ep-9vy-5t2 method: GET response: body: | - {"status":"paused","public_id":"7sy-c6r-c3u","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1662492948","monitor_id":84053589,"type":"api","created_at":"2022-09-06T19:35:50.638252+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:50.638252+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"4ep-9vy-5t2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1667422322","monitor_id":101765596,"type":"api","created_at":"2022-11-02T20:52:04.005703+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T20:52:04.005703+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -78,11 +78,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/7sy-c6r-c3u + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/4ep-9vy-5t2 method: GET response: body: | - {"status":"paused","public_id":"7sy-c6r-c3u","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1662492948","monitor_id":84053589,"type":"api","created_at":"2022-09-06T19:35:50.638252+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:50.638252+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"4ep-9vy-5t2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1667422322","monitor_id":101765596,"type":"api","created_at":"2022-11-02T20:52:04.005703+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T20:52:04.005703+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -91,7 +91,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["7sy-c6r-c3u"]} + {"public_ids":["4ep-9vy-5t2"]} form: {} headers: Accept: @@ -101,7 +101,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-09-06T19:35:59.101937+00:00","public_id":"7sy-c6r-c3u"}]}' + body: | + {"deleted_tests":[{"deleted_at":"2022-11-02T20:52:05.898607+00:00","public_id":"4ep-9vy-5t2"}]} headers: Content-Type: - application/json @@ -114,11 +115,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/7sy-c6r-c3u + url: https://api.datadoghq.com/api/v1/synthetics/tests/4ep-9vy-5t2 method: GET response: - body: | - {"errors":["Synthetics test not found"]} + body: '{"errors":["Synthetics test not found"]}' headers: Content-Type: - application/json diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze index d6980d67b1..e3158eeb72 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze @@ -1 +1 @@ -2022-09-06T21:35:30.248736+02:00 \ No newline at end of file +2022-11-02T17:11:33.417177-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml index d6b59e441b..48b85a2e32 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: 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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","monitor_priority":5,"restricted_roles":["abc"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","bodyType":"text/plain","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-monitor","monitor_priority":5,"restricted_roles":["abc"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"8gh-3qw-3gu","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493","monitor_id":101767722,"type":"api","created_at":"2022-11-02T21:11:35.503069+00:00","modified_at":"2022-11-02T21:11:35.503069+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/8gh-3qw-3gu method: GET response: body: | - {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"8gh-3qw-3gu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493","monitor_id":101767722,"type":"api","created_at":"2022-11-02T21:11:35.503069+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:35.503069+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -44,11 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/8gh-3qw-3gu method: GET response: body: | - {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"8gh-3qw-3gu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493","monitor_id":101767722,"type":"api","created_at":"2022-11-02T21:11:35.503069+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:35.503069+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -61,11 +61,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/8gh-3qw-3gu method: GET response: body: | - {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"8gh-3qw-3gu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493","monitor_id":101767722,"type":"api","created_at":"2022-11-02T21:11:35.503069+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:35.503069+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +78,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/8gh-3qw-3gu method: GET response: body: | - {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"8gh-3qw-3gu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493","monitor_id":101767722,"type":"api","created_at":"2022-11-02T21:11:35.503069+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:35.503069+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -95,11 +95,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/8gh-3qw-3gu method: GET response: body: | - {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"8gh-3qw-3gu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493","monitor_id":101767722,"type":"api","created_at":"2022-11-02T21:11:35.503069+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:35.503069+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -112,11 +112,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/8gh-3qw-3gu method: GET response: body: | - {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"8gh-3qw-3gu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493","monitor_id":101767722,"type":"api","created_at":"2022-11-02T21:11:35.503069+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:35.503069+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -125,17 +125,18 @@ interactions: duration: "" - request: body: | - {"config":{"assertions":[{"operator":"isNot","target":500,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://docs.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-updated","options":{"ci":{"executionRule":"non_blocking"},"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} + {"config":{"assertions":[{"operator":"isNot","target":500,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://docs.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-updated","options":{"ci":{"executionRule":"non_blocking"},"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/8gh-3qw-3gu method: PUT response: - body: '{"status":"live","public_id":"znr-6ih-3a5","tags":["foo:bar","foo","env:test"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-updated","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","modified_at":"2022-09-06T19:35:35.865362+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"tick_every":900,"min_failure_duration":10}}' + body: | + {"status":"live","public_id":"8gh-3qw-3gu","tags":["foo:bar","foo","env:test"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-updated","monitor_id":101767722,"type":"api","created_at":"2022-11-02T21:11:35.503069+00:00","modified_at":"2022-11-02T21:11:37.558205+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"tick_every":900,"min_failure_duration":10}} headers: Content-Type: - application/json @@ -148,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/8gh-3qw-3gu method: GET response: body: | - {"status":"live","public_id":"znr-6ih-3a5","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-updated","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:35.865362+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} + {"status":"live","public_id":"8gh-3qw-3gu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-updated","monitor_id":101767722,"type":"api","created_at":"2022-11-02T21:11:35.503069+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:37.558205+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} headers: Content-Type: - application/json @@ -165,11 +166,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/8gh-3qw-3gu method: GET response: body: | - {"status":"live","public_id":"znr-6ih-3a5","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-updated","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:35.865362+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} + {"status":"live","public_id":"8gh-3qw-3gu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-updated","monitor_id":101767722,"type":"api","created_at":"2022-11-02T21:11:35.503069+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:37.558205+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} headers: Content-Type: - application/json @@ -182,11 +183,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/8gh-3qw-3gu method: GET response: body: | - {"status":"live","public_id":"znr-6ih-3a5","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-updated","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:35.865362+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} + {"status":"live","public_id":"8gh-3qw-3gu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-updated","monitor_id":101767722,"type":"api","created_at":"2022-11-02T21:11:35.503069+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:37.558205+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} headers: Content-Type: - application/json @@ -195,7 +196,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["znr-6ih-3a5"]} + {"public_ids":["8gh-3qw-3gu"]} form: {} headers: Accept: @@ -205,7 +206,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-09-06T19:35:44.065152+00:00","public_id":"znr-6ih-3a5"}]}' + body: | + {"deleted_tests":[{"deleted_at":"2022-11-02T21:11:39.304867+00:00","public_id":"8gh-3qw-3gu"}]} headers: Content-Type: - application/json @@ -218,11 +220,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/8gh-3qw-3gu method: GET response: - body: | - {"errors":["Synthetics test not found"]} + body: '{"errors":["Synthetics test not found"]}' headers: Content-Type: - application/json diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze index 74aef2e5cb..755196d75e 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze @@ -1 +1 @@ -2022-09-06T21:35:30.248403+02:00 \ No newline at end of file +2022-11-02T17:11:33.417216-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml index d3c17d39fb..f9e0cbcac2 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"},{"operator":"validatesJSONPath","target":{"jsonPath":"something","operator":"moreThan","targetValue":5},"type":"body"},{"operator":"isNot","target":200,"type":"statusCode"},{"operator":"matches","target":"20[04]","type":"statusCode"},{"operator":"doesNotMatch","target":"20[04]","type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"$.mykey","operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}"},"type":"body"}],"configVariables":[{"example":"1234","name":"TEST","pattern":"{{ numeric(4) }}","type":"text"}],"request":{"basicAuth":{"password":"secret","type":"web","username":"admin"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1662492930","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"},{"operator":"validatesJSONPath","target":{"jsonPath":"something","operator":"moreThan","targetValue":5},"type":"body"},{"operator":"isNot","target":200,"type":"statusCode"},{"operator":"matches","target":"20[04]","type":"statusCode"},{"operator":"doesNotMatch","target":"20[04]","type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"$.mykey","operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}"},"type":"body"}],"configVariables":[{"example":"1234","name":"TEST","pattern":"{{ numeric(4) }}","type":"text"}],"request":{"basicAuth":{"password":"secret","type":"web","username":"admin"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667423493","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"ewz-xcy-hfj","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1662492930","monitor_id":84053521,"type":"api","created_at":"2022-09-06T19:35:32.250287+00:00","modified_at":"2022-09-06T19:35:32.250287+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"6vg-kzq-gby","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667423493","monitor_id":101767721,"type":"api","created_at":"2022-11-02T21:11:35.352447+00:00","modified_at":"2022-11-02T21:11:35.352447+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/ewz-xcy-hfj + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/6vg-kzq-gby method: GET response: body: | - {"status":"paused","public_id":"ewz-xcy-hfj","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1662492930","monitor_id":84053521,"type":"api","created_at":"2022-09-06T19:35:32.250287+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.250287+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"6vg-kzq-gby","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667423493","monitor_id":101767721,"type":"api","created_at":"2022-11-02T21:11:35.352447+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:35.352447+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -44,11 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/ewz-xcy-hfj + url: https://api.datadoghq.com/api/v1/synthetics/tests/6vg-kzq-gby method: GET response: body: | - {"status":"paused","public_id":"ewz-xcy-hfj","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1662492930","monitor_id":84053521,"type":"api","created_at":"2022-09-06T19:35:32.250287+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.250287+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"6vg-kzq-gby","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667423493","monitor_id":101767721,"type":"api","created_at":"2022-11-02T21:11:35.352447+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:35.352447+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -61,11 +61,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/ewz-xcy-hfj + url: https://api.datadoghq.com/api/v1/synthetics/tests/6vg-kzq-gby method: GET response: body: | - {"status":"paused","public_id":"ewz-xcy-hfj","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1662492930","monitor_id":84053521,"type":"api","created_at":"2022-09-06T19:35:32.250287+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.250287+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"6vg-kzq-gby","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667423493","monitor_id":101767721,"type":"api","created_at":"2022-11-02T21:11:35.352447+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:35.352447+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -78,11 +78,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/ewz-xcy-hfj + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/6vg-kzq-gby method: GET response: body: | - {"status":"paused","public_id":"ewz-xcy-hfj","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1662492930","monitor_id":84053521,"type":"api","created_at":"2022-09-06T19:35:32.250287+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.250287+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"6vg-kzq-gby","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667423493","monitor_id":101767721,"type":"api","created_at":"2022-11-02T21:11:35.352447+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:35.352447+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -95,11 +95,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/ewz-xcy-hfj + url: https://api.datadoghq.com/api/v1/synthetics/tests/6vg-kzq-gby method: GET response: body: | - {"status":"paused","public_id":"ewz-xcy-hfj","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1662492930","monitor_id":84053521,"type":"api","created_at":"2022-09-06T19:35:32.250287+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.250287+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"6vg-kzq-gby","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667423493","monitor_id":101767721,"type":"api","created_at":"2022-11-02T21:11:35.352447+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:35.352447+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -112,11 +112,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/ewz-xcy-hfj + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/6vg-kzq-gby method: GET response: body: | - {"status":"paused","public_id":"ewz-xcy-hfj","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1662492930","monitor_id":84053521,"type":"api","created_at":"2022-09-06T19:35:32.250287+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.250287+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"6vg-kzq-gby","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667423493","monitor_id":101767721,"type":"api","created_at":"2022-11-02T21:11:35.352447+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:35.352447+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -125,17 +125,18 @@ interactions: duration: "" - request: body: | - {"config":{"assertions":[{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"}],"configVariables":[],"request":{"certificate":{"cert":{"content":"content-certificate-updated","filename":"Provided in Terraform config"},"key":{"content":"content-key-updated","filename":"key-updated"}},"method":"GET","timeout":60,"url":"https://docs.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1662492930updated","options":{"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} + {"config":{"assertions":[{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"}],"configVariables":[],"request":{"certificate":{"cert":{"content":"content-certificate-updated","filename":"Provided in Terraform config"},"key":{"content":"content-key-updated","filename":"key-updated"}},"method":"GET","timeout":60,"url":"https://docs.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667423493updated","options":{"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/ewz-xcy-hfj + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/6vg-kzq-gby method: PUT response: - body: '{"status":"live","public_id":"ewz-xcy-hfj","tags":["foo:bar","foo","env:test"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1662492930updated","monitor_id":84053521,"type":"api","created_at":"2022-09-06T19:35:32.250287+00:00","modified_at":"2022-09-06T19:35:35.580459+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}}' + body: | + {"status":"live","public_id":"6vg-kzq-gby","tags":["foo:bar","foo","env:test"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667423493updated","monitor_id":101767721,"type":"api","created_at":"2022-11-02T21:11:35.352447+00:00","modified_at":"2022-11-02T21:11:37.574024+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}} headers: Content-Type: - application/json @@ -148,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/ewz-xcy-hfj + url: https://api.datadoghq.com/api/v1/synthetics/tests/6vg-kzq-gby method: GET response: body: | - {"status":"live","public_id":"ewz-xcy-hfj","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1662492930updated","monitor_id":84053521,"type":"api","created_at":"2022-09-06T19:35:32.250287+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:35.580459+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}} + {"status":"live","public_id":"6vg-kzq-gby","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667423493updated","monitor_id":101767721,"type":"api","created_at":"2022-11-02T21:11:35.352447+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:37.574024+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}} headers: Content-Type: - application/json @@ -165,11 +166,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/ewz-xcy-hfj + url: https://api.datadoghq.com/api/v1/synthetics/tests/6vg-kzq-gby method: GET response: body: | - {"status":"live","public_id":"ewz-xcy-hfj","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1662492930updated","monitor_id":84053521,"type":"api","created_at":"2022-09-06T19:35:32.250287+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:35.580459+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}} + {"status":"live","public_id":"6vg-kzq-gby","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667423493updated","monitor_id":101767721,"type":"api","created_at":"2022-11-02T21:11:35.352447+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:37.574024+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}} headers: Content-Type: - application/json @@ -182,11 +183,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/ewz-xcy-hfj + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/6vg-kzq-gby method: GET response: body: | - {"status":"live","public_id":"ewz-xcy-hfj","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1662492930updated","monitor_id":84053521,"type":"api","created_at":"2022-09-06T19:35:32.250287+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:35.580459+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}} + {"status":"live","public_id":"6vg-kzq-gby","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667423493updated","monitor_id":101767721,"type":"api","created_at":"2022-11-02T21:11:35.352447+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:37.574024+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}} headers: Content-Type: - application/json @@ -195,7 +196,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["ewz-xcy-hfj"]} + {"public_ids":["6vg-kzq-gby"]} form: {} headers: Accept: @@ -205,7 +206,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-09-06T19:35:43.093371+00:00","public_id":"ewz-xcy-hfj"}]}' + body: | + {"deleted_tests":[{"deleted_at":"2022-11-02T21:11:39.158991+00:00","public_id":"6vg-kzq-gby"}]} headers: Content-Type: - application/json @@ -218,11 +220,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/ewz-xcy-hfj + url: https://api.datadoghq.com/api/v1/synthetics/tests/6vg-kzq-gby method: GET response: - body: | - {"errors":["Synthetics test not found"]} + body: '{"errors":["Synthetics test not found"]}' headers: Content-Type: - application/json diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze index d862ae23bf..767a1a8893 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze @@ -1 +1 @@ -2022-09-06T21:36:18.248855+02:00 \ No newline at end of file +2022-11-02T17:11:21.642851-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml index 7df2521d08..68a037c60c 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: 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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","monitor_priority":5,"restricted_roles":["abc"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","bodyType":"text/plain","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481-monitor","monitor_priority":5,"restricted_roles":["abc"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"pcp-8cn-frh","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481","monitor_id":101767666,"type":"api","created_at":"2022-11-02T21:11:23.028598+00:00","modified_at":"2022-11-02T21:11:23.028598+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/pp5-7hd-zge + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/pcp-8cn-frh method: GET response: body: | - {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"pcp-8cn-frh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481","monitor_id":101767666,"type":"api","created_at":"2022-11-02T21:11:23.028598+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:23.028598+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -44,11 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/pp5-7hd-zge + url: https://api.datadoghq.com/api/v1/synthetics/tests/pcp-8cn-frh method: GET response: body: | - {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"pcp-8cn-frh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481","monitor_id":101767666,"type":"api","created_at":"2022-11-02T21:11:23.028598+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:23.028598+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -61,11 +61,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/pp5-7hd-zge + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/pcp-8cn-frh method: GET response: body: | - {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"pcp-8cn-frh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481","monitor_id":101767666,"type":"api","created_at":"2022-11-02T21:11:23.028598+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:23.028598+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +78,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/pp5-7hd-zge + url: https://api.datadoghq.com/api/v1/synthetics/tests/pcp-8cn-frh method: GET response: body: | - {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"pcp-8cn-frh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481","monitor_id":101767666,"type":"api","created_at":"2022-11-02T21:11:23.028598+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:23.028598+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -95,11 +95,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/pp5-7hd-zge + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/pcp-8cn-frh method: GET response: body: | - {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"pcp-8cn-frh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481","monitor_id":101767666,"type":"api","created_at":"2022-11-02T21:11:23.028598+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:23.028598+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -108,7 +108,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["pp5-7hd-zge"]} + {"public_ids":["pcp-8cn-frh"]} form: {} headers: Accept: @@ -118,7 +118,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-09-06T19:36:28.391242+00:00","public_id":"pp5-7hd-zge"}]}' + body: | + {"deleted_tests":[{"deleted_at":"2022-11-02T21:11:25.309402+00:00","public_id":"pcp-8cn-frh"}]} headers: Content-Type: - application/json @@ -131,11 +132,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/pp5-7hd-zge + url: https://api.datadoghq.com/api/v1/synthetics/tests/pcp-8cn-frh method: GET response: - body: | - {"errors":["Synthetics test not found"]} + body: '{"errors":["Synthetics test not found"]}' headers: Content-Type: - application/json diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableFromTest_LocalVariable.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableFromTest_LocalVariable.freeze index e454f415f9..825281c66b 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableFromTest_LocalVariable.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableFromTest_LocalVariable.freeze @@ -1 +1 @@ -2022-09-13T20:00:51.367545+02:00 \ No newline at end of file +2022-11-02T17:11:04.503401-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableFromTest_LocalVariable.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableFromTest_LocalVariable.yaml index 3f561ac51e..de34353008 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableFromTest_LocalVariable.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableFromTest_LocalVariable.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[],"configVariables":[],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[{"field":"content-length","name":"LOCAL_VAR_EXTRACT","parser":{"type":"regex","value":".*"},"type":"http_header"}],"isCritical":false,"name":"First api step","request":{"allow_insecure":true,"body":"this is a body","follow_redirects":true,"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"}]},"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":60},"status":"paused","subtype":"multi","tags":[],"type":"api"} + {"config":{"assertions":[],"configVariables":[],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[{"field":"content-length","name":"LOCAL_VAR_EXTRACT","parser":{"type":"regex","value":".*"},"type":"http_header"}],"isCritical":false,"name":"First api step","request":{"allow_insecure":true,"body":"this is a body","follow_redirects":true,"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"}]},"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":60},"status":"paused","subtype":"multi","tags":[],"type":"api"} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"9bw-vck-5p9","tags":[],"org_id":321813,"locations":["aws:eu-central-1"],"message":"","deleted_at":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","monitor_id":86719615,"type":"api","created_at":"2022-09-13T18:00:54.595386+00:00","modified_at":"2022-09-13T18:00:54.595386+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"94v-6t6-psr","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"exi-8uc-a28","tags":[],"org_id":321813,"locations":["aws:eu-central-1"],"message":"","deleted_at":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464","monitor_id":101767628,"type":"api","created_at":"2022-11-02T21:11:05.988147+00:00","modified_at":"2022-11-02T21:11:05.988147+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4m7-ini-6vu","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/9bw-vck-5p9 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/exi-8uc-a28 method: GET response: body: | - {"status":"paused","public_id":"9bw-vck-5p9","tags":[],"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","monitor_id":86719615,"type":"api","created_at":"2022-09-13T18:00:54.595386+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-13T18:00:54.595386+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"94v-6t6-psr","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"exi-8uc-a28","tags":[],"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464","monitor_id":101767628,"type":"api","created_at":"2022-11-02T21:11:05.988147+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:05.988147+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4m7-ini-6vu","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -40,7 +40,7 @@ interactions: duration: "" - request: body: | - {"description":"a global variable from multistep test","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","parse_test_options":{"localVariableName":"LOCAL_VAR_EXTRACT","type":"local_variable"},"parse_test_public_id":"9bw-vck-5p9","tags":["foo:bar","baz"],"value":{"secure":false,"value":""}} + {"description":"a global variable from multistep test","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464","parse_test_options":{"localVariableName":"LOCAL_VAR_EXTRACT","type":"local_variable"},"parse_test_public_id":"exi-8uc-a28","tags":["foo:bar","baz"],"value":{"secure":false,"value":""}} form: {} headers: Accept: @@ -51,7 +51,7 @@ interactions: method: POST response: body: | - {"parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"is_totp":null,"value":{"secure":false,"value":""},"parse_test_public_id":"9bw-vck-5p9","parse_test_name":null,"type":"variable","id":"819f1d49-7f73-4c05-8567-3626a453c9a3","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051"} + {"parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"is_totp":null,"value":{"secure":false,"value":""},"parse_test_public_id":"exi-8uc-a28","parse_test_name":null,"type":"variable","id":"43f6e061-26db-4b84-8075-6db9f9248fb9","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464"} headers: Content-Type: - application/json @@ -64,10 +64,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/819f1d49-7f73-4c05-8567-3626a453c9a3 + url: https://api.datadoghq.com/api/v1/synthetics/variables/43f6e061-26db-4b84-8075-6db9f9248fb9 method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":"9bw-vck-5p9","is_totp":null,"id":"819f1d49-7f73-4c05-8567-3626a453c9a3","parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","created_at":"2022-09-13T18:00:55.115052+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-13T18:00:55.115052+00:00","value":{"secure":false,"value":""},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":"exi-8uc-a28","is_totp":null,"id":"43f6e061-26db-4b84-8075-6db9f9248fb9","parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464","created_at":"2022-11-02T21:11:06.280789+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:06.280789+00:00","value":{"secure":false,"value":""},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -80,10 +81,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/819f1d49-7f73-4c05-8567-3626a453c9a3 + url: https://api.datadoghq.com/api/v1/synthetics/variables/43f6e061-26db-4b84-8075-6db9f9248fb9 method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":"9bw-vck-5p9","is_totp":null,"id":"819f1d49-7f73-4c05-8567-3626a453c9a3","parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","created_at":"2022-09-13T18:00:55.115052+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-13T18:00:55.115052+00:00","value":{"secure":false,"value":""},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":"exi-8uc-a28","is_totp":null,"id":"43f6e061-26db-4b84-8075-6db9f9248fb9","parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464","created_at":"2022-11-02T21:11:06.280789+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:06.280789+00:00","value":{"secure":false,"value":""},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -96,10 +98,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/819f1d49-7f73-4c05-8567-3626a453c9a3 + url: https://api.datadoghq.com/api/v1/synthetics/variables/43f6e061-26db-4b84-8075-6db9f9248fb9 method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":"9bw-vck-5p9","is_totp":null,"id":"819f1d49-7f73-4c05-8567-3626a453c9a3","parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","created_at":"2022-09-13T18:00:55.115052+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-13T18:00:55.115052+00:00","value":{"secure":false,"value":""},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":"exi-8uc-a28","is_totp":null,"id":"43f6e061-26db-4b84-8075-6db9f9248fb9","parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464","created_at":"2022-11-02T21:11:06.280789+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:06.280789+00:00","value":{"secure":false,"value":""},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -112,11 +115,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/9bw-vck-5p9 + url: https://api.datadoghq.com/api/v1/synthetics/tests/exi-8uc-a28 method: GET response: body: | - {"status":"paused","public_id":"9bw-vck-5p9","tags":[],"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","monitor_id":86719615,"type":"api","created_at":"2022-09-13T18:00:54.595386+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-13T18:00:54.595386+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"94v-6t6-psr","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"tick_every":60,"min_location_failed":1}} + {"status":"paused","public_id":"exi-8uc-a28","tags":[],"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464","monitor_id":101767628,"type":"api","created_at":"2022-11-02T21:11:05.988147+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:05.988147+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4m7-ini-6vu","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"tick_every":60,"min_location_failed":1}} headers: Content-Type: - application/json @@ -129,11 +132,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/9bw-vck-5p9 + url: https://api.datadoghq.com/api/v1/synthetics/tests/exi-8uc-a28 method: GET response: body: | - {"status":"paused","public_id":"9bw-vck-5p9","tags":[],"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","monitor_id":86719615,"type":"api","created_at":"2022-09-13T18:00:54.595386+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-13T18:00:54.595386+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"94v-6t6-psr","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"tick_every":60,"min_location_failed":1}} + {"status":"paused","public_id":"exi-8uc-a28","tags":[],"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464","monitor_id":101767628,"type":"api","created_at":"2022-11-02T21:11:05.988147+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:05.988147+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4m7-ini-6vu","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"tick_every":60,"min_location_failed":1}} headers: Content-Type: - application/json @@ -146,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/9bw-vck-5p9 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/exi-8uc-a28 method: GET response: body: | - {"status":"paused","public_id":"9bw-vck-5p9","tags":[],"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","monitor_id":86719615,"type":"api","created_at":"2022-09-13T18:00:54.595386+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-13T18:00:54.595386+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"94v-6t6-psr","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"tick_every":60,"min_location_failed":1}} + {"status":"paused","public_id":"exi-8uc-a28","tags":[],"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464","monitor_id":101767628,"type":"api","created_at":"2022-11-02T21:11:05.988147+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:05.988147+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4m7-ini-6vu","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"tick_every":60,"min_location_failed":1}} headers: Content-Type: - application/json @@ -163,10 +166,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/819f1d49-7f73-4c05-8567-3626a453c9a3 + url: https://api.datadoghq.com/api/v1/synthetics/variables/43f6e061-26db-4b84-8075-6db9f9248fb9 method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":"9bw-vck-5p9","is_totp":null,"id":"819f1d49-7f73-4c05-8567-3626a453c9a3","parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","created_at":"2022-09-13T18:00:55.115052+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-13T18:00:55.115052+00:00","value":{"secure":false,"value":""},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":"exi-8uc-a28","is_totp":null,"id":"43f6e061-26db-4b84-8075-6db9f9248fb9","parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464","created_at":"2022-11-02T21:11:06.280789+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:06.280789+00:00","value":{"secure":false,"value":""},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -179,19 +183,19 @@ interactions: headers: Accept: - '*/*' - url: https://api.datadoghq.com/api/v1/synthetics/variables/819f1d49-7f73-4c05-8567-3626a453c9a3 + url: https://api.datadoghq.com/api/v1/synthetics/variables/43f6e061-26db-4b84-8075-6db9f9248fb9 method: DELETE response: - body: '{}' + body: "" headers: Content-Type: - - application/json + - text/html; charset=utf-8 status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["9bw-vck-5p9"]} + {"public_ids":["exi-8uc-a28"]} form: {} headers: Accept: @@ -202,7 +206,7 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"deleted_at":"2022-09-13T18:01:03.488705+00:00","public_id":"9bw-vck-5p9"}]} + {"deleted_tests":[{"deleted_at":"2022-11-02T21:11:09.231871+00:00","public_id":"exi-8uc-a28"}]} headers: Content-Type: - application/json @@ -215,10 +219,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/9bw-vck-5p9 + url: https://api.datadoghq.com/api/v1/synthetics/variables/43f6e061-26db-4b84-8075-6db9f9248fb9 method: GET response: - body: '{"errors":["Synthetics test not found"]}' + body: '{"errors":["Synthetics global variable not found"]}' headers: Content-Type: - application/json @@ -231,10 +235,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/819f1d49-7f73-4c05-8567-3626a453c9a3 + url: https://api.datadoghq.com/api/v1/synthetics/tests/exi-8uc-a28 method: GET response: - body: '{"errors": ["Synthetics global variable not found"]}' + body: '{"errors":["Synthetics test not found"]}' headers: Content-Type: - application/json diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze index 5b767102bc..272cfa3543 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze @@ -1 +1 @@ -2022-04-29T14:29:42.297762+02:00 \ No newline at end of file +2022-11-02T17:09:57.022312-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml index 98311b925e..393d5b63d0 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"a global variable","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382","tags":["foo:bar","baz"],"value":{"secure":false,"value":"variable-value"}} + {"description":"a global variable","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1667423397","tags":["foo:bar","baz"],"value":{"secure":false,"value":"variable-value"}} form: {} headers: Accept: @@ -13,7 +13,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/variables method: POST response: - body: '{"parse_test_options":null,"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"is_totp":null,"value":{"secure":false,"value":"variable-value"},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382"}' + body: | + {"parse_test_options":null,"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"is_totp":null,"value":{"secure":false,"value":"variable-value"},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"efbc0c8c-f684-41df-b21e-05536eded46c","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1667423397"} headers: Content-Type: - application/json @@ -26,10 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d + url: https://api.datadoghq.com/api/v1/synthetics/variables/efbc0c8c-f684-41df-b21e-05536eded46c method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382","created_at":"2022-04-29T12:29:57.159294+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:57.159294+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"efbc0c8c-f684-41df-b21e-05536eded46c","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1667423397","created_at":"2022-11-02T21:09:58.255825+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:09:58.255825+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -42,10 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d + url: https://api.datadoghq.com/api/v1/synthetics/variables/efbc0c8c-f684-41df-b21e-05536eded46c method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382","created_at":"2022-04-29T12:29:57.159294+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:57.159294+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"efbc0c8c-f684-41df-b21e-05536eded46c","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1667423397","created_at":"2022-11-02T21:09:58.255825+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:09:58.255825+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -54,7 +57,7 @@ interactions: duration: "" - request: body: | - {"config":{"assertions":[],"configVariables":[{"id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME","type":"global"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[{"field":"content-length","name":"VAR_EXTRACT","parser":{"type":"regex","value":".*"},"type":"http_header"}],"isCritical":false,"name":"First api step","request":{"allow_insecure":true,"basicAuth":{"accessKey":"sigv4-access-key","region":"sigv4-region","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","sessionToken":"sigv4-session-token","type":"sigv4"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"follow_redirects":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Second api step","request":{"allow_insecure":true,"body":"","follow_redirects":true,"method":"GET","timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","options":{"min_location_failed":1,"restricted_roles":["abc"],"tick_every":900},"status":"paused","subtype":"multi","tags":["multistep"],"type":"api"} + {"config":{"assertions":[],"configVariables":[{"id":"efbc0c8c-f684-41df-b21e-05536eded46c","name":"VARIABLE_NAME","type":"global"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[{"field":"content-length","name":"VAR_EXTRACT","parser":{"type":"regex","value":".*"},"type":"http_header"}],"isCritical":false,"name":"First api step","request":{"allow_insecure":true,"basicAuth":{"accessKey":"sigv4-access-key","region":"sigv4-region","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","sessionToken":"sigv4-session-token","type":"sigv4"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"follow_redirects":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Second api step","request":{"allow_insecure":true,"body":"","follow_redirects":true,"method":"GET","timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1667423397","options":{"min_location_failed":1,"restricted_roles":["abc"],"tick_every":900},"status":"paused","subtype":"multi","tags":["multistep"],"type":"api"} form: {} headers: Accept: @@ -64,7 +67,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/api method: POST response: - body: '{"status":"paused","public_id":"f2v-mbp-xf2","tags":["multistep"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","monitor_id":70157553,"type":"api","created_at":"2022-04-29T12:29:58.051539+00:00","modified_at":"2022-04-29T12:29:58.051539+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4ci-3uv-nsd","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"ebg-f4a-mpi","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}}' + body: | + {"status":"paused","public_id":"xv9-5xd-urz","tags":["multistep"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1667423397","monitor_id":101767587,"type":"api","created_at":"2022-11-02T21:09:58.723395+00:00","modified_at":"2022-11-02T21:09:58.723395+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"j8p-h4x-vwz","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"dkg-jc2-bpa","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"efbc0c8c-f684-41df-b21e-05536eded46c","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}} headers: Content-Type: - application/json @@ -77,10 +81,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/f2v-mbp-xf2 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/xv9-5xd-urz method: GET response: - body: '{"status":"paused","public_id":"f2v-mbp-xf2","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","monitor_id":70157553,"type":"api","created_at":"2022-04-29T12:29:58.051539+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:58.051539+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4ci-3uv-nsd","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"ebg-f4a-mpi","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}}' + body: | + {"status":"paused","public_id":"xv9-5xd-urz","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1667423397","monitor_id":101767587,"type":"api","created_at":"2022-11-02T21:09:58.723395+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:09:58.723395+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"j8p-h4x-vwz","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"dkg-jc2-bpa","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"efbc0c8c-f684-41df-b21e-05536eded46c","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}} headers: Content-Type: - application/json @@ -93,10 +98,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d + url: https://api.datadoghq.com/api/v1/synthetics/variables/efbc0c8c-f684-41df-b21e-05536eded46c method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382","created_at":"2022-04-29T12:29:57.159294+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:57.159294+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"efbc0c8c-f684-41df-b21e-05536eded46c","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1667423397","created_at":"2022-11-02T21:09:58.255825+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:09:58.255825+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -109,10 +115,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/f2v-mbp-xf2 + url: https://api.datadoghq.com/api/v1/synthetics/tests/xv9-5xd-urz method: GET response: - body: '{"status":"paused","public_id":"f2v-mbp-xf2","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","monitor_id":70157553,"type":"api","created_at":"2022-04-29T12:29:58.051539+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:58.051539+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4ci-3uv-nsd","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"ebg-f4a-mpi","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}}' + body: | + {"status":"paused","public_id":"xv9-5xd-urz","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1667423397","monitor_id":101767587,"type":"api","created_at":"2022-11-02T21:09:58.723395+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:09:58.723395+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"j8p-h4x-vwz","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"dkg-jc2-bpa","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"efbc0c8c-f684-41df-b21e-05536eded46c","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}} headers: Content-Type: - application/json @@ -125,10 +132,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d + url: https://api.datadoghq.com/api/v1/synthetics/variables/efbc0c8c-f684-41df-b21e-05536eded46c method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382","created_at":"2022-04-29T12:29:57.159294+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:57.159294+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"efbc0c8c-f684-41df-b21e-05536eded46c","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1667423397","created_at":"2022-11-02T21:09:58.255825+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:09:58.255825+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -141,10 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/f2v-mbp-xf2 + url: https://api.datadoghq.com/api/v1/synthetics/tests/xv9-5xd-urz method: GET response: - body: '{"status":"paused","public_id":"f2v-mbp-xf2","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","monitor_id":70157553,"type":"api","created_at":"2022-04-29T12:29:58.051539+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:58.051539+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4ci-3uv-nsd","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"ebg-f4a-mpi","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}}' + body: | + {"status":"paused","public_id":"xv9-5xd-urz","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1667423397","monitor_id":101767587,"type":"api","created_at":"2022-11-02T21:09:58.723395+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:09:58.723395+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"j8p-h4x-vwz","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"dkg-jc2-bpa","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"efbc0c8c-f684-41df-b21e-05536eded46c","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}} headers: Content-Type: - application/json @@ -157,10 +166,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/f2v-mbp-xf2 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/xv9-5xd-urz method: GET response: - body: '{"status":"paused","public_id":"f2v-mbp-xf2","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","monitor_id":70157553,"type":"api","created_at":"2022-04-29T12:29:58.051539+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:58.051539+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4ci-3uv-nsd","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"ebg-f4a-mpi","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}}' + body: | + {"status":"paused","public_id":"xv9-5xd-urz","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1667423397","monitor_id":101767587,"type":"api","created_at":"2022-11-02T21:09:58.723395+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:09:58.723395+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"j8p-h4x-vwz","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"dkg-jc2-bpa","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"efbc0c8c-f684-41df-b21e-05536eded46c","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}} headers: Content-Type: - application/json @@ -169,7 +179,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["f2v-mbp-xf2"]} + {"public_ids":["xv9-5xd-urz"]} form: {} headers: Accept: @@ -179,7 +189,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-04-29T12:30:22.714620+00:00","public_id":"f2v-mbp-xf2"}]}' + body: | + {"deleted_tests":[{"deleted_at":"2022-11-02T21:10:01.320015+00:00","public_id":"xv9-5xd-urz"}]} headers: Content-Type: - application/json @@ -192,13 +203,13 @@ interactions: headers: Accept: - '*/*' - url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d + url: https://api.datadoghq.com/api/v1/synthetics/variables/efbc0c8c-f684-41df-b21e-05536eded46c method: DELETE response: - body: '{}' + body: "" headers: Content-Type: - - application/json + - text/html; charset=utf-8 status: 200 OK code: 200 duration: "" @@ -208,10 +219,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d + url: https://api.datadoghq.com/api/v1/synthetics/variables/efbc0c8c-f684-41df-b21e-05536eded46c method: GET response: - body: '{"errors": ["Synthetics global variable not found"]}' + body: '{"errors":["Synthetics global variable not found"]}' headers: Content-Type: - application/json @@ -224,10 +235,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/f2v-mbp-xf2 + url: https://api.datadoghq.com/api/v1/synthetics/tests/xv9-5xd-urz method: GET response: - body: '{"errors": ["Synthetics test not found"]}' + body: '{"errors":["Synthetics test not found"]}' headers: Content-Type: - application/json diff --git a/datadog/tests/resource_datadog_synthetics_test_test.go b/datadog/tests/resource_datadog_synthetics_test_test.go index 411fc45d21..62cb8ec527 100644 --- a/datadog/tests/resource_datadog_synthetics_test_test.go +++ b/datadog/tests/resource_datadog_synthetics_test_test.go @@ -523,6 +523,8 @@ func createSyntheticsAPITestStep(ctx context.Context, accProvider func() (*schem "datadog_synthetics_test.foo", "request_definition.0.timeout", "30"), resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "request_definition.0.body", "this is a body"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.foo", "request_definition.0.body_type", "text/plain"), resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "request_definition.0.no_saving_response_body", "true"), resource.TestCheckResourceAttr( @@ -639,6 +641,7 @@ resource "datadog_synthetics_test" "foo" { method = "GET" url = "https://www.datadoghq.com" body = "this is a body" + body_type = "text/plain" timeout = 30 no_saving_response_body = true } diff --git a/go.mod b/go.mod index c7c99ad5fd..b4e19e4a41 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,7 @@ module github.com/terraform-providers/terraform-provider-datadog require ( - github.com/DataDog/datadog-api-client-go/v2 v2.4.0 + github.com/DataDog/datadog-api-client-go/v2 v2.4.1-0.20221101193848-e787c8932401 github.com/DataDog/dd-sdk-go-testing v0.0.0-20211116174033-1cd082e322ad github.com/dnaeon/go-vcr v1.0.1 github.com/hashicorp/go-cleanhttp v0.5.2 diff --git a/go.sum b/go.sum index d16b220865..22d1b3fbc2 100644 --- a/go.sum +++ b/go.sum @@ -3,6 +3,8 @@ cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMT github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/DataDog/datadog-api-client-go/v2 v2.4.0 h1:uR8B05NvvQIxySIoSmaAkDmvnmVkye+UzvzHrqAd63M= github.com/DataDog/datadog-api-client-go/v2 v2.4.0/go.mod h1:98b/MtTwSAr/yhTfhCR1oxAqQ/4tMkdrgKH7fYiDA0g= +github.com/DataDog/datadog-api-client-go/v2 v2.4.1-0.20221101193848-e787c8932401 h1:tZ8afu1pD6c1E7yQjKuCPDQ37gBTpCuJH+nY3CtW12I= +github.com/DataDog/datadog-api-client-go/v2 v2.4.1-0.20221101193848-e787c8932401/go.mod h1:98b/MtTwSAr/yhTfhCR1oxAqQ/4tMkdrgKH7fYiDA0g= github.com/DataDog/datadog-go v4.4.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/DataDog/datadog-go v4.8.3+incompatible h1:fNGaYSuObuQb5nzeTQqowRAd9bpDIRRV4/gUtIBjh8Q= github.com/DataDog/datadog-go v4.8.3+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= From f5eeab141d3a6369c9a4b4cc1d473748bb86dc11 Mon Sep 17 00:00:00 2001 From: Kevin Zou Date: Wed, 2 Nov 2022 17:13:17 -0400 Subject: [PATCH 02/10] make docs --- docs/resources/monitor.md | 2 +- docs/resources/synthetics_test.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/resources/monitor.md b/docs/resources/monitor.md index 912befb9c4..caef6d8a19 100644 --- a/docs/resources/monitor.md +++ b/docs/resources/monitor.md @@ -123,7 +123,7 @@ Optional: Required: - `compute` (Block List, Min: 1) The compute options. (see [below for nested schema](#nestedblock--variables--event_query--compute)) -- `data_source` (String) The data source for event platform-based queries. Valid values are `rum`, `ci_pipelines`, `ci_tests`. +- `data_source` (String) The data source for event platform-based queries. Valid values are `rum`, `ci_pipelines`, `ci_tests`, `audit`, `events`, `logs`, `spans`. - `name` (String) The name of query for use in formulas. Optional: diff --git a/docs/resources/synthetics_test.md b/docs/resources/synthetics_test.md index 79698c79ec..fe0be84672 100644 --- a/docs/resources/synthetics_test.md +++ b/docs/resources/synthetics_test.md @@ -435,6 +435,7 @@ Optional: - `allow_insecure` (Boolean) Allows loading insecure content for an HTTP test. - `body` (String) The request body. +- `body_type` (String) Request body type. Supported values are `text/plain`, `application/json`, `text/xml`, `text/html`, `application/x-www-form-urlencoded`, `GraphQL`, or `None`. - `certificate_domains` (List of String) By default, the client certificate is applied on the domain of the starting URL for browser tests. If you want your client certificate to be applied on other domains instead, add them in `certificate_domains`. - `dns_server` (String) DNS server to use for DNS tests (`subtype = "dns"`). - `dns_server_port` (Number) DNS server port to use for DNS tests. @@ -728,6 +729,7 @@ Optional: Optional: - `body` (String) The request body. +- `body_type` (String) Request body type. Supported values are `text/plain`, `application/json`, `text/xml`, `text/html`, `application/x-www-form-urlencoded`, `GraphQL`, or `None`. - `certificate_domains` (List of String) By default, the client certificate is applied on the domain of the starting URL for browser tests. If you want your client certificate to be applied on other domains instead, add them in `certificate_domains`. - `dns_server` (String) DNS server to use for DNS tests (`subtype = "dns"`). - `dns_server_port` (Number) DNS server port to use for DNS tests. From 7b0ec90b3bb26904608dbac1815aab6d744a93bb Mon Sep 17 00:00:00 2001 From: Kevin Zou Date: Tue, 8 Nov 2022 17:00:28 -0500 Subject: [PATCH 03/10] update resource to use enum --- datadog/resource_datadog_synthetics_test_.go | 13 +++++++------ go.mod | 2 +- go.sum | 2 ++ 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/datadog/resource_datadog_synthetics_test_.go b/datadog/resource_datadog_synthetics_test_.go index 4ab61a846e..155210ef5a 100644 --- a/datadog/resource_datadog_synthetics_test_.go +++ b/datadog/resource_datadog_synthetics_test_.go @@ -144,9 +144,10 @@ func syntheticsTestRequest() *schema.Resource { Optional: true, }, "body_type": { - Description: "Request body type. Supported values are `text/plain`, `application/json`, `text/xml`, `text/html`, `application/x-www-form-urlencoded`, `GraphQL`, or `None`.", - Type: schema.TypeString, - Optional: true, + Description: "Request body type. Supported values are `text/plain`, `application/json`, `text/xml`, `text/html`, `application/x-www-form-urlencoded`, `GraphQL`, or `None`.", + Type: schema.TypeString, + Optional: true, + ValidateDiagFunc: validators.ValidateEnumValue(datadogV1.NewSyntheticsTestRequestBodyTypeFromValue), }, "timeout": { Description: "Timeout in seconds for the test. Defaults to `60`.", @@ -1258,7 +1259,7 @@ func buildSyntheticsAPITestStruct(d *schema.ResourceData) *datadogV1.SyntheticsA request.SetBody(attr.(string)) } if attr, ok := k.GetOkWith("body_type"); ok { - request.SetBodyType(attr.(string)) + request.SetBodyType(datadogV1.SyntheticsTestRequestBodyType(attr.(string))) } if attr, ok := k.GetOkWith("timeout"); ok { request.SetTimeout(float64(attr.(int))) @@ -1358,7 +1359,7 @@ func buildSyntheticsAPITestStruct(d *schema.ResourceData) *datadogV1.SyntheticsA request.SetUrl(requestMap["url"].(string)) request.SetBody(requestMap["body"].(string)) if v, ok := requestMap["body_type"].(string); ok && v != "" { - request.SetBodyType(v) + request.SetBodyType(datadogV1.SyntheticsTestRequestBodyType(v)) } request.SetTimeout(float64(requestMap["timeout"].(int))) request.SetAllowInsecure(requestMap["allow_insecure"].(bool)) @@ -1702,7 +1703,7 @@ func buildSyntheticsBrowserTestStruct(d *schema.ResourceData) *datadogV1.Synthet request.SetBody(attr.(string)) } if attr, ok := k.GetOkWith("body_type"); ok { - request.SetBodyType(attr.(string)) + request.SetBodyType(datadogV1.SyntheticsTestRequestBodyType(attr.(string))) } if attr, ok := k.GetOkWith("timeout"); ok { request.SetTimeout(float64(attr.(int))) diff --git a/go.mod b/go.mod index b4e19e4a41..1862fa10ed 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,7 @@ module github.com/terraform-providers/terraform-provider-datadog require ( - github.com/DataDog/datadog-api-client-go/v2 v2.4.1-0.20221101193848-e787c8932401 + github.com/DataDog/datadog-api-client-go/v2 v2.4.1-0.20221108201721-5ef6c3b11fd0 github.com/DataDog/dd-sdk-go-testing v0.0.0-20211116174033-1cd082e322ad github.com/dnaeon/go-vcr v1.0.1 github.com/hashicorp/go-cleanhttp v0.5.2 diff --git a/go.sum b/go.sum index 22d1b3fbc2..6937a2b97e 100644 --- a/go.sum +++ b/go.sum @@ -5,6 +5,8 @@ github.com/DataDog/datadog-api-client-go/v2 v2.4.0 h1:uR8B05NvvQIxySIoSmaAkDmvnm github.com/DataDog/datadog-api-client-go/v2 v2.4.0/go.mod h1:98b/MtTwSAr/yhTfhCR1oxAqQ/4tMkdrgKH7fYiDA0g= github.com/DataDog/datadog-api-client-go/v2 v2.4.1-0.20221101193848-e787c8932401 h1:tZ8afu1pD6c1E7yQjKuCPDQ37gBTpCuJH+nY3CtW12I= github.com/DataDog/datadog-api-client-go/v2 v2.4.1-0.20221101193848-e787c8932401/go.mod h1:98b/MtTwSAr/yhTfhCR1oxAqQ/4tMkdrgKH7fYiDA0g= +github.com/DataDog/datadog-api-client-go/v2 v2.4.1-0.20221108201721-5ef6c3b11fd0 h1:CHczkM7YImcKGouVoAJ/B5vUY6sX0nnv400cOEYN4Fc= +github.com/DataDog/datadog-api-client-go/v2 v2.4.1-0.20221108201721-5ef6c3b11fd0/go.mod h1:98b/MtTwSAr/yhTfhCR1oxAqQ/4tMkdrgKH7fYiDA0g= github.com/DataDog/datadog-go v4.4.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/DataDog/datadog-go v4.8.3+incompatible h1:fNGaYSuObuQb5nzeTQqowRAd9bpDIRRV4/gUtIBjh8Q= github.com/DataDog/datadog-go v4.8.3+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= From 1ca2eeb8331d5811099cb0ec83c260fa958cd9f1 Mon Sep 17 00:00:00 2001 From: Kevin Zou Date: Tue, 8 Nov 2022 17:02:06 -0500 Subject: [PATCH 04/10] update body_type description to match spec, remove valid values due to enum --- datadog/resource_datadog_synthetics_test_.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datadog/resource_datadog_synthetics_test_.go b/datadog/resource_datadog_synthetics_test_.go index 155210ef5a..8545fc21e9 100644 --- a/datadog/resource_datadog_synthetics_test_.go +++ b/datadog/resource_datadog_synthetics_test_.go @@ -144,7 +144,7 @@ func syntheticsTestRequest() *schema.Resource { Optional: true, }, "body_type": { - Description: "Request body type. Supported values are `text/plain`, `application/json`, `text/xml`, `text/html`, `application/x-www-form-urlencoded`, `GraphQL`, or `None`.", + Description: "Type of the request body.", Type: schema.TypeString, Optional: true, ValidateDiagFunc: validators.ValidateEnumValue(datadogV1.NewSyntheticsTestRequestBodyTypeFromValue), From d9c8011ba9aa65c4cd547de96a123ba97f2d7c4f Mon Sep 17 00:00:00 2001 From: Kevin Zou Date: Tue, 8 Nov 2022 17:03:04 -0500 Subject: [PATCH 05/10] make docs --- docs/resources/synthetics_test.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/resources/synthetics_test.md b/docs/resources/synthetics_test.md index fe0be84672..0cc03177e8 100644 --- a/docs/resources/synthetics_test.md +++ b/docs/resources/synthetics_test.md @@ -435,7 +435,7 @@ Optional: - `allow_insecure` (Boolean) Allows loading insecure content for an HTTP test. - `body` (String) The request body. -- `body_type` (String) Request body type. Supported values are `text/plain`, `application/json`, `text/xml`, `text/html`, `application/x-www-form-urlencoded`, `GraphQL`, or `None`. +- `body_type` (String) Type of the request body. Valid values are `text/plain`, `application/json`, `text/xml`, `text/html`, `application/x-www-form-urlencoded`, `graphql`. - `certificate_domains` (List of String) By default, the client certificate is applied on the domain of the starting URL for browser tests. If you want your client certificate to be applied on other domains instead, add them in `certificate_domains`. - `dns_server` (String) DNS server to use for DNS tests (`subtype = "dns"`). - `dns_server_port` (Number) DNS server port to use for DNS tests. @@ -729,7 +729,7 @@ Optional: Optional: - `body` (String) The request body. -- `body_type` (String) Request body type. Supported values are `text/plain`, `application/json`, `text/xml`, `text/html`, `application/x-www-form-urlencoded`, `GraphQL`, or `None`. +- `body_type` (String) Type of the request body. Valid values are `text/plain`, `application/json`, `text/xml`, `text/html`, `application/x-www-form-urlencoded`, `graphql`. - `certificate_domains` (List of String) By default, the client certificate is applied on the domain of the starting URL for browser tests. If you want your client certificate to be applied on other domains instead, add them in `certificate_domains`. - `dns_server` (String) DNS server to use for DNS tests (`subtype = "dns"`). - `dns_server_port` (Number) DNS server port to use for DNS tests. From 1f1b0f785d2f92502575fd63f372ce8e84bf0c4e Mon Sep 17 00:00:00 2001 From: Kevin Zou Date: Wed, 9 Nov 2022 13:10:31 -0500 Subject: [PATCH 06/10] update go version --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 1862fa10ed..59dd9c2602 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,7 @@ module github.com/terraform-providers/terraform-provider-datadog require ( - github.com/DataDog/datadog-api-client-go/v2 v2.4.1-0.20221108201721-5ef6c3b11fd0 + github.com/DataDog/datadog-api-client-go/v2 v2.5.0 github.com/DataDog/dd-sdk-go-testing v0.0.0-20211116174033-1cd082e322ad github.com/dnaeon/go-vcr v1.0.1 github.com/hashicorp/go-cleanhttp v0.5.2 diff --git a/go.sum b/go.sum index 6937a2b97e..6c35a88f42 100644 --- a/go.sum +++ b/go.sum @@ -7,6 +7,8 @@ github.com/DataDog/datadog-api-client-go/v2 v2.4.1-0.20221101193848-e787c8932401 github.com/DataDog/datadog-api-client-go/v2 v2.4.1-0.20221101193848-e787c8932401/go.mod h1:98b/MtTwSAr/yhTfhCR1oxAqQ/4tMkdrgKH7fYiDA0g= github.com/DataDog/datadog-api-client-go/v2 v2.4.1-0.20221108201721-5ef6c3b11fd0 h1:CHczkM7YImcKGouVoAJ/B5vUY6sX0nnv400cOEYN4Fc= github.com/DataDog/datadog-api-client-go/v2 v2.4.1-0.20221108201721-5ef6c3b11fd0/go.mod h1:98b/MtTwSAr/yhTfhCR1oxAqQ/4tMkdrgKH7fYiDA0g= +github.com/DataDog/datadog-api-client-go/v2 v2.5.0 h1:+FRtNnR+IZ4D5lGqEk+f0+dSP7XhKtrlHvdcnTdyny8= +github.com/DataDog/datadog-api-client-go/v2 v2.5.0/go.mod h1:98b/MtTwSAr/yhTfhCR1oxAqQ/4tMkdrgKH7fYiDA0g= github.com/DataDog/datadog-go v4.4.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/DataDog/datadog-go v4.8.3+incompatible h1:fNGaYSuObuQb5nzeTQqowRAd9bpDIRRV4/gUtIBjh8Q= github.com/DataDog/datadog-go v4.8.3+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= From 735e7e4e8f812692619c791c4b204b8b3d9d01b9 Mon Sep 17 00:00:00 2001 From: Kevin Zou Date: Wed, 9 Nov 2022 13:49:29 -0500 Subject: [PATCH 07/10] reset cassettes to master --- ...stAccDatadogSyntheticsAPITest_Basic.freeze | 2 +- ...TestAccDatadogSyntheticsAPITest_Basic.yaml | 30 ++++---- ...csAPITest_BasicNewAssertionsOptions.freeze | 2 +- ...AccDatadogSyntheticsAPITest_Updated.freeze | 2 +- ...stAccDatadogSyntheticsAPITest_Updated.yaml | 57 ++++++++------- ...APITest_UpdatedNewAssertionsOptions.freeze | 2 +- ...atadogSyntheticsAPITest_importBasic.freeze | 2 +- ...cDatadogSyntheticsAPITest_importBasic.yaml | 34 ++++----- ...lobalVariableFromTest_LocalVariable.freeze | 2 +- ...sGlobalVariableFromTest_LocalVariable.yaml | 62 ++++++++--------- ...dogSyntheticsTestMultistepApi_Basic.freeze | 2 +- ...tadogSyntheticsTestMultistepApi_Basic.yaml | 69 ++++++++----------- 12 files changed, 125 insertions(+), 141 deletions(-) diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze index c3c5a0d2a4..18bdf9f7e5 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze @@ -1 +1 @@ -2022-11-02T16:52:02.489724-04:00 \ No newline at end of file +2022-09-06T21:35:48.291253+02:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml index 875e059f9d..e0196d9537 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: 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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","bodyType":"text/plain","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322-monitor","monitor_priority":5,"restricted_roles":["abc"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","monitor_priority":5,"restricted_roles":["abc"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"56s-jdw-chh","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322","monitor_id":101765597,"type":"api","created_at":"2022-11-02T20:52:04.290143+00:00","modified_at":"2022-11-02T20:52:04.290143+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"4eu-idk-4gn","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","monitor_id":84053586,"type":"api","created_at":"2022-09-06T19:35:50.384494+00:00","modified_at":"2022-09-06T19:35:50.384494+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/56s-jdw-chh + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/4eu-idk-4gn method: GET response: body: | - {"status":"paused","public_id":"56s-jdw-chh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322","monitor_id":101765597,"type":"api","created_at":"2022-11-02T20:52:04.290143+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T20:52:04.290143+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"4eu-idk-4gn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","monitor_id":84053586,"type":"api","created_at":"2022-09-06T19:35:50.384494+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:50.384494+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -44,11 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/56s-jdw-chh + url: https://api.datadoghq.com/api/v1/synthetics/tests/4eu-idk-4gn method: GET response: body: | - {"status":"paused","public_id":"56s-jdw-chh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322","monitor_id":101765597,"type":"api","created_at":"2022-11-02T20:52:04.290143+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T20:52:04.290143+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"4eu-idk-4gn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","monitor_id":84053586,"type":"api","created_at":"2022-09-06T19:35:50.384494+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:50.384494+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -61,11 +61,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/56s-jdw-chh + url: https://api.datadoghq.com/api/v1/synthetics/tests/4eu-idk-4gn method: GET response: body: | - {"status":"paused","public_id":"56s-jdw-chh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322","monitor_id":101765597,"type":"api","created_at":"2022-11-02T20:52:04.290143+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T20:52:04.290143+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"4eu-idk-4gn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","monitor_id":84053586,"type":"api","created_at":"2022-09-06T19:35:50.384494+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:50.384494+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +78,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/56s-jdw-chh + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/4eu-idk-4gn method: GET response: body: | - {"status":"paused","public_id":"56s-jdw-chh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322","monitor_id":101765597,"type":"api","created_at":"2022-11-02T20:52:04.290143+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T20:52:04.290143+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1667422322-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"4eu-idk-4gn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","monitor_id":84053586,"type":"api","created_at":"2022-09-06T19:35:50.384494+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:50.384494+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -91,7 +91,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["56s-jdw-chh"]} + {"public_ids":["4eu-idk-4gn"]} form: {} headers: Accept: @@ -101,8 +101,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: | - {"deleted_tests":[{"deleted_at":"2022-11-02T20:52:05.971229+00:00","public_id":"56s-jdw-chh"}]} + body: '{"deleted_tests":[{"deleted_at":"2022-09-06T19:35:57.521320+00:00","public_id":"4eu-idk-4gn"}]}' headers: Content-Type: - application/json @@ -115,10 +114,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/56s-jdw-chh + url: https://api.datadoghq.com/api/v1/synthetics/tests/4eu-idk-4gn method: GET response: - body: '{"errors":["Synthetics test not found"]}' + body: | + {"errors":["Synthetics test not found"]} headers: Content-Type: - application/json diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze index 9498085e30..83b8a3ffce 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze @@ -1 +1 @@ -2022-11-08T15:54:37.715516+01:00 +2022-11-08T15:54:37.715516+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze index e3158eeb72..d6980d67b1 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze @@ -1 +1 @@ -2022-11-02T17:11:33.417177-04:00 \ No newline at end of file +2022-09-06T21:35:30.248736+02:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml index 48b85a2e32..d6b59e441b 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: 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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","bodyType":"text/plain","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-monitor","monitor_priority":5,"restricted_roles":["abc"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","monitor_priority":5,"restricted_roles":["abc"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"8gh-3qw-3gu","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493","monitor_id":101767722,"type":"api","created_at":"2022-11-02T21:11:35.503069+00:00","modified_at":"2022-11-02T21:11:35.503069+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/8gh-3qw-3gu + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/znr-6ih-3a5 method: GET response: body: | - {"status":"paused","public_id":"8gh-3qw-3gu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493","monitor_id":101767722,"type":"api","created_at":"2022-11-02T21:11:35.503069+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:35.503069+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -44,11 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/8gh-3qw-3gu + url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 method: GET response: body: | - {"status":"paused","public_id":"8gh-3qw-3gu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493","monitor_id":101767722,"type":"api","created_at":"2022-11-02T21:11:35.503069+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:35.503069+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -61,11 +61,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/8gh-3qw-3gu + url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 method: GET response: body: | - {"status":"paused","public_id":"8gh-3qw-3gu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493","monitor_id":101767722,"type":"api","created_at":"2022-11-02T21:11:35.503069+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:35.503069+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +78,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/8gh-3qw-3gu + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/znr-6ih-3a5 method: GET response: body: | - {"status":"paused","public_id":"8gh-3qw-3gu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493","monitor_id":101767722,"type":"api","created_at":"2022-11-02T21:11:35.503069+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:35.503069+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -95,11 +95,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/8gh-3qw-3gu + url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 method: GET response: body: | - {"status":"paused","public_id":"8gh-3qw-3gu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493","monitor_id":101767722,"type":"api","created_at":"2022-11-02T21:11:35.503069+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:35.503069+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -112,11 +112,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/8gh-3qw-3gu + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/znr-6ih-3a5 method: GET response: body: | - {"status":"paused","public_id":"8gh-3qw-3gu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493","monitor_id":101767722,"type":"api","created_at":"2022-11-02T21:11:35.503069+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:35.503069+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -125,18 +125,17 @@ interactions: duration: "" - request: body: | - {"config":{"assertions":[{"operator":"isNot","target":500,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://docs.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-updated","options":{"ci":{"executionRule":"non_blocking"},"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} + {"config":{"assertions":[{"operator":"isNot","target":500,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://docs.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-updated","options":{"ci":{"executionRule":"non_blocking"},"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/8gh-3qw-3gu + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/znr-6ih-3a5 method: PUT response: - body: | - {"status":"live","public_id":"8gh-3qw-3gu","tags":["foo:bar","foo","env:test"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-updated","monitor_id":101767722,"type":"api","created_at":"2022-11-02T21:11:35.503069+00:00","modified_at":"2022-11-02T21:11:37.558205+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"tick_every":900,"min_failure_duration":10}} + body: '{"status":"live","public_id":"znr-6ih-3a5","tags":["foo:bar","foo","env:test"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-updated","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","modified_at":"2022-09-06T19:35:35.865362+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"tick_every":900,"min_failure_duration":10}}' headers: Content-Type: - application/json @@ -149,11 +148,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/8gh-3qw-3gu + url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 method: GET response: body: | - {"status":"live","public_id":"8gh-3qw-3gu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-updated","monitor_id":101767722,"type":"api","created_at":"2022-11-02T21:11:35.503069+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:37.558205+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} + {"status":"live","public_id":"znr-6ih-3a5","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-updated","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:35.865362+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} headers: Content-Type: - application/json @@ -166,11 +165,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/8gh-3qw-3gu + url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 method: GET response: body: | - {"status":"live","public_id":"8gh-3qw-3gu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-updated","monitor_id":101767722,"type":"api","created_at":"2022-11-02T21:11:35.503069+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:37.558205+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} + {"status":"live","public_id":"znr-6ih-3a5","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-updated","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:35.865362+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} headers: Content-Type: - application/json @@ -183,11 +182,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/8gh-3qw-3gu + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/znr-6ih-3a5 method: GET response: body: | - {"status":"live","public_id":"8gh-3qw-3gu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1667423493-updated","monitor_id":101767722,"type":"api","created_at":"2022-11-02T21:11:35.503069+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:37.558205+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} + {"status":"live","public_id":"znr-6ih-3a5","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-updated","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:35.865362+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} headers: Content-Type: - application/json @@ -196,7 +195,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["8gh-3qw-3gu"]} + {"public_ids":["znr-6ih-3a5"]} form: {} headers: Accept: @@ -206,8 +205,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: | - {"deleted_tests":[{"deleted_at":"2022-11-02T21:11:39.304867+00:00","public_id":"8gh-3qw-3gu"}]} + body: '{"deleted_tests":[{"deleted_at":"2022-09-06T19:35:44.065152+00:00","public_id":"znr-6ih-3a5"}]}' headers: Content-Type: - application/json @@ -220,10 +218,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/8gh-3qw-3gu + url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 method: GET response: - body: '{"errors":["Synthetics test not found"]}' + body: | + {"errors":["Synthetics test not found"]} headers: Content-Type: - application/json diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze index 38ae67b0ed..1ddc4b6433 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze @@ -1 +1 @@ -2022-11-08T15:55:05.545535+01:00 +2022-11-08T15:55:05.545535+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze index 767a1a8893..d862ae23bf 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze @@ -1 +1 @@ -2022-11-02T17:11:21.642851-04:00 \ No newline at end of file +2022-09-06T21:36:18.248855+02:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml index 68a037c60c..7df2521d08 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: 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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","bodyType":"text/plain","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481-monitor","monitor_priority":5,"restricted_roles":["abc"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","monitor_priority":5,"restricted_roles":["abc"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"pcp-8cn-frh","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481","monitor_id":101767666,"type":"api","created_at":"2022-11-02T21:11:23.028598+00:00","modified_at":"2022-11-02T21:11:23.028598+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/pcp-8cn-frh + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/pp5-7hd-zge method: GET response: body: | - {"status":"paused","public_id":"pcp-8cn-frh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481","monitor_id":101767666,"type":"api","created_at":"2022-11-02T21:11:23.028598+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:23.028598+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -44,11 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/pcp-8cn-frh + url: https://api.datadoghq.com/api/v1/synthetics/tests/pp5-7hd-zge method: GET response: body: | - {"status":"paused","public_id":"pcp-8cn-frh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481","monitor_id":101767666,"type":"api","created_at":"2022-11-02T21:11:23.028598+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:23.028598+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -61,11 +61,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/pcp-8cn-frh + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/pp5-7hd-zge method: GET response: body: | - {"status":"paused","public_id":"pcp-8cn-frh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481","monitor_id":101767666,"type":"api","created_at":"2022-11-02T21:11:23.028598+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:23.028598+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +78,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/pcp-8cn-frh + url: https://api.datadoghq.com/api/v1/synthetics/tests/pp5-7hd-zge method: GET response: body: | - {"status":"paused","public_id":"pcp-8cn-frh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481","monitor_id":101767666,"type":"api","created_at":"2022-11-02T21:11:23.028598+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:23.028598+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -95,11 +95,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/pcp-8cn-frh + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/pp5-7hd-zge method: GET response: body: | - {"status":"paused","public_id":"pcp-8cn-frh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481","monitor_id":101767666,"type":"api","created_at":"2022-11-02T21:11:23.028598+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:23.028598+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1667423481-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -108,7 +108,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["pcp-8cn-frh"]} + {"public_ids":["pp5-7hd-zge"]} form: {} headers: Accept: @@ -118,8 +118,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: | - {"deleted_tests":[{"deleted_at":"2022-11-02T21:11:25.309402+00:00","public_id":"pcp-8cn-frh"}]} + body: '{"deleted_tests":[{"deleted_at":"2022-09-06T19:36:28.391242+00:00","public_id":"pp5-7hd-zge"}]}' headers: Content-Type: - application/json @@ -132,10 +131,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/pcp-8cn-frh + url: https://api.datadoghq.com/api/v1/synthetics/tests/pp5-7hd-zge method: GET response: - body: '{"errors":["Synthetics test not found"]}' + body: | + {"errors":["Synthetics test not found"]} headers: Content-Type: - application/json diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableFromTest_LocalVariable.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableFromTest_LocalVariable.freeze index 825281c66b..e454f415f9 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableFromTest_LocalVariable.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableFromTest_LocalVariable.freeze @@ -1 +1 @@ -2022-11-02T17:11:04.503401-04:00 \ No newline at end of file +2022-09-13T20:00:51.367545+02:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableFromTest_LocalVariable.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableFromTest_LocalVariable.yaml index de34353008..3f561ac51e 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableFromTest_LocalVariable.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableFromTest_LocalVariable.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[],"configVariables":[],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[{"field":"content-length","name":"LOCAL_VAR_EXTRACT","parser":{"type":"regex","value":".*"},"type":"http_header"}],"isCritical":false,"name":"First api step","request":{"allow_insecure":true,"body":"this is a body","follow_redirects":true,"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"}]},"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":60},"status":"paused","subtype":"multi","tags":[],"type":"api"} + {"config":{"assertions":[],"configVariables":[],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[{"field":"content-length","name":"LOCAL_VAR_EXTRACT","parser":{"type":"regex","value":".*"},"type":"http_header"}],"isCritical":false,"name":"First api step","request":{"allow_insecure":true,"body":"this is a body","follow_redirects":true,"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"}]},"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":60},"status":"paused","subtype":"multi","tags":[],"type":"api"} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"exi-8uc-a28","tags":[],"org_id":321813,"locations":["aws:eu-central-1"],"message":"","deleted_at":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464","monitor_id":101767628,"type":"api","created_at":"2022-11-02T21:11:05.988147+00:00","modified_at":"2022-11-02T21:11:05.988147+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4m7-ini-6vu","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"9bw-vck-5p9","tags":[],"org_id":321813,"locations":["aws:eu-central-1"],"message":"","deleted_at":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","monitor_id":86719615,"type":"api","created_at":"2022-09-13T18:00:54.595386+00:00","modified_at":"2022-09-13T18:00:54.595386+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"94v-6t6-psr","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/exi-8uc-a28 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/9bw-vck-5p9 method: GET response: body: | - {"status":"paused","public_id":"exi-8uc-a28","tags":[],"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464","monitor_id":101767628,"type":"api","created_at":"2022-11-02T21:11:05.988147+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:05.988147+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4m7-ini-6vu","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"9bw-vck-5p9","tags":[],"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","monitor_id":86719615,"type":"api","created_at":"2022-09-13T18:00:54.595386+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-13T18:00:54.595386+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"94v-6t6-psr","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -40,7 +40,7 @@ interactions: duration: "" - request: body: | - {"description":"a global variable from multistep test","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464","parse_test_options":{"localVariableName":"LOCAL_VAR_EXTRACT","type":"local_variable"},"parse_test_public_id":"exi-8uc-a28","tags":["foo:bar","baz"],"value":{"secure":false,"value":""}} + {"description":"a global variable from multistep test","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","parse_test_options":{"localVariableName":"LOCAL_VAR_EXTRACT","type":"local_variable"},"parse_test_public_id":"9bw-vck-5p9","tags":["foo:bar","baz"],"value":{"secure":false,"value":""}} form: {} headers: Accept: @@ -51,7 +51,7 @@ interactions: method: POST response: body: | - {"parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"is_totp":null,"value":{"secure":false,"value":""},"parse_test_public_id":"exi-8uc-a28","parse_test_name":null,"type":"variable","id":"43f6e061-26db-4b84-8075-6db9f9248fb9","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464"} + {"parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"is_totp":null,"value":{"secure":false,"value":""},"parse_test_public_id":"9bw-vck-5p9","parse_test_name":null,"type":"variable","id":"819f1d49-7f73-4c05-8567-3626a453c9a3","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051"} headers: Content-Type: - application/json @@ -64,11 +64,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/43f6e061-26db-4b84-8075-6db9f9248fb9 + url: https://api.datadoghq.com/api/v1/synthetics/variables/819f1d49-7f73-4c05-8567-3626a453c9a3 method: GET response: - body: | - {"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":"exi-8uc-a28","is_totp":null,"id":"43f6e061-26db-4b84-8075-6db9f9248fb9","parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464","created_at":"2022-11-02T21:11:06.280789+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:06.280789+00:00","value":{"secure":false,"value":""},"parse_test_name":null,"type":"variable"} + body: '{"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":"9bw-vck-5p9","is_totp":null,"id":"819f1d49-7f73-4c05-8567-3626a453c9a3","parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","created_at":"2022-09-13T18:00:55.115052+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-13T18:00:55.115052+00:00","value":{"secure":false,"value":""},"parse_test_name":null,"type":"variable"}' headers: Content-Type: - application/json @@ -81,11 +80,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/43f6e061-26db-4b84-8075-6db9f9248fb9 + url: https://api.datadoghq.com/api/v1/synthetics/variables/819f1d49-7f73-4c05-8567-3626a453c9a3 method: GET response: - body: | - {"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":"exi-8uc-a28","is_totp":null,"id":"43f6e061-26db-4b84-8075-6db9f9248fb9","parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464","created_at":"2022-11-02T21:11:06.280789+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:06.280789+00:00","value":{"secure":false,"value":""},"parse_test_name":null,"type":"variable"} + body: '{"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":"9bw-vck-5p9","is_totp":null,"id":"819f1d49-7f73-4c05-8567-3626a453c9a3","parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","created_at":"2022-09-13T18:00:55.115052+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-13T18:00:55.115052+00:00","value":{"secure":false,"value":""},"parse_test_name":null,"type":"variable"}' headers: Content-Type: - application/json @@ -98,11 +96,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/43f6e061-26db-4b84-8075-6db9f9248fb9 + url: https://api.datadoghq.com/api/v1/synthetics/variables/819f1d49-7f73-4c05-8567-3626a453c9a3 method: GET response: - body: | - {"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":"exi-8uc-a28","is_totp":null,"id":"43f6e061-26db-4b84-8075-6db9f9248fb9","parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464","created_at":"2022-11-02T21:11:06.280789+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:06.280789+00:00","value":{"secure":false,"value":""},"parse_test_name":null,"type":"variable"} + body: '{"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":"9bw-vck-5p9","is_totp":null,"id":"819f1d49-7f73-4c05-8567-3626a453c9a3","parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","created_at":"2022-09-13T18:00:55.115052+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-13T18:00:55.115052+00:00","value":{"secure":false,"value":""},"parse_test_name":null,"type":"variable"}' headers: Content-Type: - application/json @@ -115,11 +112,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/exi-8uc-a28 + url: https://api.datadoghq.com/api/v1/synthetics/tests/9bw-vck-5p9 method: GET response: body: | - {"status":"paused","public_id":"exi-8uc-a28","tags":[],"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464","monitor_id":101767628,"type":"api","created_at":"2022-11-02T21:11:05.988147+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:05.988147+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4m7-ini-6vu","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"tick_every":60,"min_location_failed":1}} + {"status":"paused","public_id":"9bw-vck-5p9","tags":[],"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","monitor_id":86719615,"type":"api","created_at":"2022-09-13T18:00:54.595386+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-13T18:00:54.595386+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"94v-6t6-psr","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"tick_every":60,"min_location_failed":1}} headers: Content-Type: - application/json @@ -132,11 +129,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/exi-8uc-a28 + url: https://api.datadoghq.com/api/v1/synthetics/tests/9bw-vck-5p9 method: GET response: body: | - {"status":"paused","public_id":"exi-8uc-a28","tags":[],"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464","monitor_id":101767628,"type":"api","created_at":"2022-11-02T21:11:05.988147+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:05.988147+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4m7-ini-6vu","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"tick_every":60,"min_location_failed":1}} + {"status":"paused","public_id":"9bw-vck-5p9","tags":[],"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","monitor_id":86719615,"type":"api","created_at":"2022-09-13T18:00:54.595386+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-13T18:00:54.595386+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"94v-6t6-psr","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"tick_every":60,"min_location_failed":1}} headers: Content-Type: - application/json @@ -149,11 +146,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/exi-8uc-a28 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/9bw-vck-5p9 method: GET response: body: | - {"status":"paused","public_id":"exi-8uc-a28","tags":[],"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464","monitor_id":101767628,"type":"api","created_at":"2022-11-02T21:11:05.988147+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:05.988147+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4m7-ini-6vu","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"tick_every":60,"min_location_failed":1}} + {"status":"paused","public_id":"9bw-vck-5p9","tags":[],"locations":["aws:eu-central-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","monitor_id":86719615,"type":"api","created_at":"2022-09-13T18:00:54.595386+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-13T18:00:54.595386+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"url":"https://www.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"94v-6t6-psr","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"LOCAL_VAR_EXTRACT"}]}],"assertions":[],"configVariables":[]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"tick_every":60,"min_location_failed":1}} headers: Content-Type: - application/json @@ -166,11 +163,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/43f6e061-26db-4b84-8075-6db9f9248fb9 + url: https://api.datadoghq.com/api/v1/synthetics/variables/819f1d49-7f73-4c05-8567-3626a453c9a3 method: GET response: - body: | - {"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":"exi-8uc-a28","is_totp":null,"id":"43f6e061-26db-4b84-8075-6db9f9248fb9","parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1667423464","created_at":"2022-11-02T21:11:06.280789+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:11:06.280789+00:00","value":{"secure":false,"value":""},"parse_test_name":null,"type":"variable"} + body: '{"parse_test_extracted_at":null,"description":"a global variable from multistep test","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":"9bw-vck-5p9","is_totp":null,"id":"819f1d49-7f73-4c05-8567-3626a453c9a3","parse_test_options":{"type":"local_variable","localVariableName":"LOCAL_VAR_EXTRACT"},"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLEFROMTEST_LOCALVARIABLE_LOCAL_1663092051","created_at":"2022-09-13T18:00:55.115052+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-13T18:00:55.115052+00:00","value":{"secure":false,"value":""},"parse_test_name":null,"type":"variable"}' headers: Content-Type: - application/json @@ -183,19 +179,19 @@ interactions: headers: Accept: - '*/*' - url: https://api.datadoghq.com/api/v1/synthetics/variables/43f6e061-26db-4b84-8075-6db9f9248fb9 + url: https://api.datadoghq.com/api/v1/synthetics/variables/819f1d49-7f73-4c05-8567-3626a453c9a3 method: DELETE response: - body: "" + body: '{}' headers: Content-Type: - - text/html; charset=utf-8 + - application/json status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["exi-8uc-a28"]} + {"public_ids":["9bw-vck-5p9"]} form: {} headers: Accept: @@ -206,7 +202,7 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"deleted_at":"2022-11-02T21:11:09.231871+00:00","public_id":"exi-8uc-a28"}]} + {"deleted_tests":[{"deleted_at":"2022-09-13T18:01:03.488705+00:00","public_id":"9bw-vck-5p9"}]} headers: Content-Type: - application/json @@ -219,10 +215,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/43f6e061-26db-4b84-8075-6db9f9248fb9 + url: https://api.datadoghq.com/api/v1/synthetics/tests/9bw-vck-5p9 method: GET response: - body: '{"errors":["Synthetics global variable not found"]}' + body: '{"errors":["Synthetics test not found"]}' headers: Content-Type: - application/json @@ -235,10 +231,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/exi-8uc-a28 + url: https://api.datadoghq.com/api/v1/synthetics/variables/819f1d49-7f73-4c05-8567-3626a453c9a3 method: GET response: - body: '{"errors":["Synthetics test not found"]}' + body: '{"errors": ["Synthetics global variable not found"]}' headers: Content-Type: - application/json diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze index 272cfa3543..5b767102bc 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze @@ -1 +1 @@ -2022-11-02T17:09:57.022312-04:00 \ No newline at end of file +2022-04-29T14:29:42.297762+02:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml index 393d5b63d0..98311b925e 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"a global variable","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1667423397","tags":["foo:bar","baz"],"value":{"secure":false,"value":"variable-value"}} + {"description":"a global variable","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382","tags":["foo:bar","baz"],"value":{"secure":false,"value":"variable-value"}} form: {} headers: Accept: @@ -13,8 +13,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/variables method: POST response: - body: | - {"parse_test_options":null,"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"is_totp":null,"value":{"secure":false,"value":"variable-value"},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"efbc0c8c-f684-41df-b21e-05536eded46c","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1667423397"} + body: '{"parse_test_options":null,"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"is_totp":null,"value":{"secure":false,"value":"variable-value"},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382"}' headers: Content-Type: - application/json @@ -27,11 +26,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/efbc0c8c-f684-41df-b21e-05536eded46c + url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d method: GET response: - body: | - {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"efbc0c8c-f684-41df-b21e-05536eded46c","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1667423397","created_at":"2022-11-02T21:09:58.255825+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:09:58.255825+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} + body: '{"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382","created_at":"2022-04-29T12:29:57.159294+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:57.159294+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' headers: Content-Type: - application/json @@ -44,11 +42,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/efbc0c8c-f684-41df-b21e-05536eded46c + url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d method: GET response: - body: | - {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"efbc0c8c-f684-41df-b21e-05536eded46c","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1667423397","created_at":"2022-11-02T21:09:58.255825+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:09:58.255825+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} + body: '{"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382","created_at":"2022-04-29T12:29:57.159294+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:57.159294+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' headers: Content-Type: - application/json @@ -57,7 +54,7 @@ interactions: duration: "" - request: body: | - {"config":{"assertions":[],"configVariables":[{"id":"efbc0c8c-f684-41df-b21e-05536eded46c","name":"VARIABLE_NAME","type":"global"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[{"field":"content-length","name":"VAR_EXTRACT","parser":{"type":"regex","value":".*"},"type":"http_header"}],"isCritical":false,"name":"First api step","request":{"allow_insecure":true,"basicAuth":{"accessKey":"sigv4-access-key","region":"sigv4-region","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","sessionToken":"sigv4-session-token","type":"sigv4"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"follow_redirects":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Second api step","request":{"allow_insecure":true,"body":"","follow_redirects":true,"method":"GET","timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1667423397","options":{"min_location_failed":1,"restricted_roles":["abc"],"tick_every":900},"status":"paused","subtype":"multi","tags":["multistep"],"type":"api"} + {"config":{"assertions":[],"configVariables":[{"id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME","type":"global"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[{"field":"content-length","name":"VAR_EXTRACT","parser":{"type":"regex","value":".*"},"type":"http_header"}],"isCritical":false,"name":"First api step","request":{"allow_insecure":true,"basicAuth":{"accessKey":"sigv4-access-key","region":"sigv4-region","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","sessionToken":"sigv4-session-token","type":"sigv4"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"follow_redirects":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Second api step","request":{"allow_insecure":true,"body":"","follow_redirects":true,"method":"GET","timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","options":{"min_location_failed":1,"restricted_roles":["abc"],"tick_every":900},"status":"paused","subtype":"multi","tags":["multistep"],"type":"api"} form: {} headers: Accept: @@ -67,8 +64,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/api method: POST response: - body: | - {"status":"paused","public_id":"xv9-5xd-urz","tags":["multistep"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1667423397","monitor_id":101767587,"type":"api","created_at":"2022-11-02T21:09:58.723395+00:00","modified_at":"2022-11-02T21:09:58.723395+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"j8p-h4x-vwz","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"dkg-jc2-bpa","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"efbc0c8c-f684-41df-b21e-05536eded46c","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}} + body: '{"status":"paused","public_id":"f2v-mbp-xf2","tags":["multistep"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","monitor_id":70157553,"type":"api","created_at":"2022-04-29T12:29:58.051539+00:00","modified_at":"2022-04-29T12:29:58.051539+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4ci-3uv-nsd","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"ebg-f4a-mpi","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}}' headers: Content-Type: - application/json @@ -81,11 +77,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/xv9-5xd-urz + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/f2v-mbp-xf2 method: GET response: - body: | - {"status":"paused","public_id":"xv9-5xd-urz","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1667423397","monitor_id":101767587,"type":"api","created_at":"2022-11-02T21:09:58.723395+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:09:58.723395+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"j8p-h4x-vwz","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"dkg-jc2-bpa","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"efbc0c8c-f684-41df-b21e-05536eded46c","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}} + body: '{"status":"paused","public_id":"f2v-mbp-xf2","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","monitor_id":70157553,"type":"api","created_at":"2022-04-29T12:29:58.051539+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:58.051539+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4ci-3uv-nsd","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"ebg-f4a-mpi","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}}' headers: Content-Type: - application/json @@ -98,11 +93,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/efbc0c8c-f684-41df-b21e-05536eded46c + url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d method: GET response: - body: | - {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"efbc0c8c-f684-41df-b21e-05536eded46c","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1667423397","created_at":"2022-11-02T21:09:58.255825+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:09:58.255825+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} + body: '{"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382","created_at":"2022-04-29T12:29:57.159294+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:57.159294+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' headers: Content-Type: - application/json @@ -115,11 +109,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/xv9-5xd-urz + url: https://api.datadoghq.com/api/v1/synthetics/tests/f2v-mbp-xf2 method: GET response: - body: | - {"status":"paused","public_id":"xv9-5xd-urz","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1667423397","monitor_id":101767587,"type":"api","created_at":"2022-11-02T21:09:58.723395+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:09:58.723395+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"j8p-h4x-vwz","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"dkg-jc2-bpa","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"efbc0c8c-f684-41df-b21e-05536eded46c","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}} + body: '{"status":"paused","public_id":"f2v-mbp-xf2","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","monitor_id":70157553,"type":"api","created_at":"2022-04-29T12:29:58.051539+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:58.051539+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4ci-3uv-nsd","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"ebg-f4a-mpi","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}}' headers: Content-Type: - application/json @@ -132,11 +125,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/efbc0c8c-f684-41df-b21e-05536eded46c + url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d method: GET response: - body: | - {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"efbc0c8c-f684-41df-b21e-05536eded46c","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1667423397","created_at":"2022-11-02T21:09:58.255825+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:09:58.255825+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} + body: '{"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382","created_at":"2022-04-29T12:29:57.159294+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:57.159294+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' headers: Content-Type: - application/json @@ -149,11 +141,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/xv9-5xd-urz + url: https://api.datadoghq.com/api/v1/synthetics/tests/f2v-mbp-xf2 method: GET response: - body: | - {"status":"paused","public_id":"xv9-5xd-urz","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1667423397","monitor_id":101767587,"type":"api","created_at":"2022-11-02T21:09:58.723395+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:09:58.723395+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"j8p-h4x-vwz","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"dkg-jc2-bpa","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"efbc0c8c-f684-41df-b21e-05536eded46c","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}} + body: '{"status":"paused","public_id":"f2v-mbp-xf2","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","monitor_id":70157553,"type":"api","created_at":"2022-04-29T12:29:58.051539+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:58.051539+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4ci-3uv-nsd","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"ebg-f4a-mpi","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}}' headers: Content-Type: - application/json @@ -166,11 +157,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/xv9-5xd-urz + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/f2v-mbp-xf2 method: GET response: - body: | - {"status":"paused","public_id":"xv9-5xd-urz","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1667423397","monitor_id":101767587,"type":"api","created_at":"2022-11-02T21:09:58.723395+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-02T21:09:58.723395+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"j8p-h4x-vwz","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"dkg-jc2-bpa","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"efbc0c8c-f684-41df-b21e-05536eded46c","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}} + body: '{"status":"paused","public_id":"f2v-mbp-xf2","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","monitor_id":70157553,"type":"api","created_at":"2022-04-29T12:29:58.051539+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:58.051539+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4ci-3uv-nsd","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"ebg-f4a-mpi","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}}' headers: Content-Type: - application/json @@ -179,7 +169,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["xv9-5xd-urz"]} + {"public_ids":["f2v-mbp-xf2"]} form: {} headers: Accept: @@ -189,8 +179,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: | - {"deleted_tests":[{"deleted_at":"2022-11-02T21:10:01.320015+00:00","public_id":"xv9-5xd-urz"}]} + body: '{"deleted_tests":[{"deleted_at":"2022-04-29T12:30:22.714620+00:00","public_id":"f2v-mbp-xf2"}]}' headers: Content-Type: - application/json @@ -203,13 +192,13 @@ interactions: headers: Accept: - '*/*' - url: https://api.datadoghq.com/api/v1/synthetics/variables/efbc0c8c-f684-41df-b21e-05536eded46c + url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d method: DELETE response: - body: "" + body: '{}' headers: Content-Type: - - text/html; charset=utf-8 + - application/json status: 200 OK code: 200 duration: "" @@ -219,10 +208,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/efbc0c8c-f684-41df-b21e-05536eded46c + url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d method: GET response: - body: '{"errors":["Synthetics global variable not found"]}' + body: '{"errors": ["Synthetics global variable not found"]}' headers: Content-Type: - application/json @@ -235,10 +224,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/xv9-5xd-urz + url: https://api.datadoghq.com/api/v1/synthetics/tests/f2v-mbp-xf2 method: GET response: - body: '{"errors":["Synthetics test not found"]}' + body: '{"errors": ["Synthetics test not found"]}' headers: Content-Type: - application/json From cacb2977bd365218a731f297211a24a479ef0233 Mon Sep 17 00:00:00 2001 From: Kevin Zou Date: Thu, 10 Nov 2022 10:21:14 -0500 Subject: [PATCH 08/10] update tests to use role uuid --- ...stAccDatadogSyntheticsAPITest_Basic.freeze | 2 +- ...TestAccDatadogSyntheticsAPITest_Basic.yaml | 30 ++++---- ...AccDatadogSyntheticsAPITest_Updated.freeze | 2 +- ...stAccDatadogSyntheticsAPITest_Updated.yaml | 57 +++++++-------- ...atadogSyntheticsAPITest_importBasic.freeze | 2 +- ...cDatadogSyntheticsAPITest_importBasic.yaml | 34 ++++----- ...cDatadogSyntheticsBrowserTest_Basic.freeze | 2 +- ...AccDatadogSyntheticsBrowserTest_Basic.yaml | 26 +++---- ...atadogSyntheticsBrowserTest_Updated.freeze | 2 +- ...cDatadogSyntheticsBrowserTest_Updated.yaml | 52 +++++++------- ...ticsBrowserTest_Updated_RumSettings.freeze | 2 +- ...heticsBrowserTest_Updated_RumSettings.yaml | 52 +++++++------- ...ogSyntheticsBrowserTest_importBasic.freeze | 2 +- ...adogSyntheticsBrowserTest_importBasic.yaml | 30 ++++---- ...dogSyntheticsTestMultistepApi_Basic.freeze | 2 +- ...tadogSyntheticsTestMultistepApi_Basic.yaml | 69 +++++++++++-------- .../resource_datadog_synthetics_test_test.go | 12 ++-- 17 files changed, 195 insertions(+), 183 deletions(-) diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze index 18bdf9f7e5..00f245b918 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze @@ -1 +1 @@ -2022-09-06T21:35:48.291253+02:00 \ No newline at end of file +2022-11-10T09:57:37.684108-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml index e0196d9537..ba8c79cb06 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: 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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","monitor_priority":5,"restricted_roles":["abc"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","bodyType":"text/plain","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257-monitor","monitor_priority":5,"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"4eu-idk-4gn","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","monitor_id":84053586,"type":"api","created_at":"2022-09-06T19:35:50.384494+00:00","modified_at":"2022-09-06T19:35:50.384494+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"vqn-3n2-jej","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257","monitor_id":102643324,"type":"api","created_at":"2022-11-10T14:57:39.097695+00:00","modified_at":"2022-11-10T14:57:39.097695+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/4eu-idk-4gn + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/vqn-3n2-jej method: GET response: body: | - {"status":"paused","public_id":"4eu-idk-4gn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","monitor_id":84053586,"type":"api","created_at":"2022-09-06T19:35:50.384494+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:50.384494+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"vqn-3n2-jej","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257","monitor_id":102643324,"type":"api","created_at":"2022-11-10T14:57:39.097695+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:39.097695+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -44,11 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/4eu-idk-4gn + url: https://api.datadoghq.com/api/v1/synthetics/tests/vqn-3n2-jej method: GET response: body: | - {"status":"paused","public_id":"4eu-idk-4gn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","monitor_id":84053586,"type":"api","created_at":"2022-09-06T19:35:50.384494+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:50.384494+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"vqn-3n2-jej","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257","monitor_id":102643324,"type":"api","created_at":"2022-11-10T14:57:39.097695+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:39.097695+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -61,11 +61,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/4eu-idk-4gn + url: https://api.datadoghq.com/api/v1/synthetics/tests/vqn-3n2-jej method: GET response: body: | - {"status":"paused","public_id":"4eu-idk-4gn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","monitor_id":84053586,"type":"api","created_at":"2022-09-06T19:35:50.384494+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:50.384494+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"vqn-3n2-jej","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257","monitor_id":102643324,"type":"api","created_at":"2022-11-10T14:57:39.097695+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:39.097695+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +78,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/4eu-idk-4gn + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/vqn-3n2-jej method: GET response: body: | - {"status":"paused","public_id":"4eu-idk-4gn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948","monitor_id":84053586,"type":"api","created_at":"2022-09-06T19:35:50.384494+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:50.384494+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1662492948-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"vqn-3n2-jej","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257","monitor_id":102643324,"type":"api","created_at":"2022-11-10T14:57:39.097695+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:39.097695+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -91,7 +91,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["4eu-idk-4gn"]} + {"public_ids":["vqn-3n2-jej"]} form: {} headers: Accept: @@ -101,7 +101,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-09-06T19:35:57.521320+00:00","public_id":"4eu-idk-4gn"}]}' + body: | + {"deleted_tests":[{"deleted_at":"2022-11-10T14:57:40.480401+00:00","public_id":"vqn-3n2-jej"}]} headers: Content-Type: - application/json @@ -114,11 +115,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/4eu-idk-4gn + url: https://api.datadoghq.com/api/v1/synthetics/tests/vqn-3n2-jej method: GET response: - body: | - {"errors":["Synthetics test not found"]} + body: '{"errors":["Synthetics test not found"]}' headers: Content-Type: - application/json diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze index d6980d67b1..7a582abbf9 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze @@ -1 +1 @@ -2022-09-06T21:35:30.248736+02:00 \ No newline at end of file +2022-11-10T09:57:17.408098-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml index d6b59e441b..102a545550 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: 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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","monitor_priority":5,"restricted_roles":["abc"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","bodyType":"text/plain","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-monitor","monitor_priority":5,"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"dee-br9-2uk","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237","monitor_id":102643146,"type":"api","created_at":"2022-11-10T14:57:18.820742+00:00","modified_at":"2022-11-10T14:57:18.820742+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/dee-br9-2uk method: GET response: body: | - {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"dee-br9-2uk","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237","monitor_id":102643146,"type":"api","created_at":"2022-11-10T14:57:18.820742+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:18.820742+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -44,11 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/dee-br9-2uk method: GET response: body: | - {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"dee-br9-2uk","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237","monitor_id":102643146,"type":"api","created_at":"2022-11-10T14:57:18.820742+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:18.820742+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -61,11 +61,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/dee-br9-2uk method: GET response: body: | - {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"dee-br9-2uk","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237","monitor_id":102643146,"type":"api","created_at":"2022-11-10T14:57:18.820742+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:18.820742+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +78,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/dee-br9-2uk method: GET response: body: | - {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"dee-br9-2uk","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237","monitor_id":102643146,"type":"api","created_at":"2022-11-10T14:57:18.820742+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:18.820742+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -95,11 +95,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/dee-br9-2uk method: GET response: body: | - {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"dee-br9-2uk","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237","monitor_id":102643146,"type":"api","created_at":"2022-11-10T14:57:18.820742+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:18.820742+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -112,11 +112,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/dee-br9-2uk method: GET response: body: | - {"status":"paused","public_id":"znr-6ih-3a5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:32.389379+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"dee-br9-2uk","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237","monitor_id":102643146,"type":"api","created_at":"2022-11-10T14:57:18.820742+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:18.820742+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -125,17 +125,18 @@ interactions: duration: "" - request: body: | - {"config":{"assertions":[{"operator":"isNot","target":500,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://docs.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-updated","options":{"ci":{"executionRule":"non_blocking"},"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} + {"config":{"assertions":[{"operator":"isNot","target":500,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://docs.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-updated","options":{"ci":{"executionRule":"non_blocking"},"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/dee-br9-2uk method: PUT response: - body: '{"status":"live","public_id":"znr-6ih-3a5","tags":["foo:bar","foo","env:test"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-updated","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","modified_at":"2022-09-06T19:35:35.865362+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"tick_every":900,"min_failure_duration":10}}' + body: | + {"status":"live","public_id":"dee-br9-2uk","tags":["foo:bar","foo","env:test"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-updated","monitor_id":102643146,"type":"api","created_at":"2022-11-10T14:57:18.820742+00:00","modified_at":"2022-11-10T14:57:20.746557+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"tick_every":900,"min_failure_duration":10}} headers: Content-Type: - application/json @@ -148,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/dee-br9-2uk method: GET response: body: | - {"status":"live","public_id":"znr-6ih-3a5","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-updated","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:35.865362+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} + {"status":"live","public_id":"dee-br9-2uk","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-updated","monitor_id":102643146,"type":"api","created_at":"2022-11-10T14:57:18.820742+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:20.746557+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} headers: Content-Type: - application/json @@ -165,11 +166,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/dee-br9-2uk method: GET response: body: | - {"status":"live","public_id":"znr-6ih-3a5","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-updated","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:35.865362+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} + {"status":"live","public_id":"dee-br9-2uk","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-updated","monitor_id":102643146,"type":"api","created_at":"2022-11-10T14:57:18.820742+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:20.746557+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} headers: Content-Type: - application/json @@ -182,11 +183,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/dee-br9-2uk method: GET response: body: | - {"status":"live","public_id":"znr-6ih-3a5","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1662492930-updated","monitor_id":84053522,"type":"api","created_at":"2022-09-06T19:35:32.389379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:35:35.865362+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} + {"status":"live","public_id":"dee-br9-2uk","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-updated","monitor_id":102643146,"type":"api","created_at":"2022-11-10T14:57:18.820742+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:20.746557+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} headers: Content-Type: - application/json @@ -195,7 +196,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["znr-6ih-3a5"]} + {"public_ids":["dee-br9-2uk"]} form: {} headers: Accept: @@ -205,7 +206,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-09-06T19:35:44.065152+00:00","public_id":"znr-6ih-3a5"}]}' + body: | + {"deleted_tests":[{"deleted_at":"2022-11-10T14:57:22.851823+00:00","public_id":"dee-br9-2uk"}]} headers: Content-Type: - application/json @@ -218,11 +220,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/znr-6ih-3a5 + url: https://api.datadoghq.com/api/v1/synthetics/tests/dee-br9-2uk method: GET response: - body: | - {"errors":["Synthetics test not found"]} + body: '{"errors":["Synthetics test not found"]}' headers: Content-Type: - application/json diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze index d862ae23bf..9d397ca58d 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze @@ -1 +1 @@ -2022-09-06T21:36:18.248855+02:00 \ No newline at end of file +2022-11-10T09:57:05.289788-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml index 7df2521d08..a8c85799b9 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: 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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","monitor_priority":5,"restricted_roles":["abc"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","bodyType":"text/plain","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225-monitor","monitor_priority":5,"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"ad3-92k-u2w","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225","monitor_id":102643142,"type":"api","created_at":"2022-11-10T14:57:06.684487+00:00","modified_at":"2022-11-10T14:57:06.684487+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/pp5-7hd-zge + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/ad3-92k-u2w method: GET response: body: | - {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"ad3-92k-u2w","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225","monitor_id":102643142,"type":"api","created_at":"2022-11-10T14:57:06.684487+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:06.684487+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -44,11 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/pp5-7hd-zge + url: https://api.datadoghq.com/api/v1/synthetics/tests/ad3-92k-u2w method: GET response: body: | - {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"ad3-92k-u2w","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225","monitor_id":102643142,"type":"api","created_at":"2022-11-10T14:57:06.684487+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:06.684487+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -61,11 +61,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/pp5-7hd-zge + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/ad3-92k-u2w method: GET response: body: | - {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"ad3-92k-u2w","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225","monitor_id":102643142,"type":"api","created_at":"2022-11-10T14:57:06.684487+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:06.684487+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +78,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/pp5-7hd-zge + url: https://api.datadoghq.com/api/v1/synthetics/tests/ad3-92k-u2w method: GET response: body: | - {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"ad3-92k-u2w","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225","monitor_id":102643142,"type":"api","created_at":"2022-11-10T14:57:06.684487+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:06.684487+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -95,11 +95,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/pp5-7hd-zge + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/ad3-92k-u2w method: GET response: body: | - {"status":"paused","public_id":"pp5-7hd-zge","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978","monitor_id":84053755,"type":"api","created_at":"2022-09-06T19:36:20.351488+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-09-06T19:36:20.351488+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1662492978-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"ad3-92k-u2w","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225","monitor_id":102643142,"type":"api","created_at":"2022-11-10T14:57:06.684487+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:06.684487+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -108,7 +108,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["pp5-7hd-zge"]} + {"public_ids":["ad3-92k-u2w"]} form: {} headers: Accept: @@ -118,7 +118,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-09-06T19:36:28.391242+00:00","public_id":"pp5-7hd-zge"}]}' + body: | + {"deleted_tests":[{"deleted_at":"2022-11-10T14:57:08.509606+00:00","public_id":"ad3-92k-u2w"}]} headers: Content-Type: - application/json @@ -131,11 +132,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/pp5-7hd-zge + url: https://api.datadoghq.com/api/v1/synthetics/tests/ad3-92k-u2w method: GET response: - body: | - {"errors":["Synthetics test not found"]} + body: '{"errors":["Synthetics test not found"]}' headers: Content-Type: - application/json diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.freeze index 3b1cc315d3..5121a9c1af 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.freeze @@ -1 +1 @@ -2022-10-19T09:52:38.20238-04:00 \ No newline at end of file +2022-11-10T09:55:44.637904-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml index 820138b705..859ea47aa3 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["abc"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} + {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"i7u-67k-fv6","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558","monitor_id":100397921,"type":"browser","created_at":"2022-10-19T13:52:39.693838+00:00","modified_at":"2022-10-19T13:52:39.693838+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"qpn-cq7-9jb","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144","monitor_id":102642901,"type":"browser","created_at":"2022-11-10T14:55:45.996226+00:00","modified_at":"2022-11-10T14:55:45.996226+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/i7u-67k-fv6 + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/qpn-cq7-9jb method: GET response: body: | - {"status":"paused","public_id":"i7u-67k-fv6","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558","monitor_id":100397921,"type":"browser","created_at":"2022-10-19T13:52:39.693838+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:39.693838+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"qpn-cq7-9jb","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144","monitor_id":102642901,"type":"browser","created_at":"2022-11-10T14:55:45.996226+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:45.996226+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -44,11 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/i7u-67k-fv6 + url: https://api.datadoghq.com/api/v1/synthetics/tests/qpn-cq7-9jb method: GET response: body: | - {"status":"paused","public_id":"i7u-67k-fv6","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558","monitor_id":100397921,"type":"browser","created_at":"2022-10-19T13:52:39.693838+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:39.693838+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"qpn-cq7-9jb","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144","monitor_id":102642901,"type":"browser","created_at":"2022-11-10T14:55:45.996226+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:45.996226+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -61,11 +61,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/i7u-67k-fv6 + url: https://api.datadoghq.com/api/v1/synthetics/tests/qpn-cq7-9jb method: GET response: body: | - {"status":"paused","public_id":"i7u-67k-fv6","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558","monitor_id":100397921,"type":"browser","created_at":"2022-10-19T13:52:39.693838+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:39.693838+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"qpn-cq7-9jb","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144","monitor_id":102642901,"type":"browser","created_at":"2022-11-10T14:55:45.996226+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:45.996226+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +78,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/i7u-67k-fv6 + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/qpn-cq7-9jb method: GET response: body: | - {"status":"paused","public_id":"i7u-67k-fv6","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558","monitor_id":100397921,"type":"browser","created_at":"2022-10-19T13:52:39.693838+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:39.693838+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1666187558-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"qpn-cq7-9jb","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144","monitor_id":102642901,"type":"browser","created_at":"2022-11-10T14:55:45.996226+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:45.996226+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -91,7 +91,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["i7u-67k-fv6"]} + {"public_ids":["qpn-cq7-9jb"]} form: {} headers: Accept: @@ -102,7 +102,7 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"deleted_at":"2022-10-19T13:52:41.445933+00:00","public_id":"i7u-67k-fv6"}]} + {"deleted_tests":[{"deleted_at":"2022-11-10T14:55:47.390626+00:00","public_id":"qpn-cq7-9jb"}]} headers: Content-Type: - application/json @@ -115,7 +115,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/i7u-67k-fv6 + url: https://api.datadoghq.com/api/v1/synthetics/tests/qpn-cq7-9jb method: GET response: body: '{"errors":["Synthetics test not found"]}' diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.freeze index c1dfb540af..e33d0865ed 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.freeze @@ -1 +1 @@ -2022-10-19T09:52:06.698853-04:00 \ No newline at end of file +2022-11-10T09:56:47.041402-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml index 80dfa4fe46..568962cf19 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["abc"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} + {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"vv2-vi7-zfm","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526","monitor_id":100397907,"type":"browser","created_at":"2022-10-19T13:52:08.083709+00:00","modified_at":"2022-10-19T13:52:08.083709+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"bnj-5tq-jmi","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207","monitor_id":102642957,"type":"browser","created_at":"2022-11-10T14:56:48.441702+00:00","modified_at":"2022-11-10T14:56:48.441702+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/vv2-vi7-zfm + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bnj-5tq-jmi method: GET response: body: | - {"status":"paused","public_id":"vv2-vi7-zfm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526","monitor_id":100397907,"type":"browser","created_at":"2022-10-19T13:52:08.083709+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.083709+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"bnj-5tq-jmi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207","monitor_id":102642957,"type":"browser","created_at":"2022-11-10T14:56:48.441702+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.441702+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -44,11 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/vv2-vi7-zfm + url: https://api.datadoghq.com/api/v1/synthetics/tests/bnj-5tq-jmi method: GET response: body: | - {"status":"paused","public_id":"vv2-vi7-zfm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526","monitor_id":100397907,"type":"browser","created_at":"2022-10-19T13:52:08.083709+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.083709+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"bnj-5tq-jmi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207","monitor_id":102642957,"type":"browser","created_at":"2022-11-10T14:56:48.441702+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.441702+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -61,11 +61,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/vv2-vi7-zfm + url: https://api.datadoghq.com/api/v1/synthetics/tests/bnj-5tq-jmi method: GET response: body: | - {"status":"paused","public_id":"vv2-vi7-zfm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526","monitor_id":100397907,"type":"browser","created_at":"2022-10-19T13:52:08.083709+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.083709+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"bnj-5tq-jmi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207","monitor_id":102642957,"type":"browser","created_at":"2022-11-10T14:56:48.441702+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.441702+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +78,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/vv2-vi7-zfm + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bnj-5tq-jmi method: GET response: body: | - {"status":"paused","public_id":"vv2-vi7-zfm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526","monitor_id":100397907,"type":"browser","created_at":"2022-10-19T13:52:08.083709+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.083709+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"bnj-5tq-jmi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207","monitor_id":102642957,"type":"browser","created_at":"2022-11-10T14:56:48.441702+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.441702+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -95,11 +95,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/vv2-vi7-zfm + url: https://api.datadoghq.com/api/v1/synthetics/tests/bnj-5tq-jmi method: GET response: body: | - {"status":"paused","public_id":"vv2-vi7-zfm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526","monitor_id":100397907,"type":"browser","created_at":"2022-10-19T13:52:08.083709+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.083709+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"bnj-5tq-jmi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207","monitor_id":102642957,"type":"browser","created_at":"2022-11-10T14:56:48.441702+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.441702+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -112,11 +112,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/vv2-vi7-zfm + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bnj-5tq-jmi method: GET response: body: | - {"status":"paused","public_id":"vv2-vi7-zfm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526","monitor_id":100397907,"type":"browser","created_at":"2022-10-19T13:52:08.083709+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.083709+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"bnj-5tq-jmi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207","monitor_id":102642957,"type":"browser","created_at":"2022-11-10T14:56:48.441702+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.441702+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -125,18 +125,18 @@ interactions: duration: "" - request: body: | - {"config":{"assertions":[],"configVariables":[],"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":[{"example":"5970","name":"MY_PATTERN_VAR","pattern":"{{numeric(4)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-updated","options":{"ci":{"executionRule":"skipped"},"device_ids":["laptop_large","tablet"],"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"rumSettings":{"isEnabled":false},"tick_every":1800},"status":"live","steps":[{"allowFailure":false,"isCritical":false,"name":"first step updated","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"allowFailure":false,"isCritical":false,"name":"press key step","params":{"modifiers":[],"value":"1"},"timeout":0,"type":"pressKey"}],"tags":["foo:bar","buz"],"type":"browser"} + {"config":{"assertions":[],"configVariables":[],"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":[{"example":"5970","name":"MY_PATTERN_VAR","pattern":"{{numeric(4)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-updated","options":{"ci":{"executionRule":"skipped"},"device_ids":["laptop_large","tablet"],"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"rumSettings":{"isEnabled":false},"tick_every":1800},"status":"live","steps":[{"allowFailure":false,"isCritical":false,"name":"first step updated","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"allowFailure":false,"isCritical":false,"name":"press key step","params":{"modifiers":[],"value":"1"},"timeout":0,"type":"pressKey"}],"tags":["foo:bar","buz"],"type":"browser"} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/vv2-vi7-zfm + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bnj-5tq-jmi method: PUT response: body: | - {"status":"live","public_id":"vv2-vi7-zfm","tags":["foo:bar","buz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-updated","monitor_id":100397907,"type":"browser","created_at":"2022-10-19T13:52:08.083709+00:00","modified_at":"2022-10-19T13:52:11.485585+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"bnj-5tq-jmi","tags":["foo:bar","buz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-updated","monitor_id":102642957,"type":"browser","created_at":"2022-11-10T14:56:48.441702+00:00","modified_at":"2022-11-10T14:56:51.197042+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -149,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/vv2-vi7-zfm + url: https://api.datadoghq.com/api/v1/synthetics/tests/bnj-5tq-jmi method: GET response: body: | - {"status":"live","public_id":"vv2-vi7-zfm","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-updated","monitor_id":100397907,"type":"browser","created_at":"2022-10-19T13:52:08.083709+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:11.485585+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"bnj-5tq-jmi","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-updated","monitor_id":102642957,"type":"browser","created_at":"2022-11-10T14:56:48.441702+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:51.197042+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -166,11 +166,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/vv2-vi7-zfm + url: https://api.datadoghq.com/api/v1/synthetics/tests/bnj-5tq-jmi method: GET response: body: | - {"status":"live","public_id":"vv2-vi7-zfm","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-updated","monitor_id":100397907,"type":"browser","created_at":"2022-10-19T13:52:08.083709+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:11.485585+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"bnj-5tq-jmi","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-updated","monitor_id":102642957,"type":"browser","created_at":"2022-11-10T14:56:48.441702+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:51.197042+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -183,11 +183,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/vv2-vi7-zfm + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bnj-5tq-jmi method: GET response: body: | - {"status":"live","public_id":"vv2-vi7-zfm","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1666187526-updated","monitor_id":100397907,"type":"browser","created_at":"2022-10-19T13:52:08.083709+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:11.485585+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"bnj-5tq-jmi","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-updated","monitor_id":102642957,"type":"browser","created_at":"2022-11-10T14:56:48.441702+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:51.197042+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -196,7 +196,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["vv2-vi7-zfm"]} + {"public_ids":["bnj-5tq-jmi"]} form: {} headers: Accept: @@ -207,7 +207,7 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"deleted_at":"2022-10-19T13:52:13.054072+00:00","public_id":"vv2-vi7-zfm"}]} + {"deleted_tests":[{"deleted_at":"2022-11-10T14:56:53.143279+00:00","public_id":"bnj-5tq-jmi"}]} headers: Content-Type: - application/json @@ -220,7 +220,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/vv2-vi7-zfm + url: https://api.datadoghq.com/api/v1/synthetics/tests/bnj-5tq-jmi method: GET response: body: '{"errors":["Synthetics test not found"]}' diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.freeze index c1dfb540af..f747fdfba7 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.freeze @@ -1 +1 @@ -2022-10-19T09:52:06.698853-04:00 \ No newline at end of file +2022-11-10T09:56:47.041404-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.yaml index b572e1e0d8..137f62dcd7 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["abc"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} + {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"feu-rh7-9tn","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526","monitor_id":100397908,"type":"browser","created_at":"2022-10-19T13:52:08.261101+00:00","modified_at":"2022-10-19T13:52:08.261101+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"ja5-qfx-tf4","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207","monitor_id":102642958,"type":"browser","created_at":"2022-11-10T14:56:48.483311+00:00","modified_at":"2022-11-10T14:56:48.483311+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/feu-rh7-9tn + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/ja5-qfx-tf4 method: GET response: body: | - {"status":"paused","public_id":"feu-rh7-9tn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526","monitor_id":100397908,"type":"browser","created_at":"2022-10-19T13:52:08.261101+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.261101+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"ja5-qfx-tf4","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207","monitor_id":102642958,"type":"browser","created_at":"2022-11-10T14:56:48.483311+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.483311+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -44,11 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/feu-rh7-9tn + url: https://api.datadoghq.com/api/v1/synthetics/tests/ja5-qfx-tf4 method: GET response: body: | - {"status":"paused","public_id":"feu-rh7-9tn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526","monitor_id":100397908,"type":"browser","created_at":"2022-10-19T13:52:08.261101+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.261101+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"ja5-qfx-tf4","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207","monitor_id":102642958,"type":"browser","created_at":"2022-11-10T14:56:48.483311+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.483311+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -61,11 +61,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/feu-rh7-9tn + url: https://api.datadoghq.com/api/v1/synthetics/tests/ja5-qfx-tf4 method: GET response: body: | - {"status":"paused","public_id":"feu-rh7-9tn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526","monitor_id":100397908,"type":"browser","created_at":"2022-10-19T13:52:08.261101+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.261101+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"ja5-qfx-tf4","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207","monitor_id":102642958,"type":"browser","created_at":"2022-11-10T14:56:48.483311+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.483311+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +78,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/feu-rh7-9tn + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/ja5-qfx-tf4 method: GET response: body: | - {"status":"paused","public_id":"feu-rh7-9tn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526","monitor_id":100397908,"type":"browser","created_at":"2022-10-19T13:52:08.261101+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.261101+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"ja5-qfx-tf4","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207","monitor_id":102642958,"type":"browser","created_at":"2022-11-10T14:56:48.483311+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.483311+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -95,11 +95,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/feu-rh7-9tn + url: https://api.datadoghq.com/api/v1/synthetics/tests/ja5-qfx-tf4 method: GET response: body: | - {"status":"paused","public_id":"feu-rh7-9tn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526","monitor_id":100397908,"type":"browser","created_at":"2022-10-19T13:52:08.261101+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.261101+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"ja5-qfx-tf4","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207","monitor_id":102642958,"type":"browser","created_at":"2022-11-10T14:56:48.483311+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.483311+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -112,11 +112,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/feu-rh7-9tn + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/ja5-qfx-tf4 method: GET response: body: | - {"status":"paused","public_id":"feu-rh7-9tn","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526","monitor_id":100397908,"type":"browser","created_at":"2022-10-19T13:52:08.261101+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:08.261101+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"ja5-qfx-tf4","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207","monitor_id":102642958,"type":"browser","created_at":"2022-11-10T14:56:48.483311+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.483311+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -125,18 +125,18 @@ interactions: duration: "" - request: body: | - {"config":{"assertions":[],"configVariables":[],"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":[{"example":"5970","name":"MY_PATTERN_VAR","pattern":"{{numeric(4)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-updated-rumsettings","options":{"ci":{"executionRule":"skipped"},"device_ids":["laptop_large","tablet"],"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"rumSettings":{"isEnabled":false},"tick_every":1800},"status":"live","steps":[{"allowFailure":false,"isCritical":false,"name":"first step updated","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"allowFailure":false,"isCritical":false,"name":"press key step","params":{"modifiers":[],"value":"1"},"timeout":0,"type":"pressKey"}],"tags":["foo:bar","buz"],"type":"browser"} + {"config":{"assertions":[],"configVariables":[],"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":[{"example":"5970","name":"MY_PATTERN_VAR","pattern":"{{numeric(4)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-updated-rumsettings","options":{"ci":{"executionRule":"skipped"},"device_ids":["laptop_large","tablet"],"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"rumSettings":{"isEnabled":false},"tick_every":1800},"status":"live","steps":[{"allowFailure":false,"isCritical":false,"name":"first step updated","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"allowFailure":false,"isCritical":false,"name":"press key step","params":{"modifiers":[],"value":"1"},"timeout":0,"type":"pressKey"}],"tags":["foo:bar","buz"],"type":"browser"} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/feu-rh7-9tn + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/ja5-qfx-tf4 method: PUT response: body: | - {"status":"live","public_id":"feu-rh7-9tn","tags":["foo:bar","buz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-updated-rumsettings","monitor_id":100397908,"type":"browser","created_at":"2022-10-19T13:52:08.261101+00:00","modified_at":"2022-10-19T13:52:10.812209+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"ja5-qfx-tf4","tags":["foo:bar","buz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-updated-rumsettings","monitor_id":102642958,"type":"browser","created_at":"2022-11-10T14:56:48.483311+00:00","modified_at":"2022-11-10T14:56:51.174464+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -149,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/feu-rh7-9tn + url: https://api.datadoghq.com/api/v1/synthetics/tests/ja5-qfx-tf4 method: GET response: body: | - {"status":"live","public_id":"feu-rh7-9tn","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-updated-rumsettings","monitor_id":100397908,"type":"browser","created_at":"2022-10-19T13:52:08.261101+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:10.812209+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"ja5-qfx-tf4","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-updated-rumsettings","monitor_id":102642958,"type":"browser","created_at":"2022-11-10T14:56:48.483311+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:51.174464+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -166,11 +166,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/feu-rh7-9tn + url: https://api.datadoghq.com/api/v1/synthetics/tests/ja5-qfx-tf4 method: GET response: body: | - {"status":"live","public_id":"feu-rh7-9tn","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-updated-rumsettings","monitor_id":100397908,"type":"browser","created_at":"2022-10-19T13:52:08.261101+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:10.812209+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"ja5-qfx-tf4","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-updated-rumsettings","monitor_id":102642958,"type":"browser","created_at":"2022-11-10T14:56:48.483311+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:51.174464+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -183,11 +183,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/feu-rh7-9tn + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/ja5-qfx-tf4 method: GET response: body: | - {"status":"live","public_id":"feu-rh7-9tn","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1666187526-updated-rumsettings","monitor_id":100397908,"type":"browser","created_at":"2022-10-19T13:52:08.261101+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:10.812209+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"ja5-qfx-tf4","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-updated-rumsettings","monitor_id":102642958,"type":"browser","created_at":"2022-11-10T14:56:48.483311+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:51.174464+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -196,7 +196,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["feu-rh7-9tn"]} + {"public_ids":["ja5-qfx-tf4"]} form: {} headers: Accept: @@ -207,7 +207,7 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"deleted_at":"2022-10-19T13:52:12.683520+00:00","public_id":"feu-rh7-9tn"}]} + {"deleted_tests":[{"deleted_at":"2022-11-10T14:56:53.992430+00:00","public_id":"ja5-qfx-tf4"}]} headers: Content-Type: - application/json @@ -220,7 +220,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/feu-rh7-9tn + url: https://api.datadoghq.com/api/v1/synthetics/tests/ja5-qfx-tf4 method: GET response: body: '{"errors":["Synthetics test not found"]}' diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.freeze index 9f07c5d363..4825b3a9a9 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.freeze @@ -1 +1 @@ -2022-10-19T09:52:56.69711-04:00 \ No newline at end of file +2022-11-10T09:55:30.89036-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml index 6a2bc13a9a..cf507afaae 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["abc"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} + {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"bet-hca-pb3","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576","monitor_id":100397936,"type":"browser","created_at":"2022-10-19T13:52:57.906459+00:00","modified_at":"2022-10-19T13:52:57.906459+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"3x5-x5w-mmi","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130","monitor_id":102642887,"type":"browser","created_at":"2022-11-10T14:55:32.672316+00:00","modified_at":"2022-11-10T14:55:32.672316+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bet-hca-pb3 + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/3x5-x5w-mmi method: GET response: body: | - {"status":"paused","public_id":"bet-hca-pb3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576","monitor_id":100397936,"type":"browser","created_at":"2022-10-19T13:52:57.906459+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:57.906459+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"3x5-x5w-mmi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130","monitor_id":102642887,"type":"browser","created_at":"2022-11-10T14:55:32.672316+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:32.672316+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -44,11 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/bet-hca-pb3 + url: https://api.datadoghq.com/api/v1/synthetics/tests/3x5-x5w-mmi method: GET response: body: | - {"status":"paused","public_id":"bet-hca-pb3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576","monitor_id":100397936,"type":"browser","created_at":"2022-10-19T13:52:57.906459+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:57.906459+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"3x5-x5w-mmi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130","monitor_id":102642887,"type":"browser","created_at":"2022-11-10T14:55:32.672316+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:32.672316+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -61,11 +61,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bet-hca-pb3 + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/3x5-x5w-mmi method: GET response: body: | - {"status":"paused","public_id":"bet-hca-pb3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576","monitor_id":100397936,"type":"browser","created_at":"2022-10-19T13:52:57.906459+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:57.906459+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"3x5-x5w-mmi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130","monitor_id":102642887,"type":"browser","created_at":"2022-11-10T14:55:32.672316+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:32.672316+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +78,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/bet-hca-pb3 + url: https://api.datadoghq.com/api/v1/synthetics/tests/3x5-x5w-mmi method: GET response: body: | - {"status":"paused","public_id":"bet-hca-pb3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576","monitor_id":100397936,"type":"browser","created_at":"2022-10-19T13:52:57.906459+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:57.906459+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"3x5-x5w-mmi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130","monitor_id":102642887,"type":"browser","created_at":"2022-11-10T14:55:32.672316+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:32.672316+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -95,11 +95,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bet-hca-pb3 + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/3x5-x5w-mmi method: GET response: body: | - {"status":"paused","public_id":"bet-hca-pb3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576","monitor_id":100397936,"type":"browser","created_at":"2022-10-19T13:52:57.906459+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-10-19T13:52:57.906459+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1666187576-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"3x5-x5w-mmi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130","monitor_id":102642887,"type":"browser","created_at":"2022-11-10T14:55:32.672316+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:32.672316+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -108,7 +108,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["bet-hca-pb3"]} + {"public_ids":["3x5-x5w-mmi"]} form: {} headers: Accept: @@ -119,7 +119,7 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"deleted_at":"2022-10-19T13:53:00.195383+00:00","public_id":"bet-hca-pb3"}]} + {"deleted_tests":[{"deleted_at":"2022-11-10T14:55:34.882700+00:00","public_id":"3x5-x5w-mmi"}]} headers: Content-Type: - application/json @@ -132,7 +132,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/bet-hca-pb3 + url: https://api.datadoghq.com/api/v1/synthetics/tests/3x5-x5w-mmi method: GET response: body: '{"errors":["Synthetics test not found"]}' diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze index 5b767102bc..01ed5dc716 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze @@ -1 +1 @@ -2022-04-29T14:29:42.297762+02:00 \ No newline at end of file +2022-11-10T09:55:56.660298-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml index 98311b925e..5c1bf0ebdb 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"a global variable","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382","tags":["foo:bar","baz"],"value":{"secure":false,"value":"variable-value"}} + {"description":"a global variable","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668092156","tags":["foo:bar","baz"],"value":{"secure":false,"value":"variable-value"}} form: {} headers: Accept: @@ -13,7 +13,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/variables method: POST response: - body: '{"parse_test_options":null,"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"is_totp":null,"value":{"secure":false,"value":"variable-value"},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382"}' + body: | + {"parse_test_options":null,"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"is_totp":null,"value":{"secure":false,"value":"variable-value"},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"ed8d2a13-bc07-4a3b-aadb-0e01fb16630f","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668092156"} headers: Content-Type: - application/json @@ -26,10 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d + url: https://api.datadoghq.com/api/v1/synthetics/variables/ed8d2a13-bc07-4a3b-aadb-0e01fb16630f method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382","created_at":"2022-04-29T12:29:57.159294+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:57.159294+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"ed8d2a13-bc07-4a3b-aadb-0e01fb16630f","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668092156","created_at":"2022-11-10T14:55:57.890524+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:57.890524+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -42,10 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d + url: https://api.datadoghq.com/api/v1/synthetics/variables/ed8d2a13-bc07-4a3b-aadb-0e01fb16630f method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382","created_at":"2022-04-29T12:29:57.159294+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:57.159294+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"ed8d2a13-bc07-4a3b-aadb-0e01fb16630f","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668092156","created_at":"2022-11-10T14:55:57.890524+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:57.890524+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -54,7 +57,7 @@ interactions: duration: "" - request: body: | - {"config":{"assertions":[],"configVariables":[{"id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME","type":"global"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[{"field":"content-length","name":"VAR_EXTRACT","parser":{"type":"regex","value":".*"},"type":"http_header"}],"isCritical":false,"name":"First api step","request":{"allow_insecure":true,"basicAuth":{"accessKey":"sigv4-access-key","region":"sigv4-region","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","sessionToken":"sigv4-session-token","type":"sigv4"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"follow_redirects":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Second api step","request":{"allow_insecure":true,"body":"","follow_redirects":true,"method":"GET","timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","options":{"min_location_failed":1,"restricted_roles":["abc"],"tick_every":900},"status":"paused","subtype":"multi","tags":["multistep"],"type":"api"} + {"config":{"assertions":[],"configVariables":[{"id":"ed8d2a13-bc07-4a3b-aadb-0e01fb16630f","name":"VARIABLE_NAME","type":"global"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[{"field":"content-length","name":"VAR_EXTRACT","parser":{"type":"regex","value":".*"},"type":"http_header"}],"isCritical":false,"name":"First api step","request":{"allow_insecure":true,"basicAuth":{"accessKey":"sigv4-access-key","region":"sigv4-region","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","sessionToken":"sigv4-session-token","type":"sigv4"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"follow_redirects":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Second api step","request":{"allow_insecure":true,"body":"","follow_redirects":true,"method":"GET","timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668092156","options":{"min_location_failed":1,"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"tick_every":900},"status":"paused","subtype":"multi","tags":["multistep"],"type":"api"} form: {} headers: Accept: @@ -64,7 +67,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/api method: POST response: - body: '{"status":"paused","public_id":"f2v-mbp-xf2","tags":["multistep"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","monitor_id":70157553,"type":"api","created_at":"2022-04-29T12:29:58.051539+00:00","modified_at":"2022-04-29T12:29:58.051539+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4ci-3uv-nsd","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"ebg-f4a-mpi","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}}' + body: | + {"status":"paused","public_id":"gxf-4yx-uqd","tags":["multistep"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668092156","monitor_id":102642908,"type":"api","created_at":"2022-11-10T14:55:58.362721+00:00","modified_at":"2022-11-10T14:55:58.362721+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"yrc-fgh-tte","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"55r-w3r-dha","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"ed8d2a13-bc07-4a3b-aadb-0e01fb16630f","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"min_location_failed":1,"tick_every":900}} headers: Content-Type: - application/json @@ -77,10 +81,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/f2v-mbp-xf2 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/gxf-4yx-uqd method: GET response: - body: '{"status":"paused","public_id":"f2v-mbp-xf2","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","monitor_id":70157553,"type":"api","created_at":"2022-04-29T12:29:58.051539+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:58.051539+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4ci-3uv-nsd","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"ebg-f4a-mpi","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}}' + body: | + {"status":"paused","public_id":"gxf-4yx-uqd","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668092156","monitor_id":102642908,"type":"api","created_at":"2022-11-10T14:55:58.362721+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:58.362721+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"yrc-fgh-tte","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"55r-w3r-dha","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"ed8d2a13-bc07-4a3b-aadb-0e01fb16630f","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"min_location_failed":1,"tick_every":900}} headers: Content-Type: - application/json @@ -93,10 +98,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d + url: https://api.datadoghq.com/api/v1/synthetics/variables/ed8d2a13-bc07-4a3b-aadb-0e01fb16630f method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382","created_at":"2022-04-29T12:29:57.159294+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:57.159294+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"ed8d2a13-bc07-4a3b-aadb-0e01fb16630f","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668092156","created_at":"2022-11-10T14:55:57.890524+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:57.890524+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -109,10 +115,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/f2v-mbp-xf2 + url: https://api.datadoghq.com/api/v1/synthetics/tests/gxf-4yx-uqd method: GET response: - body: '{"status":"paused","public_id":"f2v-mbp-xf2","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","monitor_id":70157553,"type":"api","created_at":"2022-04-29T12:29:58.051539+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:58.051539+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4ci-3uv-nsd","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"ebg-f4a-mpi","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}}' + body: | + {"status":"paused","public_id":"gxf-4yx-uqd","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668092156","monitor_id":102642908,"type":"api","created_at":"2022-11-10T14:55:58.362721+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:58.362721+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"yrc-fgh-tte","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"55r-w3r-dha","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"ed8d2a13-bc07-4a3b-aadb-0e01fb16630f","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"min_location_failed":1,"tick_every":900}} headers: Content-Type: - application/json @@ -125,10 +132,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d + url: https://api.datadoghq.com/api/v1/synthetics/variables/ed8d2a13-bc07-4a3b-aadb-0e01fb16630f method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1651235382","created_at":"2022-04-29T12:29:57.159294+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:57.159294+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' + body: | + {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"ed8d2a13-bc07-4a3b-aadb-0e01fb16630f","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668092156","created_at":"2022-11-10T14:55:57.890524+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:57.890524+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -141,10 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/f2v-mbp-xf2 + url: https://api.datadoghq.com/api/v1/synthetics/tests/gxf-4yx-uqd method: GET response: - body: '{"status":"paused","public_id":"f2v-mbp-xf2","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","monitor_id":70157553,"type":"api","created_at":"2022-04-29T12:29:58.051539+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:58.051539+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4ci-3uv-nsd","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"ebg-f4a-mpi","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}}' + body: | + {"status":"paused","public_id":"gxf-4yx-uqd","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668092156","monitor_id":102642908,"type":"api","created_at":"2022-11-10T14:55:58.362721+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:58.362721+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"yrc-fgh-tte","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"55r-w3r-dha","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"ed8d2a13-bc07-4a3b-aadb-0e01fb16630f","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"min_location_failed":1,"tick_every":900}} headers: Content-Type: - application/json @@ -157,10 +166,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/f2v-mbp-xf2 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/gxf-4yx-uqd method: GET response: - body: '{"status":"paused","public_id":"f2v-mbp-xf2","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1651235382","monitor_id":70157553,"type":"api","created_at":"2022-04-29T12:29:58.051539+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-04-29T12:29:58.051539+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"4ci-3uv-nsd","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"ebg-f4a-mpi","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"3a1ce1cd-cfdd-46b0-b472-c7745e59a53d","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["abc"],"min_location_failed":1,"tick_every":900}}' + body: | + {"status":"paused","public_id":"gxf-4yx-uqd","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668092156","monitor_id":102642908,"type":"api","created_at":"2022-11-10T14:55:58.362721+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:58.362721+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"yrc-fgh-tte","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"55r-w3r-dha","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"ed8d2a13-bc07-4a3b-aadb-0e01fb16630f","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"min_location_failed":1,"tick_every":900}} headers: Content-Type: - application/json @@ -169,7 +179,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["f2v-mbp-xf2"]} + {"public_ids":["gxf-4yx-uqd"]} form: {} headers: Accept: @@ -179,7 +189,8 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-04-29T12:30:22.714620+00:00","public_id":"f2v-mbp-xf2"}]}' + body: | + {"deleted_tests":[{"deleted_at":"2022-11-10T14:56:00.040530+00:00","public_id":"gxf-4yx-uqd"}]} headers: Content-Type: - application/json @@ -192,13 +203,13 @@ interactions: headers: Accept: - '*/*' - url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d + url: https://api.datadoghq.com/api/v1/synthetics/variables/ed8d2a13-bc07-4a3b-aadb-0e01fb16630f method: DELETE response: - body: '{}' + body: "" headers: Content-Type: - - application/json + - text/html; charset=utf-8 status: 200 OK code: 200 duration: "" @@ -208,10 +219,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/3a1ce1cd-cfdd-46b0-b472-c7745e59a53d + url: https://api.datadoghq.com/api/v1/synthetics/variables/ed8d2a13-bc07-4a3b-aadb-0e01fb16630f method: GET response: - body: '{"errors": ["Synthetics global variable not found"]}' + body: '{"errors":["Synthetics global variable not found"]}' headers: Content-Type: - application/json @@ -224,10 +235,10 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/f2v-mbp-xf2 + url: https://api.datadoghq.com/api/v1/synthetics/tests/gxf-4yx-uqd method: GET response: - body: '{"errors": ["Synthetics test not found"]}' + body: '{"errors":["Synthetics test not found"]}' headers: Content-Type: - application/json diff --git a/datadog/tests/resource_datadog_synthetics_test_test.go b/datadog/tests/resource_datadog_synthetics_test_test.go index 3c792a82d5..797b717563 100644 --- a/datadog/tests/resource_datadog_synthetics_test_test.go +++ b/datadog/tests/resource_datadog_synthetics_test_test.go @@ -600,7 +600,7 @@ func createSyntheticsAPITestStep(ctx context.Context, accProvider func() (*schem resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "options_list.0_list.#", "0"), resource.TestCheckResourceAttr( - "datadog_synthetics_test.foo", "options_list.0.restricted_roles.0", "abc"), + "datadog_synthetics_test.foo", "options_list.0.restricted_roles.0", "667cbd82-c7d1-11ec-aad8-da7ad0900002"), resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "options_list.0.ci.0.execution_rule", "blocking"), resource.TestCheckResourceAttr( @@ -701,7 +701,7 @@ resource "datadog_synthetics_test" "foo" { } monitor_name = "%[1]s-monitor" monitor_priority = 5 - restricted_roles = ["abc"] + restricted_roles = ["667cbd82-c7d1-11ec-aad8-da7ad0900002"] ci { execution_rule = "blocking" } @@ -2240,7 +2240,7 @@ func createSyntheticsBrowserTestStep(ctx context.Context, accProvider func() (*s resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "options_list.0.monitor_priority", "5"), resource.TestCheckResourceAttr( - "datadog_synthetics_test.bar", "options_list.0.restricted_roles.0", "abc"), + "datadog_synthetics_test.bar", "options_list.0.restricted_roles.0", "667cbd82-c7d1-11ec-aad8-da7ad0900002"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "options_list.0.rum_settings.0.is_enabled", "true"), resource.TestCheckResourceAttr( @@ -2352,7 +2352,7 @@ resource "datadog_synthetics_test" "bar" { } monitor_name = "%[1]s-monitor" monitor_priority = 5 - restricted_roles = ["abc"] + restricted_roles = ["667cbd82-c7d1-11ec-aad8-da7ad0900002"] no_screenshot = true @@ -3519,7 +3519,7 @@ func createSyntheticsMultistepAPITest(ctx context.Context, accProvider func() (* resource.TestCheckResourceAttr( "datadog_synthetics_test.multi", "options_list.0.min_location_failed", "1"), resource.TestCheckResourceAttr( - "datadog_synthetics_test.multi", "options_list.0.restricted_roles.0", "abc"), + "datadog_synthetics_test.multi", "options_list.0.restricted_roles.0", "667cbd82-c7d1-11ec-aad8-da7ad0900002"), resource.TestCheckResourceAttr( "datadog_synthetics_test.multi", "name", testName), resource.TestCheckResourceAttr( @@ -3647,7 +3647,7 @@ resource "datadog_synthetics_test" "multi" { tick_every = 900 min_failure_duration = 0 min_location_failed = 1 - restricted_roles = ["abc"] + restricted_roles = ["667cbd82-c7d1-11ec-aad8-da7ad0900002"] } name = "%[1]s" message = "Notify @datadog.user" From 0369bc2d23a2e35b7ff072aef65a755d7c6c585d Mon Sep 17 00:00:00 2001 From: Kevin Zou Date: Thu, 10 Nov 2022 12:31:42 -0500 Subject: [PATCH 09/10] create role resource before synthetics tests --- .../resource_datadog_synthetics_test_test.go | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/datadog/tests/resource_datadog_synthetics_test_test.go b/datadog/tests/resource_datadog_synthetics_test_test.go index 797b717563..b0a809fca2 100644 --- a/datadog/tests/resource_datadog_synthetics_test_test.go +++ b/datadog/tests/resource_datadog_synthetics_test_test.go @@ -600,7 +600,7 @@ func createSyntheticsAPITestStep(ctx context.Context, accProvider func() (*schem resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "options_list.0_list.#", "0"), resource.TestCheckResourceAttr( - "datadog_synthetics_test.foo", "options_list.0.restricted_roles.0", "667cbd82-c7d1-11ec-aad8-da7ad0900002"), + "datadog_synthetics_test.foo", "options_list.0.restricted_roles.#", "1"), resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "options_list.0.ci.0.execution_rule", "blocking"), resource.TestCheckResourceAttr( @@ -633,6 +633,10 @@ func createSyntheticsAPITestStep(ctx context.Context, accProvider func() (*schem func createSyntheticsAPITestConfig(uniq string) string { return fmt.Sprintf(` +resource "datadog_role" "bar" { + name = "%[1]s" +} + resource "datadog_synthetics_test" "foo" { type = "api" subtype = "http" @@ -701,7 +705,7 @@ resource "datadog_synthetics_test" "foo" { } monitor_name = "%[1]s-monitor" monitor_priority = 5 - restricted_roles = ["667cbd82-c7d1-11ec-aad8-da7ad0900002"] + restricted_roles = ["${datadog_role.bar.id}"] ci { execution_rule = "blocking" } @@ -2240,7 +2244,7 @@ func createSyntheticsBrowserTestStep(ctx context.Context, accProvider func() (*s resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "options_list.0.monitor_priority", "5"), resource.TestCheckResourceAttr( - "datadog_synthetics_test.bar", "options_list.0.restricted_roles.0", "667cbd82-c7d1-11ec-aad8-da7ad0900002"), + "datadog_synthetics_test.bar", "options_list.0.restricted_roles.#", "1"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "options_list.0.rum_settings.0.is_enabled", "true"), resource.TestCheckResourceAttr( @@ -2305,6 +2309,9 @@ func createSyntheticsBrowserTestStep(ctx context.Context, accProvider func() (*s func createSyntheticsBrowserTestConfig(uniq string) string { return fmt.Sprintf(` +resource "datadog_role" "bar" { + name = "%[1]s" +} resource "datadog_synthetics_test" "bar" { type = "browser" @@ -2352,7 +2359,7 @@ resource "datadog_synthetics_test" "bar" { } monitor_name = "%[1]s-monitor" monitor_priority = 5 - restricted_roles = ["667cbd82-c7d1-11ec-aad8-da7ad0900002"] + restricted_roles = ["${datadog_role.bar.id}"] no_screenshot = true @@ -3519,7 +3526,7 @@ func createSyntheticsMultistepAPITest(ctx context.Context, accProvider func() (* resource.TestCheckResourceAttr( "datadog_synthetics_test.multi", "options_list.0.min_location_failed", "1"), resource.TestCheckResourceAttr( - "datadog_synthetics_test.multi", "options_list.0.restricted_roles.0", "667cbd82-c7d1-11ec-aad8-da7ad0900002"), + "datadog_synthetics_test.multi", "options_list.0.restricted_roles.#", "1"), resource.TestCheckResourceAttr( "datadog_synthetics_test.multi", "name", testName), resource.TestCheckResourceAttr( @@ -3632,6 +3639,10 @@ func createSyntheticsMultistepAPITest(ctx context.Context, accProvider func() (* func createSyntheticsMultistepAPITestConfig(testName string, variableName string) string { return fmt.Sprintf(` +resource "datadog_role" "bar" { + name = "%[1]s" +} + resource "datadog_synthetics_global_variable" "global_variable" { name = "%[2]s" description = "a global variable" @@ -3647,8 +3658,8 @@ resource "datadog_synthetics_test" "multi" { tick_every = 900 min_failure_duration = 0 min_location_failed = 1 - restricted_roles = ["667cbd82-c7d1-11ec-aad8-da7ad0900002"] - } + restricted_roles = ["${datadog_role.bar.id}"] +} name = "%[1]s" message = "Notify @datadog.user" tags = ["multistep"] From 47ef198c2f0f7a89b61cdc4c3d2fdd20a5b9a5c0 Mon Sep 17 00:00:00 2001 From: Kevin Zou Date: Thu, 10 Nov 2022 13:09:22 -0500 Subject: [PATCH 10/10] replace hardcoded role name with role resource --- ...stAccDatadogSyntheticsAPITest_Basic.freeze | 2 +- ...TestAccDatadogSyntheticsAPITest_Basic.yaml | 129 +++++++++++++-- ...csAPITest_BasicNewAssertionsOptions.freeze | 2 +- ...ticsAPITest_BasicNewAssertionsOptions.yaml | 26 +-- ...AccDatadogSyntheticsAPITest_Updated.freeze | 2 +- ...stAccDatadogSyntheticsAPITest_Updated.yaml | 156 +++++++++++++++--- ...APITest_UpdatedNewAssertionsOptions.freeze | 2 +- ...csAPITest_UpdatedNewAssertionsOptions.yaml | 52 +++--- ...atadogSyntheticsAPITest_importBasic.freeze | 2 +- ...cDatadogSyntheticsAPITest_importBasic.yaml | 133 +++++++++++++-- ...cDatadogSyntheticsBrowserTest_Basic.freeze | 2 +- ...AccDatadogSyntheticsBrowserTest_Basic.yaml | 129 +++++++++++++-- ...atadogSyntheticsBrowserTest_Updated.freeze | 2 +- ...cDatadogSyntheticsBrowserTest_Updated.yaml | 156 +++++++++++++++--- ...ticsBrowserTest_Updated_RumSettings.freeze | 2 +- ...heticsBrowserTest_Updated_RumSettings.yaml | 156 +++++++++++++++--- ...ogSyntheticsBrowserTest_importBasic.freeze | 2 +- ...adogSyntheticsBrowserTest_importBasic.yaml | 133 +++++++++++++-- ...dogSyntheticsTestMultistepApi_Basic.freeze | 2 +- ...tadogSyntheticsTestMultistepApi_Basic.yaml | 137 ++++++++++++--- .../resource_datadog_synthetics_test_test.go | 3 + 21 files changed, 1022 insertions(+), 208 deletions(-) diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze index 00f245b918..40f9854086 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze @@ -1 +1 @@ -2022-11-10T09:57:37.684108-05:00 \ No newline at end of file +2022-11-10T13:06:26.139859-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml index ba8c79cb06..f26cfbdad4 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml @@ -1,9 +1,63 @@ --- version: 1 interactions: +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/permissions + method: GET + response: + body: | + {"data":[{"type":"permissions","id":"984a2bd4-d3b4-11e8-a1ff-a7f660d43029","attributes":{"name":"admin","display_name":"Privileged Access","description":"Deprecated. Privileged Access (also known as Admin permission) has been replaced by more specific permissions: Access Management, Org Management, Billing Read/Write, Usage Read/Write.","created":"2018-10-19T15:35:23.734317+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"984d2f00-d3b4-11e8-a200-bb47109e9987","attributes":{"name":"standard","display_name":"Standard Access","description":"View and edit components in your Datadog organization that do not have explicitly defined permissions. This includes configuring events, facets (except logs), and saved views.","created":"2018-10-19T15:35:23.756736+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"5e605652-dd12-11e8-9e53-375565b8970e","attributes":{"name":"logs_read_index_data","display_name":"Logs Read Index Data","description":"Read log data, possibly scoped to one or more indexes. In order to read log data, a user must have both this permission and Logs Read Data. This permission can be granted in a limited capacity per index from the Logs interface or APIs. If granted via the Roles interface or API the permission has global scope. Restrictions are limited to the Log Management product.","created":"2018-10-31T13:39:19.727450+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"62cc036c-dd12-11e8-9e54-db9995643092","attributes":{"name":"logs_modify_indexes","display_name":"Logs Modify Indexes","description":"Read and modify all indexes in your account. This includes the ability to grant the Logs Read Index Data and Logs Write Exclusion Filters permission to other roles, for some or all indexes.","created":"2018-10-31T13:39:27.148615+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"6f66600e-dd12-11e8-9e55-7f30fbb45e73","attributes":{"name":"logs_live_tail","display_name":"Logs Live Tail","description":"View the live tail feed for all log indexes, even if otherwise specifically restricted.","created":"2018-10-31T13:39:48.292879+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7d7c98ac-dd12-11e8-9e56-93700598622d","attributes":{"name":"logs_write_exclusion_filters","display_name":"Logs Write Exclusion Filters","description":"Add and change exclusion filters for all or some log indexes. Can be granted in a limited capacity per index to specific roles via the Logs interface or API. If granted from the Roles interface or API, the permission has global scope.","created":"2018-10-31T13:40:11.926613+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"811ac4ca-dd12-11e8-9e57-676a7f0beef9","attributes":{"name":"logs_write_pipelines","display_name":"Logs Write Pipelines","description":"Add and change log pipeline configurations, including the ability to grant the Logs Write Processors permission to other roles, for some or all pipelines.","created":"2018-10-31T13:40:17.996379+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"84aa3ae4-dd12-11e8-9e58-a373a514ccd0","attributes":{"name":"logs_write_processors","display_name":"Logs Write Processors","description":"Add and change some or all log processor configurations. Can be granted in a limited capacity per pipeline to specific roles via the Logs interface or API. If granted via the Roles interface or API the permission has global scope.","created":"2018-10-31T13:40:23.969725+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"87b00304-dd12-11e8-9e59-cbeb5f71f72f","attributes":{"name":"logs_write_archives","display_name":"Logs Write Archives","description":"Add and edit Log Archives.","created":"2018-10-31T13:40:29.040786+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"979df720-aed7-11e9-99c6-a7eb8373165a","attributes":{"name":"logs_generate_metrics","display_name":"Logs Generate Metrics","description":"Create custom metrics from logs.","created":"2019-07-25T12:27:39.640758+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2","attributes":{"name":"dashboards_read","display_name":"Dashboards Read","description":"View dashboards.","created":"2019-09-10T14:39:51.955175+00:00","group_name":"Dashboards","display_type":"read","restricted":true}},{"type":"permissions","id":"d90f6831-d3d8-11e9-a77a-4fd230ddbc6a","attributes":{"name":"dashboards_write","display_name":"Dashboards Write","description":"Create and change dashboards.","created":"2019-09-10T14:39:51.962944+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"d90f6832-d3d8-11e9-a77a-bf8a2607f864","attributes":{"name":"dashboards_public_share","display_name":"Dashboards Public Share","description":"Generate public and authenticated links to share dashboards externally.","created":"2019-09-10T14:39:51.967094+00:00","group_name":"Dashboards","display_type":"other","restricted":false}},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304","attributes":{"name":"monitors_read","display_name":"Monitors Read","description":"View monitors.","created":"2019-09-16T18:39:07.744297+00:00","group_name":"Monitors","display_type":"read","restricted":true}},{"type":"permissions","id":"48ef71ea-d8b1-11e9-a77a-93f408470ad0","attributes":{"name":"monitors_write","display_name":"Monitors Write","description":"Edit, mute, and delete individual monitors.","created":"2019-09-16T18:39:15.597109+00:00","group_name":"Monitors","display_type":"write","restricted":false}},{"type":"permissions","id":"4d87d5f8-d8b1-11e9-a77a-eb9c8350d04f","attributes":{"name":"monitors_downtime","display_name":"Monitors Manage Downtime","description":"Set downtimes to suppress alerts from any monitor in an organization. The ability to write monitors is not required to set downtimes.","created":"2019-09-16T18:39:23.306702+00:00","group_name":"Monitors","display_type":"other","restricted":false}},{"type":"permissions","id":"1af86ce4-7823-11ea-93dc-d7cad1b1c6cb","attributes":{"name":"logs_read_data","display_name":"Logs Read Data","description":"Read log data. In order to read log data, a user must have both this permission and Logs Read Index Data. This permission can be restricted with restriction queries. Restrictions are limited to the Log Management product.","created":"2020-04-06T16:24:35.989108+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"b382b982-8535-11ea-93de-2bf1bdf20798","attributes":{"name":"logs_read_archives","display_name":"Logs Read Archives","description":"Read Log Archives location and use it for rehydration.","created":"2020-04-23T07:40:27.966133+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7314eb20-aa58-11ea-95e2-6fb6e4a451d5","attributes":{"name":"security_monitoring_rules_read","display_name":"Security Rules Read","description":"Read Detection Rules.","created":"2020-06-09T13:52:25.279909+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"7b516476-aa58-11ea-95e2-93718cd56369","attributes":{"name":"security_monitoring_rules_write","display_name":"Security Rules Write","description":"Create and edit Detection Rules.","created":"2020-06-09T13:52:39.099413+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"80de1ec0-aa58-11ea-95e2-aff381626d5d","attributes":{"name":"security_monitoring_signals_read","display_name":"Security Signals Read","description":"View Security Signals.","created":"2020-06-09T13:52:48.410398+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"58b412cc-ff6d-11eb-bc9c-da7ad0900002","attributes":{"name":"security_monitoring_signals_write","display_name":"Security Signals Write","description":"Modify Security Signals.","created":"2021-08-17T15:11:06.963503+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"9ac1d8cc-e707-11ea-aa2d-73d37e989a9d","attributes":{"name":"user_access_invite","display_name":"User Access Invite","description":"Invite other users to your organization.","created":"2020-08-25T19:17:23.539701+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"9de604d8-e707-11ea-aa2d-93f1a783b3a3","attributes":{"name":"user_access_manage","display_name":"User Access Manage","description":"Disable users, manage user roles, manage SAML-to-role mappings, and configure logs restriction queries.","created":"2020-08-25T19:17:28.810412+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301da-ec5c-11ea-aa9f-73bedeab67ee","attributes":{"name":"user_app_keys","display_name":"User App Keys","description":"View and manage Application Keys owned by the user.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301db-ec5c-11ea-aa9f-2fe72193d60e","attributes":{"name":"org_app_keys_read","display_name":"Org App Keys Read","description":"View Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301dc-ec5c-11ea-aa9f-13b33f8f46ea","attributes":{"name":"org_app_keys_write","display_name":"Org App Keys Write","description":"Manage Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301dd-ec5c-11ea-aa9f-97edfb345bc9","attributes":{"name":"synthetics_private_location_read","display_name":"Synthetics Private Location Read","description":"View, search, and use Synthetics private locations.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301de-ec5c-11ea-aa9f-a73252c24806","attributes":{"name":"synthetics_private_location_write","display_name":"Synthetics Private Location Write","description":"Create and delete private locations in addition to having access to the associated installation guidelines.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301df-ec5c-11ea-aa9f-970a9ae645e5","attributes":{"name":"billing_read","display_name":"Billing Read","description":"View your organization's subscription and payment method but not make edits.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e0-ec5c-11ea-aa9f-6ba6cc675d8c","attributes":{"name":"billing_edit","display_name":"Billing Edit","description":"Manage your organization's subscription and payment method.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e1-ec5c-11ea-aa9f-afa39f6f3e36","attributes":{"name":"usage_read","display_name":"Usage Read","description":"View your organization's usage and usage attribution.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e2-ec5c-11ea-aa9f-1f511b7305fd","attributes":{"name":"usage_edit","display_name":"Usage Edit","description":"Manage your organization's usage attribution set-up.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e4-ec5c-11ea-aa9f-87282b3a50cc","attributes":{"name":"metric_tags_write","display_name":"Metric Tags Write","description":"Edit and save tag configurations for custom metrics.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Metrics","display_type":"write","restricted":false}},{"type":"permissions","id":"07c3c146-f7f8-11ea-acf6-0bd62b9ae60e","attributes":{"name":"logs_write_historical_view","display_name":"Logs Write Historical View","description":"Rehydrate logs from Archives.","created":"2020-09-16T08:38:44.242076+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2fbdac76-f923-11ea-adbc-07f3823e2b43","attributes":{"name":"audit_logs_read","display_name":"Audit Trail Read","description":"View Audit Trail in your organization.","created":"2020-09-17T20:20:10.834252+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"372896c4-f923-11ea-adbc-4fecd107156d","attributes":{"name":"api_keys_read","display_name":"API Keys Read","description":"List and retrieve the key values of all API Keys in your organization.","created":"2020-09-17T20:20:23.279769+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"3e4d4d28-f923-11ea-adbc-e3565938c12e","attributes":{"name":"api_keys_write","display_name":"API Keys Write","description":"Create, rename, and revoke API Keys for your organization.","created":"2020-09-17T20:20:35.264430+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"4628ca54-f923-11ea-adbc-4b2b7f88c5e9","attributes":{"name":"synthetics_global_variable_read","display_name":"Synthetics Global Variable Read","description":"View, search, and use Synthetics global variables.","created":"2020-09-17T20:20:48.446916+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"4ada6e36-f923-11ea-adbc-0788e5c5e3cf","attributes":{"name":"synthetics_global_variable_write","display_name":"Synthetics Global Variable Write","description":"Create, edit, and delete global variables for Synthetics.","created":"2020-09-17T20:20:56.322003+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5025ee24-f923-11ea-adbc-576ea241df8d","attributes":{"name":"synthetics_read","display_name":"Synthetics Read","description":"List and view configured Synthetic tests and test results.","created":"2020-09-17T20:21:05.205361+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"55f4b5ec-f923-11ea-adbc-1bfa2334a755","attributes":{"name":"synthetics_write","display_name":"Synthetics Write","description":"Create, edit, and delete Synthetic tests.","created":"2020-09-17T20:21:14.949140+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5c6b88e2-f923-11ea-adbc-abf57d079420","attributes":{"name":"synthetics_default_settings_read","display_name":"Synthetics Default Settings Read","description":"View the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:25.794160+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"642eebe6-f923-11ea-adbc-eb617674ea04","attributes":{"name":"synthetics_default_settings_write","display_name":"Synthetics Default Settings Write","description":"Edit the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:38.818771+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"6ba32d22-0e1a-11eb-ba44-bf9a5aafaa39","attributes":{"name":"logs_write_facets","display_name":"Logs Write Facets","description":"Create or edit Log Facets.","created":"2020-10-14T12:40:20.271908+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"a42e94b2-1476-11eb-bd08-efda28c04248","attributes":{"name":"service_account_write","display_name":"Service Account Write","description":"Create, disable, and use Service Accounts in your organization.","created":"2020-10-22T14:55:35.814239+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"fcac2ad8-2843-11eb-8315-0fe47949d625","attributes":{"name":"integrations_api","display_name":"Integrations API","description":"Deprecated. Use the Integrations APIs to configure integrations. In order to configure integrations from the UI, a user must also have Standard Access.","created":"2020-11-16T19:43:23.198568+00:00","group_name":"Integrations","display_type":"other","restricted":false}},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0","attributes":{"name":"apm_read","display_name":"APM Read","description":"Read and query APM and Trace Analytics.","created":"2020-11-23T20:55:45.006110+00:00","group_name":"APM","display_type":"read","restricted":true}},{"type":"permissions","id":"43fa188e-2dce-11eb-84c0-835ad1fd6287","attributes":{"name":"apm_retention_filter_read","display_name":"APM Retention Filter Read","description":"Read trace retention filters. A user with this permission can view the retention filters page, list of filters, their statistics, and creation info.","created":"2020-11-23T20:55:49.190595+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"465cfe66-2dce-11eb-84c0-6baa888239fa","attributes":{"name":"apm_retention_filter_write","display_name":"APM Retention Filter Write","description":"Create, edit, and delete trace retention filters. A user with this permission can create new retention filters, and update or delete to existing retention filters.","created":"2020-11-23T20:55:53.194236+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"4916eebe-2dce-11eb-84c0-271cb2c672e8","attributes":{"name":"apm_service_ingest_read","display_name":"APM Service Ingest Read","description":"Access service ingestion pages. A user with this permission can view the service ingestion page, list of root services, their statistics, and creation info.","created":"2020-11-23T20:55:57.768261+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"4e3f02b4-2dce-11eb-84c0-2fca946a6efc","attributes":{"name":"apm_service_ingest_write","display_name":"APM Service Ingest Write","description":"Edit service ingestion pages' root services. A user with this permission can edit the root service ingestion and generate a code snippet to increase ingestion per service.","created":"2020-11-23T20:56:06.419518+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"53950c54-2dce-11eb-84c0-a79ae108f6f8","attributes":{"name":"apm_apdex_manage_write","display_name":"APM Apdex Manage Write","description":"Set Apdex T value on any service. A user with this permission can set the T value from the Apdex graph on the service page.","created":"2020-11-23T20:56:15.371926+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"5cbe5f9c-2dce-11eb-84c0-872d3e9f1076","attributes":{"name":"apm_tag_management_write","display_name":"APM Tag Management Write","description":"Edit second primary tag selection. A user with this permission can modify the second primary tag dropdown in the APM settings page.","created":"2020-11-23T20:56:30.742299+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"61765026-2dce-11eb-84c0-833e230d1b8f","attributes":{"name":"apm_primary_operation_write","display_name":"APM Primary Operation Write","description":"Edit the operation name value selection. A user with this permission can modify the operation name list in the APM settings page and the operation name controller on the service page.","created":"2020-11-23T20:56:38.658649+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"04bc1cf2-340a-11eb-873a-43b973c760dd","attributes":{"name":"audit_logs_write","display_name":"Audit Trail Write","description":"Configure Audit Trail in your organization.","created":"2020-12-01T19:18:39.866516+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"8106300a-54f7-11eb-8cbc-7781a434a67b","attributes":{"name":"rum_apps_write","display_name":"RUM Apps Write","description":"Create, edit, and delete RUM Applications.","created":"2021-01-12T16:59:16.324480+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e74-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_write","display_name":"Dynamic Instrumentation Write Configuration","description":"Edit Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.006815+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e75-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_read","display_name":"Dynamic Instrumentation Read Configuration","description":"View Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.010517+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7c-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_read","display_name":"Data Scanner Read","description":"View Data Scanner configurations.","created":"2021-03-29T16:56:46.394971+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7d-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_write","display_name":"Data Scanner Write","description":"Edit Data Scanner configurations.","created":"2021-03-29T16:56:46.398584+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"7df222b6-a45c-11eb-a0af-da7ad0900002","attributes":{"name":"org_management","display_name":"Org Management","description":"Edit org configurations, including authentication and certain security preferences such as configuring SAML, renaming an org, configuring allowed login methods, creating child orgs, subscribing & unsubscribing from apps in the marketplace.","created":"2021-04-23T17:51:12.187340+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"98b984f4-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_read","display_name":"Security Filters Read","description":"Read Security Filters.","created":"2021-05-10T08:56:23.676833+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"98b984f5-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_write","display_name":"Security Filters Write","description":"Create, edit, and delete Security Filters.","created":"2021-05-10T08:56:23.680551+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_read","display_name":"Incident Read","description":"View incidents in Datadog.","created":"2021-06-22T15:11:09.255499+00:00","group_name":"Incidents","display_type":"read","restricted":true}},{"type":"permissions","id":"12efc211-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_write","display_name":"Incident Write","description":"Create, view, and manage incidents in Datadog.","created":"2021-06-22T15:11:09.264369+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20f-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_read","display_name":"Incidents Settings Read","description":"View Incidents settings.","created":"2021-06-22T15:11:09.259568+00:00","group_name":"Incidents","display_type":"read","restricted":false}},{"type":"permissions","id":"12efc210-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_write","display_name":"Incidents Settings Write","description":"Configure Incidents settings.","created":"2021-06-22T15:11:09.261986+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"97971c1c-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_read","display_name":"Application Security Management Event Rules Read","description":"View Application Security Management Event Rules.","created":"2021-07-19T13:31:15.595771+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"97971c1d-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_write","display_name":"Application Security Management Event Rules Write","description":"Edit Application Security Management Event Rules.","created":"2021-07-19T13:31:15.598808+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_apps_read","display_name":"RUM Apps Read","description":"View RUM Applications data.","created":"2021-08-02T09:46:07.671535+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":true}},{"type":"permissions","id":"7605ef25-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_session_replay_read","display_name":"RUM Session Replay Read","description":"View Session Replays.","created":"2021-08-02T09:46:07.674640+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b8-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_read","display_name":"Security Notification Rules Read","description":"Read Notification Rules.","created":"2021-09-16T08:26:27.366789+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b9-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_write","display_name":"Security Notification Rules Write","description":"Create, edit, and delete Notification Rules.","created":"2021-09-16T08:26:27.369359+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"26c79920-1703-11ec-85d2-da7ad0900002","attributes":{"name":"apm_generate_metrics","display_name":"APM Generate Metrics","description":"Create custom metrics from spans.","created":"2021-09-16T15:31:24.458963+00:00","group_name":"APM","display_type":"other","restricted":false}},{"type":"permissions","id":"020a563c-56a4-11ec-a982-da7ad0900002","attributes":{"name":"apm_pipelines_write","display_name":"APM Pipelines Write","description":"Add and change APM pipeline configurations.","created":"2021-12-06T14:51:35.049129+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"8e4d6b6e-5750-11ec-a9f4-da7ad0900002","attributes":{"name":"apm_pipelines_read","display_name":"APM Pipelines Read","description":"View APM pipeline configurations.","created":"2021-12-07T11:26:43.807269+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb4-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_read","display_name":"Pipeline Configurations Read","description":"View pipeline configurations.","created":"2021-12-09T00:11:38.956827+00:00","group_name":"Observability Pipelines","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb5-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_write","display_name":"Pipeline Configurations Write","description":"Create, edit, and delete pipeline configurations.","created":"2021-12-09T00:11:38.960833+00:00","group_name":"Observability Pipelines","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a8-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_read","display_name":"Workflows Read","description":"View workflows.","created":"2022-02-03T15:07:12.058412+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917aa-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_write","display_name":"Workflows Write","description":"Create, edit, and delete workflows.","created":"2022-02-03T15:07:12.061765+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a9-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_run","display_name":"Workflows Run","description":"Run workflows.","created":"2022-02-03T15:07:12.060079+00:00","group_name":"Workflows","display_type":"other","restricted":false}},{"type":"permissions","id":"f6e917a6-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_read","display_name":"Connections Read","description":"List and view available connections. Connections contain secrets that cannot be revealed.","created":"2022-02-03T15:07:12.053432+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917a7-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_write","display_name":"Connections Write","description":"Create and delete connections.","created":"2022-02-03T15:07:12.056590+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"7a89ec40-8b69-11ec-812d-da7ad0900002","attributes":{"name":"incidents_private_global_access","display_name":"Private Incidents Global Access","description":"Access all private incidents in Datadog, even when not added as a responder.","created":"2022-02-11T18:36:08.531989+00:00","group_name":"Incidents","display_type":"other","restricted":false}},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_read","display_name":"Notebooks Read","description":"View notebooks.","created":"2022-03-02T18:51:05.040950+00:00","group_name":"Notebooks","display_type":"read","restricted":true}},{"type":"permissions","id":"b6bf9ac7-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_write","display_name":"Notebooks Write","description":"Create and change notebooks.","created":"2022-03-02T18:51:05.044683+00:00","group_name":"Notebooks","display_type":"write","restricted":false}},{"type":"permissions","id":"e35c06b0-966b-11ec-83c9-da7ad0900002","attributes":{"name":"logs_delete_data","display_name":"Logs Delete Data","description":"Delete data from your Logs, including entire indexes.","created":"2022-02-25T18:51:06.176019+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2108215e-b9b4-11ec-958e-da7ad0900002","attributes":{"name":"rum_generate_metrics","display_name":"RUM Generate Metrics","description":"Create custom metrics from RUM events.","created":"2022-04-11T16:26:24.106645+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"7b1f5089-c59e-11ec-aa32-da7ad0900002","attributes":{"name":"manage_integrations","display_name":"Integrations Manage","description":"Install, uninstall, and configure integrations.","created":"2022-04-26T20:21:40.285834+00:00","group_name":"Integrations","display_type":"write","restricted":false}},{"type":"permissions","id":"1afff448-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_read","display_name":"Usage Notifications Read","description":"Receive notifications and view currently configured notification settings.","created":"2022-05-17T13:56:09.870985+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"1afff449-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_write","display_name":"Usage Notifications Write","description":"Receive notifications and configure notification settings.","created":"2022-05-17T13:56:09.876124+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"6c87d3da-e5c5-11ec-b1d6-da7ad0900002","attributes":{"name":"generate_dashboard_reports","display_name":"Dashboards Report Write","description":"Schedule custom reports from a dashboard. These reports will display any viewable data regardless of any granular restrictions (restriction queries, scoped indexes) applied to the report's creator.","created":"2022-06-06T18:21:03.378896+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_read","display_name":"SLOs Read","description":"View SLOs and status corrections.","created":"2022-06-08T16:20:55.142591+00:00","group_name":"Service Level Objectives","display_type":"read","restricted":true}},{"type":"permissions","id":"f8e941d0-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_write","display_name":"SLOs Write","description":"Create, edit, and delete SLOs.","created":"2022-06-08T16:20:55.143869+00:00","group_name":"Service Level Objectives","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941ce-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_corrections","display_name":"SLOs Status Corrections","description":"Apply, edit, and delete SLO status corrections. A user with this permission can make status corrections, even if they do not have permission to edit those SLOs.","created":"2022-06-08T16:20:55.139410+00:00","group_name":"Service Level Objectives","display_type":"other","restricted":false}},{"type":"permissions","id":"ee68fba9-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_write","display_name":"Service Catalog Write","description":"Add, modify, and delete service catalog definitions when those definitions are maintained by Datadog.","created":"2022-08-08T16:55:39.377188+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"ee68fba8-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_read","display_name":"Service Catalog Read","description":"View service catalog and service definitions.","created":"2022-08-08T16:55:39.374377+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"5b2c3e28-1761-11ed-b018-da7ad0900002","attributes":{"name":"logs_write_forwarding_rules","display_name":"Logs Write Forwarding Rules","description":"Add and edit forwarding destinations and rules for logs.","created":"2022-08-08T21:30:42.723663+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"6be119a6-1cd8-11ed-b185-da7ad0900002","attributes":{"name":"watchdog_insights_read","display_name":"Watchdog Insights Read","description":"View Watchdog Insights.","created":"2022-08-15T20:25:36.677197+00:00","group_name":"Watchdog","display_type":"read","restricted":false}},{"type":"permissions","id":"36e2a22e-248a-11ed-b405-da7ad0900002","attributes":{"name":"connections_resolve","display_name":"Connections Resolve","description":"Resolve connections.","created":"2022-08-25T15:25:56.325170+00:00","group_name":"Workflows","display_type":"read","restricted":false}}]} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"data":{"attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586"},"relationships":{},"type":"roles"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + url: https://api.datadoghq.com/api/v2/roles + method: POST + response: + body: | + {"data":{"type":"roles","id":"654c5720-6122-11ed-bff5-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586","created_at":"2022-11-10T18:06:27.463266+00:00","modified_at":"2022-11-10T18:06:27.555637+00:00"},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/roles/654c5720-6122-11ed-bff5-da7ad0900002 + method: GET + response: + body: | + {"data":{"type":"roles","id":"654c5720-6122-11ed-bff5-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586","created_at":"2022-11-10T18:06:27.463266+00:00","modified_at":"2022-11-10T18:06:27.555637+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" - request: 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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","bodyType":"text/plain","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257-monitor","monitor_priority":5,"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","bodyType":"text/plain","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586-monitor","monitor_priority":5,"restricted_roles":["654c5720-6122-11ed-bff5-da7ad0900002"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -14,7 +68,24 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"vqn-3n2-jej","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257","monitor_id":102643324,"type":"api","created_at":"2022-11-10T14:57:39.097695+00:00","modified_at":"2022-11-10T14:57:39.097695+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"q79-962-ef5","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586","monitor_id":102669074,"type":"api","created_at":"2022-11-10T18:06:27.896359+00:00","modified_at":"2022-11-10T18:06:27.896359+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["654c5720-6122-11ed-bff5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586-monitor","tick_every":60,"ignoreServerCertificateError":true}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/q79-962-ef5 + method: GET + response: + body: | + {"status":"paused","public_id":"q79-962-ef5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586","monitor_id":102669074,"type":"api","created_at":"2022-11-10T18:06:27.896359+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:27.896359+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["654c5720-6122-11ed-bff5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +98,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/vqn-3n2-jej + url: https://api.datadoghq.com/api/v1/synthetics/tests/q79-962-ef5 method: GET response: body: | - {"status":"paused","public_id":"vqn-3n2-jej","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257","monitor_id":102643324,"type":"api","created_at":"2022-11-10T14:57:39.097695+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:39.097695+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"q79-962-ef5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586","monitor_id":102669074,"type":"api","created_at":"2022-11-10T18:06:27.896359+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:27.896359+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["654c5720-6122-11ed-bff5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -44,11 +115,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/vqn-3n2-jej + url: https://api.datadoghq.com/api/v2/roles/654c5720-6122-11ed-bff5-da7ad0900002 method: GET response: body: | - {"status":"paused","public_id":"vqn-3n2-jej","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257","monitor_id":102643324,"type":"api","created_at":"2022-11-10T14:57:39.097695+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:39.097695+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"data":{"type":"roles","id":"654c5720-6122-11ed-bff5-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586","created_at":"2022-11-10T18:06:27.463266+00:00","modified_at":"2022-11-10T18:06:27.555637+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -61,11 +132,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/vqn-3n2-jej + url: https://api.datadoghq.com/api/v1/synthetics/tests/q79-962-ef5 method: GET response: body: | - {"status":"paused","public_id":"vqn-3n2-jej","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257","monitor_id":102643324,"type":"api","created_at":"2022-11-10T14:57:39.097695+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:39.097695+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"q79-962-ef5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586","monitor_id":102669074,"type":"api","created_at":"2022-11-10T18:06:27.896359+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:27.896359+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["654c5720-6122-11ed-bff5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/vqn-3n2-jej + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/q79-962-ef5 method: GET response: body: | - {"status":"paused","public_id":"vqn-3n2-jej","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257","monitor_id":102643324,"type":"api","created_at":"2022-11-10T14:57:39.097695+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:39.097695+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668092257-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"q79-962-ef5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586","monitor_id":102669074,"type":"api","created_at":"2022-11-10T18:06:27.896359+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:27.896359+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["654c5720-6122-11ed-bff5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1668103586-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -91,7 +162,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["vqn-3n2-jej"]} + {"public_ids":["q79-962-ef5"]} form: {} headers: Accept: @@ -102,20 +173,52 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"deleted_at":"2022-11-10T14:57:40.480401+00:00","public_id":"vqn-3n2-jej"}]} + {"deleted_tests":[{"deleted_at":"2022-11-10T18:06:29.362059+00:00","public_id":"q79-962-ef5"}]} headers: Content-Type: - application/json status: 200 OK code: 200 duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - '*/*' + url: https://api.datadoghq.com/api/v2/roles/654c5720-6122-11ed-bff5-da7ad0900002 + method: DELETE + response: + body: "" + headers: + Content-Type: + - text/html; charset=utf-8 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/654c5720-6122-11ed-bff5-da7ad0900002 + method: GET + response: + body: '{"message": "The resource could not be found.

\n\n\n", "code": "404 Not Found", "title": "Not Found"}' + headers: + Content-Type: + - application/json + status: 404 Not Found + code: 404 + duration: "" - request: body: "" form: {} headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/vqn-3n2-jej + url: https://api.datadoghq.com/api/v1/synthetics/tests/q79-962-ef5 method: GET response: body: '{"errors":["Synthetics test not found"]}' diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze index 83b8a3ffce..335ed6d92d 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze @@ -1 +1 @@ -2022-11-08T15:54:37.715516+01:00 \ No newline at end of file +2022-11-10T13:06:26.139819-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml index fe9e4f89a2..7f76c3fcff 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"},{"operator":"validatesJSONPath","target":{"jsonPath":"something","operator":"moreThan","targetValue":5},"type":"body"},{"operator":"isNot","target":200,"type":"statusCode"},{"operator":"matches","target":"20[04]","type":"statusCode"},{"operator":"doesNotMatch","target":"20[04]","type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"$.mykey","operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}"},"type":"body"},{"operator":"validatesXPath","target":{"operator":"contains","targetValue":"12","xPath":"something"},"type":"body"}],"configVariables":[{"example":"1234","name":"TEST","pattern":"{{ numeric(4) }}","type":"text"}],"request":{"basicAuth":{"password":"secret","type":"web","username":"admin"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1667919277","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"},{"operator":"validatesJSONPath","target":{"jsonPath":"something","operator":"moreThan","targetValue":5},"type":"body"},{"operator":"isNot","target":200,"type":"statusCode"},{"operator":"matches","target":"20[04]","type":"statusCode"},{"operator":"doesNotMatch","target":"20[04]","type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"$.mykey","operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}"},"type":"body"},{"operator":"validatesXPath","target":{"operator":"contains","targetValue":"12","xPath":"something"},"type":"body"}],"configVariables":[{"example":"1234","name":"TEST","pattern":"{{ numeric(4) }}","type":"text"}],"request":{"basicAuth":{"password":"secret","type":"web","username":"admin"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1668103586","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"9du-4ii-4mi","tags":["foo:bar","baz"],"org_id":569509,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1667919277","monitor_id":102363313,"type":"api","created_at":"2022-11-08T14:54:39.615149+00:00","modified_at":"2022-11-08T14:54:39.615149+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"bws-qba-g89","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1668103586","monitor_id":102669072,"type":"api","created_at":"2022-11-10T18:06:27.346090+00:00","modified_at":"2022-11-10T18:06:27.346090+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/9du-4ii-4mi + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/bws-qba-g89 method: GET response: body: | - {"status":"paused","public_id":"9du-4ii-4mi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1667919277","monitor_id":102363313,"type":"api","created_at":"2022-11-08T14:54:39.615149+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:54:39.615149+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"bws-qba-g89","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1668103586","monitor_id":102669072,"type":"api","created_at":"2022-11-10T18:06:27.346090+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:27.346090+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -44,11 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/9du-4ii-4mi + url: https://api.datadoghq.com/api/v1/synthetics/tests/bws-qba-g89 method: GET response: body: | - {"status":"paused","public_id":"9du-4ii-4mi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1667919277","monitor_id":102363313,"type":"api","created_at":"2022-11-08T14:54:39.615149+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:54:39.615149+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"bws-qba-g89","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1668103586","monitor_id":102669072,"type":"api","created_at":"2022-11-10T18:06:27.346090+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:27.346090+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -61,11 +61,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/9du-4ii-4mi + url: https://api.datadoghq.com/api/v1/synthetics/tests/bws-qba-g89 method: GET response: body: | - {"status":"paused","public_id":"9du-4ii-4mi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1667919277","monitor_id":102363313,"type":"api","created_at":"2022-11-08T14:54:39.615149+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:54:39.615149+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"bws-qba-g89","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1668103586","monitor_id":102669072,"type":"api","created_at":"2022-11-10T18:06:27.346090+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:27.346090+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -78,11 +78,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/9du-4ii-4mi + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/bws-qba-g89 method: GET response: body: | - {"status":"paused","public_id":"9du-4ii-4mi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1667919277","monitor_id":102363313,"type":"api","created_at":"2022-11-08T14:54:39.615149+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:54:39.615149+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"bws-qba-g89","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1668103586","monitor_id":102669072,"type":"api","created_at":"2022-11-10T18:06:27.346090+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:27.346090+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -91,7 +91,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["9du-4ii-4mi"]} + {"public_ids":["bws-qba-g89"]} form: {} headers: Accept: @@ -102,7 +102,7 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"deleted_at":"2022-11-08T14:54:41.307267+00:00","public_id":"9du-4ii-4mi"}]} + {"deleted_tests":[{"deleted_at":"2022-11-10T18:06:28.705496+00:00","public_id":"bws-qba-g89"}]} headers: Content-Type: - application/json @@ -115,7 +115,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/9du-4ii-4mi + url: https://api.datadoghq.com/api/v1/synthetics/tests/bws-qba-g89 method: GET response: body: '{"errors":["Synthetics test not found"]}' diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze index 7a582abbf9..4c1245c806 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze @@ -1 +1 @@ -2022-11-10T09:57:17.408098-05:00 \ No newline at end of file +2022-11-10T13:06:09.724039-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml index 102a545550..ef96325997 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml @@ -2,8 +2,62 @@ version: 1 interactions: - request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/permissions + method: GET + response: + body: | + {"data":[{"type":"permissions","id":"984a2bd4-d3b4-11e8-a1ff-a7f660d43029","attributes":{"name":"admin","display_name":"Privileged Access","description":"Deprecated. Privileged Access (also known as Admin permission) has been replaced by more specific permissions: Access Management, Org Management, Billing Read/Write, Usage Read/Write.","created":"2018-10-19T15:35:23.734317+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"984d2f00-d3b4-11e8-a200-bb47109e9987","attributes":{"name":"standard","display_name":"Standard Access","description":"View and edit components in your Datadog organization that do not have explicitly defined permissions. This includes configuring events, facets (except logs), and saved views.","created":"2018-10-19T15:35:23.756736+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"5e605652-dd12-11e8-9e53-375565b8970e","attributes":{"name":"logs_read_index_data","display_name":"Logs Read Index Data","description":"Read log data, possibly scoped to one or more indexes. In order to read log data, a user must have both this permission and Logs Read Data. This permission can be granted in a limited capacity per index from the Logs interface or APIs. If granted via the Roles interface or API the permission has global scope. Restrictions are limited to the Log Management product.","created":"2018-10-31T13:39:19.727450+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"62cc036c-dd12-11e8-9e54-db9995643092","attributes":{"name":"logs_modify_indexes","display_name":"Logs Modify Indexes","description":"Read and modify all indexes in your account. This includes the ability to grant the Logs Read Index Data and Logs Write Exclusion Filters permission to other roles, for some or all indexes.","created":"2018-10-31T13:39:27.148615+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"6f66600e-dd12-11e8-9e55-7f30fbb45e73","attributes":{"name":"logs_live_tail","display_name":"Logs Live Tail","description":"View the live tail feed for all log indexes, even if otherwise specifically restricted.","created":"2018-10-31T13:39:48.292879+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7d7c98ac-dd12-11e8-9e56-93700598622d","attributes":{"name":"logs_write_exclusion_filters","display_name":"Logs Write Exclusion Filters","description":"Add and change exclusion filters for all or some log indexes. Can be granted in a limited capacity per index to specific roles via the Logs interface or API. If granted from the Roles interface or API, the permission has global scope.","created":"2018-10-31T13:40:11.926613+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"811ac4ca-dd12-11e8-9e57-676a7f0beef9","attributes":{"name":"logs_write_pipelines","display_name":"Logs Write Pipelines","description":"Add and change log pipeline configurations, including the ability to grant the Logs Write Processors permission to other roles, for some or all pipelines.","created":"2018-10-31T13:40:17.996379+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"84aa3ae4-dd12-11e8-9e58-a373a514ccd0","attributes":{"name":"logs_write_processors","display_name":"Logs Write Processors","description":"Add and change some or all log processor configurations. Can be granted in a limited capacity per pipeline to specific roles via the Logs interface or API. If granted via the Roles interface or API the permission has global scope.","created":"2018-10-31T13:40:23.969725+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"87b00304-dd12-11e8-9e59-cbeb5f71f72f","attributes":{"name":"logs_write_archives","display_name":"Logs Write Archives","description":"Add and edit Log Archives.","created":"2018-10-31T13:40:29.040786+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"979df720-aed7-11e9-99c6-a7eb8373165a","attributes":{"name":"logs_generate_metrics","display_name":"Logs Generate Metrics","description":"Create custom metrics from logs.","created":"2019-07-25T12:27:39.640758+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2","attributes":{"name":"dashboards_read","display_name":"Dashboards Read","description":"View dashboards.","created":"2019-09-10T14:39:51.955175+00:00","group_name":"Dashboards","display_type":"read","restricted":true}},{"type":"permissions","id":"d90f6831-d3d8-11e9-a77a-4fd230ddbc6a","attributes":{"name":"dashboards_write","display_name":"Dashboards Write","description":"Create and change dashboards.","created":"2019-09-10T14:39:51.962944+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"d90f6832-d3d8-11e9-a77a-bf8a2607f864","attributes":{"name":"dashboards_public_share","display_name":"Dashboards Public Share","description":"Generate public and authenticated links to share dashboards externally.","created":"2019-09-10T14:39:51.967094+00:00","group_name":"Dashboards","display_type":"other","restricted":false}},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304","attributes":{"name":"monitors_read","display_name":"Monitors Read","description":"View monitors.","created":"2019-09-16T18:39:07.744297+00:00","group_name":"Monitors","display_type":"read","restricted":true}},{"type":"permissions","id":"48ef71ea-d8b1-11e9-a77a-93f408470ad0","attributes":{"name":"monitors_write","display_name":"Monitors Write","description":"Edit, mute, and delete individual monitors.","created":"2019-09-16T18:39:15.597109+00:00","group_name":"Monitors","display_type":"write","restricted":false}},{"type":"permissions","id":"4d87d5f8-d8b1-11e9-a77a-eb9c8350d04f","attributes":{"name":"monitors_downtime","display_name":"Monitors Manage Downtime","description":"Set downtimes to suppress alerts from any monitor in an organization. The ability to write monitors is not required to set downtimes.","created":"2019-09-16T18:39:23.306702+00:00","group_name":"Monitors","display_type":"other","restricted":false}},{"type":"permissions","id":"1af86ce4-7823-11ea-93dc-d7cad1b1c6cb","attributes":{"name":"logs_read_data","display_name":"Logs Read Data","description":"Read log data. In order to read log data, a user must have both this permission and Logs Read Index Data. This permission can be restricted with restriction queries. Restrictions are limited to the Log Management product.","created":"2020-04-06T16:24:35.989108+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"b382b982-8535-11ea-93de-2bf1bdf20798","attributes":{"name":"logs_read_archives","display_name":"Logs Read Archives","description":"Read Log Archives location and use it for rehydration.","created":"2020-04-23T07:40:27.966133+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7314eb20-aa58-11ea-95e2-6fb6e4a451d5","attributes":{"name":"security_monitoring_rules_read","display_name":"Security Rules Read","description":"Read Detection Rules.","created":"2020-06-09T13:52:25.279909+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"7b516476-aa58-11ea-95e2-93718cd56369","attributes":{"name":"security_monitoring_rules_write","display_name":"Security Rules Write","description":"Create and edit Detection Rules.","created":"2020-06-09T13:52:39.099413+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"80de1ec0-aa58-11ea-95e2-aff381626d5d","attributes":{"name":"security_monitoring_signals_read","display_name":"Security Signals Read","description":"View Security Signals.","created":"2020-06-09T13:52:48.410398+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"58b412cc-ff6d-11eb-bc9c-da7ad0900002","attributes":{"name":"security_monitoring_signals_write","display_name":"Security Signals Write","description":"Modify Security Signals.","created":"2021-08-17T15:11:06.963503+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"9ac1d8cc-e707-11ea-aa2d-73d37e989a9d","attributes":{"name":"user_access_invite","display_name":"User Access Invite","description":"Invite other users to your organization.","created":"2020-08-25T19:17:23.539701+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"9de604d8-e707-11ea-aa2d-93f1a783b3a3","attributes":{"name":"user_access_manage","display_name":"User Access Manage","description":"Disable users, manage user roles, manage SAML-to-role mappings, and configure logs restriction queries.","created":"2020-08-25T19:17:28.810412+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301da-ec5c-11ea-aa9f-73bedeab67ee","attributes":{"name":"user_app_keys","display_name":"User App Keys","description":"View and manage Application Keys owned by the user.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301db-ec5c-11ea-aa9f-2fe72193d60e","attributes":{"name":"org_app_keys_read","display_name":"Org App Keys Read","description":"View Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301dc-ec5c-11ea-aa9f-13b33f8f46ea","attributes":{"name":"org_app_keys_write","display_name":"Org App Keys Write","description":"Manage Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301dd-ec5c-11ea-aa9f-97edfb345bc9","attributes":{"name":"synthetics_private_location_read","display_name":"Synthetics Private Location Read","description":"View, search, and use Synthetics private locations.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301de-ec5c-11ea-aa9f-a73252c24806","attributes":{"name":"synthetics_private_location_write","display_name":"Synthetics Private Location Write","description":"Create and delete private locations in addition to having access to the associated installation guidelines.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301df-ec5c-11ea-aa9f-970a9ae645e5","attributes":{"name":"billing_read","display_name":"Billing Read","description":"View your organization's subscription and payment method but not make edits.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e0-ec5c-11ea-aa9f-6ba6cc675d8c","attributes":{"name":"billing_edit","display_name":"Billing Edit","description":"Manage your organization's subscription and payment method.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e1-ec5c-11ea-aa9f-afa39f6f3e36","attributes":{"name":"usage_read","display_name":"Usage Read","description":"View your organization's usage and usage attribution.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e2-ec5c-11ea-aa9f-1f511b7305fd","attributes":{"name":"usage_edit","display_name":"Usage Edit","description":"Manage your organization's usage attribution set-up.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e4-ec5c-11ea-aa9f-87282b3a50cc","attributes":{"name":"metric_tags_write","display_name":"Metric Tags Write","description":"Edit and save tag configurations for custom metrics.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Metrics","display_type":"write","restricted":false}},{"type":"permissions","id":"07c3c146-f7f8-11ea-acf6-0bd62b9ae60e","attributes":{"name":"logs_write_historical_view","display_name":"Logs Write Historical View","description":"Rehydrate logs from Archives.","created":"2020-09-16T08:38:44.242076+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2fbdac76-f923-11ea-adbc-07f3823e2b43","attributes":{"name":"audit_logs_read","display_name":"Audit Trail Read","description":"View Audit Trail in your organization.","created":"2020-09-17T20:20:10.834252+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"372896c4-f923-11ea-adbc-4fecd107156d","attributes":{"name":"api_keys_read","display_name":"API Keys Read","description":"List and retrieve the key values of all API Keys in your organization.","created":"2020-09-17T20:20:23.279769+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"3e4d4d28-f923-11ea-adbc-e3565938c12e","attributes":{"name":"api_keys_write","display_name":"API Keys Write","description":"Create, rename, and revoke API Keys for your organization.","created":"2020-09-17T20:20:35.264430+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"4628ca54-f923-11ea-adbc-4b2b7f88c5e9","attributes":{"name":"synthetics_global_variable_read","display_name":"Synthetics Global Variable Read","description":"View, search, and use Synthetics global variables.","created":"2020-09-17T20:20:48.446916+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"4ada6e36-f923-11ea-adbc-0788e5c5e3cf","attributes":{"name":"synthetics_global_variable_write","display_name":"Synthetics Global Variable Write","description":"Create, edit, and delete global variables for Synthetics.","created":"2020-09-17T20:20:56.322003+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5025ee24-f923-11ea-adbc-576ea241df8d","attributes":{"name":"synthetics_read","display_name":"Synthetics Read","description":"List and view configured Synthetic tests and test results.","created":"2020-09-17T20:21:05.205361+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"55f4b5ec-f923-11ea-adbc-1bfa2334a755","attributes":{"name":"synthetics_write","display_name":"Synthetics Write","description":"Create, edit, and delete Synthetic tests.","created":"2020-09-17T20:21:14.949140+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5c6b88e2-f923-11ea-adbc-abf57d079420","attributes":{"name":"synthetics_default_settings_read","display_name":"Synthetics Default Settings Read","description":"View the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:25.794160+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"642eebe6-f923-11ea-adbc-eb617674ea04","attributes":{"name":"synthetics_default_settings_write","display_name":"Synthetics Default Settings Write","description":"Edit the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:38.818771+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"6ba32d22-0e1a-11eb-ba44-bf9a5aafaa39","attributes":{"name":"logs_write_facets","display_name":"Logs Write Facets","description":"Create or edit Log Facets.","created":"2020-10-14T12:40:20.271908+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"a42e94b2-1476-11eb-bd08-efda28c04248","attributes":{"name":"service_account_write","display_name":"Service Account Write","description":"Create, disable, and use Service Accounts in your organization.","created":"2020-10-22T14:55:35.814239+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"fcac2ad8-2843-11eb-8315-0fe47949d625","attributes":{"name":"integrations_api","display_name":"Integrations API","description":"Deprecated. Use the Integrations APIs to configure integrations. In order to configure integrations from the UI, a user must also have Standard Access.","created":"2020-11-16T19:43:23.198568+00:00","group_name":"Integrations","display_type":"other","restricted":false}},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0","attributes":{"name":"apm_read","display_name":"APM Read","description":"Read and query APM and Trace Analytics.","created":"2020-11-23T20:55:45.006110+00:00","group_name":"APM","display_type":"read","restricted":true}},{"type":"permissions","id":"43fa188e-2dce-11eb-84c0-835ad1fd6287","attributes":{"name":"apm_retention_filter_read","display_name":"APM Retention Filter Read","description":"Read trace retention filters. A user with this permission can view the retention filters page, list of filters, their statistics, and creation info.","created":"2020-11-23T20:55:49.190595+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"465cfe66-2dce-11eb-84c0-6baa888239fa","attributes":{"name":"apm_retention_filter_write","display_name":"APM Retention Filter Write","description":"Create, edit, and delete trace retention filters. A user with this permission can create new retention filters, and update or delete to existing retention filters.","created":"2020-11-23T20:55:53.194236+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"4916eebe-2dce-11eb-84c0-271cb2c672e8","attributes":{"name":"apm_service_ingest_read","display_name":"APM Service Ingest Read","description":"Access service ingestion pages. A user with this permission can view the service ingestion page, list of root services, their statistics, and creation info.","created":"2020-11-23T20:55:57.768261+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"4e3f02b4-2dce-11eb-84c0-2fca946a6efc","attributes":{"name":"apm_service_ingest_write","display_name":"APM Service Ingest Write","description":"Edit service ingestion pages' root services. A user with this permission can edit the root service ingestion and generate a code snippet to increase ingestion per service.","created":"2020-11-23T20:56:06.419518+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"53950c54-2dce-11eb-84c0-a79ae108f6f8","attributes":{"name":"apm_apdex_manage_write","display_name":"APM Apdex Manage Write","description":"Set Apdex T value on any service. A user with this permission can set the T value from the Apdex graph on the service page.","created":"2020-11-23T20:56:15.371926+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"5cbe5f9c-2dce-11eb-84c0-872d3e9f1076","attributes":{"name":"apm_tag_management_write","display_name":"APM Tag Management Write","description":"Edit second primary tag selection. A user with this permission can modify the second primary tag dropdown in the APM settings page.","created":"2020-11-23T20:56:30.742299+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"61765026-2dce-11eb-84c0-833e230d1b8f","attributes":{"name":"apm_primary_operation_write","display_name":"APM Primary Operation Write","description":"Edit the operation name value selection. A user with this permission can modify the operation name list in the APM settings page and the operation name controller on the service page.","created":"2020-11-23T20:56:38.658649+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"04bc1cf2-340a-11eb-873a-43b973c760dd","attributes":{"name":"audit_logs_write","display_name":"Audit Trail Write","description":"Configure Audit Trail in your organization.","created":"2020-12-01T19:18:39.866516+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"8106300a-54f7-11eb-8cbc-7781a434a67b","attributes":{"name":"rum_apps_write","display_name":"RUM Apps Write","description":"Create, edit, and delete RUM Applications.","created":"2021-01-12T16:59:16.324480+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e74-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_write","display_name":"Dynamic Instrumentation Write Configuration","description":"Edit Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.006815+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e75-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_read","display_name":"Dynamic Instrumentation Read Configuration","description":"View Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.010517+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7c-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_read","display_name":"Data Scanner Read","description":"View Data Scanner configurations.","created":"2021-03-29T16:56:46.394971+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7d-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_write","display_name":"Data Scanner Write","description":"Edit Data Scanner configurations.","created":"2021-03-29T16:56:46.398584+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"7df222b6-a45c-11eb-a0af-da7ad0900002","attributes":{"name":"org_management","display_name":"Org Management","description":"Edit org configurations, including authentication and certain security preferences such as configuring SAML, renaming an org, configuring allowed login methods, creating child orgs, subscribing & unsubscribing from apps in the marketplace.","created":"2021-04-23T17:51:12.187340+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"98b984f4-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_read","display_name":"Security Filters Read","description":"Read Security Filters.","created":"2021-05-10T08:56:23.676833+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"98b984f5-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_write","display_name":"Security Filters Write","description":"Create, edit, and delete Security Filters.","created":"2021-05-10T08:56:23.680551+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_read","display_name":"Incident Read","description":"View incidents in Datadog.","created":"2021-06-22T15:11:09.255499+00:00","group_name":"Incidents","display_type":"read","restricted":true}},{"type":"permissions","id":"12efc211-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_write","display_name":"Incident Write","description":"Create, view, and manage incidents in Datadog.","created":"2021-06-22T15:11:09.264369+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20f-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_read","display_name":"Incidents Settings Read","description":"View Incidents settings.","created":"2021-06-22T15:11:09.259568+00:00","group_name":"Incidents","display_type":"read","restricted":false}},{"type":"permissions","id":"12efc210-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_write","display_name":"Incidents Settings Write","description":"Configure Incidents settings.","created":"2021-06-22T15:11:09.261986+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"97971c1c-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_read","display_name":"Application Security Management Event Rules Read","description":"View Application Security Management Event Rules.","created":"2021-07-19T13:31:15.595771+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"97971c1d-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_write","display_name":"Application Security Management Event Rules Write","description":"Edit Application Security Management Event Rules.","created":"2021-07-19T13:31:15.598808+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_apps_read","display_name":"RUM Apps Read","description":"View RUM Applications data.","created":"2021-08-02T09:46:07.671535+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":true}},{"type":"permissions","id":"7605ef25-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_session_replay_read","display_name":"RUM Session Replay Read","description":"View Session Replays.","created":"2021-08-02T09:46:07.674640+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b8-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_read","display_name":"Security Notification Rules Read","description":"Read Notification Rules.","created":"2021-09-16T08:26:27.366789+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b9-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_write","display_name":"Security Notification Rules Write","description":"Create, edit, and delete Notification Rules.","created":"2021-09-16T08:26:27.369359+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"26c79920-1703-11ec-85d2-da7ad0900002","attributes":{"name":"apm_generate_metrics","display_name":"APM Generate Metrics","description":"Create custom metrics from spans.","created":"2021-09-16T15:31:24.458963+00:00","group_name":"APM","display_type":"other","restricted":false}},{"type":"permissions","id":"020a563c-56a4-11ec-a982-da7ad0900002","attributes":{"name":"apm_pipelines_write","display_name":"APM Pipelines Write","description":"Add and change APM pipeline configurations.","created":"2021-12-06T14:51:35.049129+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"8e4d6b6e-5750-11ec-a9f4-da7ad0900002","attributes":{"name":"apm_pipelines_read","display_name":"APM Pipelines Read","description":"View APM pipeline configurations.","created":"2021-12-07T11:26:43.807269+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb4-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_read","display_name":"Pipeline Configurations Read","description":"View pipeline configurations.","created":"2021-12-09T00:11:38.956827+00:00","group_name":"Observability Pipelines","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb5-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_write","display_name":"Pipeline Configurations Write","description":"Create, edit, and delete pipeline configurations.","created":"2021-12-09T00:11:38.960833+00:00","group_name":"Observability Pipelines","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a8-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_read","display_name":"Workflows Read","description":"View workflows.","created":"2022-02-03T15:07:12.058412+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917aa-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_write","display_name":"Workflows Write","description":"Create, edit, and delete workflows.","created":"2022-02-03T15:07:12.061765+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a9-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_run","display_name":"Workflows Run","description":"Run workflows.","created":"2022-02-03T15:07:12.060079+00:00","group_name":"Workflows","display_type":"other","restricted":false}},{"type":"permissions","id":"f6e917a6-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_read","display_name":"Connections Read","description":"List and view available connections. Connections contain secrets that cannot be revealed.","created":"2022-02-03T15:07:12.053432+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917a7-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_write","display_name":"Connections Write","description":"Create and delete connections.","created":"2022-02-03T15:07:12.056590+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"7a89ec40-8b69-11ec-812d-da7ad0900002","attributes":{"name":"incidents_private_global_access","display_name":"Private Incidents Global Access","description":"Access all private incidents in Datadog, even when not added as a responder.","created":"2022-02-11T18:36:08.531989+00:00","group_name":"Incidents","display_type":"other","restricted":false}},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_read","display_name":"Notebooks Read","description":"View notebooks.","created":"2022-03-02T18:51:05.040950+00:00","group_name":"Notebooks","display_type":"read","restricted":true}},{"type":"permissions","id":"b6bf9ac7-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_write","display_name":"Notebooks Write","description":"Create and change notebooks.","created":"2022-03-02T18:51:05.044683+00:00","group_name":"Notebooks","display_type":"write","restricted":false}},{"type":"permissions","id":"e35c06b0-966b-11ec-83c9-da7ad0900002","attributes":{"name":"logs_delete_data","display_name":"Logs Delete Data","description":"Delete data from your Logs, including entire indexes.","created":"2022-02-25T18:51:06.176019+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2108215e-b9b4-11ec-958e-da7ad0900002","attributes":{"name":"rum_generate_metrics","display_name":"RUM Generate Metrics","description":"Create custom metrics from RUM events.","created":"2022-04-11T16:26:24.106645+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"7b1f5089-c59e-11ec-aa32-da7ad0900002","attributes":{"name":"manage_integrations","display_name":"Integrations Manage","description":"Install, uninstall, and configure integrations.","created":"2022-04-26T20:21:40.285834+00:00","group_name":"Integrations","display_type":"write","restricted":false}},{"type":"permissions","id":"1afff448-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_read","display_name":"Usage Notifications Read","description":"Receive notifications and view currently configured notification settings.","created":"2022-05-17T13:56:09.870985+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"1afff449-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_write","display_name":"Usage Notifications Write","description":"Receive notifications and configure notification settings.","created":"2022-05-17T13:56:09.876124+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"6c87d3da-e5c5-11ec-b1d6-da7ad0900002","attributes":{"name":"generate_dashboard_reports","display_name":"Dashboards Report Write","description":"Schedule custom reports from a dashboard. These reports will display any viewable data regardless of any granular restrictions (restriction queries, scoped indexes) applied to the report's creator.","created":"2022-06-06T18:21:03.378896+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_read","display_name":"SLOs Read","description":"View SLOs and status corrections.","created":"2022-06-08T16:20:55.142591+00:00","group_name":"Service Level Objectives","display_type":"read","restricted":true}},{"type":"permissions","id":"f8e941d0-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_write","display_name":"SLOs Write","description":"Create, edit, and delete SLOs.","created":"2022-06-08T16:20:55.143869+00:00","group_name":"Service Level Objectives","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941ce-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_corrections","display_name":"SLOs Status Corrections","description":"Apply, edit, and delete SLO status corrections. A user with this permission can make status corrections, even if they do not have permission to edit those SLOs.","created":"2022-06-08T16:20:55.139410+00:00","group_name":"Service Level Objectives","display_type":"other","restricted":false}},{"type":"permissions","id":"ee68fba9-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_write","display_name":"Service Catalog Write","description":"Add, modify, and delete service catalog definitions when those definitions are maintained by Datadog.","created":"2022-08-08T16:55:39.377188+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"ee68fba8-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_read","display_name":"Service Catalog Read","description":"View service catalog and service definitions.","created":"2022-08-08T16:55:39.374377+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"5b2c3e28-1761-11ed-b018-da7ad0900002","attributes":{"name":"logs_write_forwarding_rules","display_name":"Logs Write Forwarding Rules","description":"Add and edit forwarding destinations and rules for logs.","created":"2022-08-08T21:30:42.723663+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"6be119a6-1cd8-11ed-b185-da7ad0900002","attributes":{"name":"watchdog_insights_read","display_name":"Watchdog Insights Read","description":"View Watchdog Insights.","created":"2022-08-15T20:25:36.677197+00:00","group_name":"Watchdog","display_type":"read","restricted":false}},{"type":"permissions","id":"36e2a22e-248a-11ed-b405-da7ad0900002","attributes":{"name":"connections_resolve","display_name":"Connections Resolve","description":"Resolve connections.","created":"2022-08-25T15:25:56.325170+00:00","group_name":"Workflows","display_type":"read","restricted":false}}]} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"data":{"attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569"},"relationships":{},"type":"roles"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + url: https://api.datadoghq.com/api/v2/roles + method: POST + response: 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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","bodyType":"text/plain","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-monitor","monitor_priority":5,"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"data":{"type":"roles","id":"5b8c123e-6122-11ed-b6d5-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","created_at":"2022-11-10T18:06:11.103557+00:00","modified_at":"2022-11-10T18:06:11.208360+00:00"},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/roles/5b8c123e-6122-11ed-b6d5-da7ad0900002 + method: GET + response: + body: | + {"data":{"type":"roles","id":"5b8c123e-6122-11ed-b6d5-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","created_at":"2022-11-10T18:06:11.103557+00:00","modified_at":"2022-11-10T18:06:11.208360+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + 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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","bodyType":"text/plain","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-monitor","monitor_priority":5,"restricted_roles":["5b8c123e-6122-11ed-b6d5-da7ad0900002"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -14,7 +68,24 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"dee-br9-2uk","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237","monitor_id":102643146,"type":"api","created_at":"2022-11-10T14:57:18.820742+00:00","modified_at":"2022-11-10T14:57:18.820742+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"uzh-59g-yvt","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","monitor_id":102668962,"type":"api","created_at":"2022-11-10T18:06:11.552024+00:00","modified_at":"2022-11-10T18:06:11.552024+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["5b8c123e-6122-11ed-b6d5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-monitor","tick_every":60,"ignoreServerCertificateError":true}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/uzh-59g-yvt + method: GET + response: + body: | + {"status":"paused","public_id":"uzh-59g-yvt","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","monitor_id":102668962,"type":"api","created_at":"2022-11-10T18:06:11.552024+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.552024+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["5b8c123e-6122-11ed-b6d5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +98,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/dee-br9-2uk + url: https://api.datadoghq.com/api/v1/synthetics/tests/uzh-59g-yvt method: GET response: body: | - {"status":"paused","public_id":"dee-br9-2uk","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237","monitor_id":102643146,"type":"api","created_at":"2022-11-10T14:57:18.820742+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:18.820742+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"uzh-59g-yvt","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","monitor_id":102668962,"type":"api","created_at":"2022-11-10T18:06:11.552024+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.552024+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["5b8c123e-6122-11ed-b6d5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -44,11 +115,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/dee-br9-2uk + url: https://api.datadoghq.com/api/v2/roles/5b8c123e-6122-11ed-b6d5-da7ad0900002 method: GET response: body: | - {"status":"paused","public_id":"dee-br9-2uk","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237","monitor_id":102643146,"type":"api","created_at":"2022-11-10T14:57:18.820742+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:18.820742+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"data":{"type":"roles","id":"5b8c123e-6122-11ed-b6d5-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","created_at":"2022-11-10T18:06:11.103557+00:00","modified_at":"2022-11-10T18:06:11.208360+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -61,11 +132,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/dee-br9-2uk + url: https://api.datadoghq.com/api/v1/synthetics/tests/uzh-59g-yvt method: GET response: body: | - {"status":"paused","public_id":"dee-br9-2uk","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237","monitor_id":102643146,"type":"api","created_at":"2022-11-10T14:57:18.820742+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:18.820742+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"uzh-59g-yvt","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","monitor_id":102668962,"type":"api","created_at":"2022-11-10T18:06:11.552024+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.552024+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["5b8c123e-6122-11ed-b6d5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/dee-br9-2uk + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/uzh-59g-yvt method: GET response: body: | - {"status":"paused","public_id":"dee-br9-2uk","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237","monitor_id":102643146,"type":"api","created_at":"2022-11-10T14:57:18.820742+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:18.820742+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"uzh-59g-yvt","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","monitor_id":102668962,"type":"api","created_at":"2022-11-10T18:06:11.552024+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.552024+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["5b8c123e-6122-11ed-b6d5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -95,11 +166,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/dee-br9-2uk + url: https://api.datadoghq.com/api/v2/roles/5b8c123e-6122-11ed-b6d5-da7ad0900002 method: GET response: body: | - {"status":"paused","public_id":"dee-br9-2uk","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237","monitor_id":102643146,"type":"api","created_at":"2022-11-10T14:57:18.820742+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:18.820742+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"data":{"type":"roles","id":"5b8c123e-6122-11ed-b6d5-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","created_at":"2022-11-10T18:06:11.103557+00:00","modified_at":"2022-11-10T18:06:11.208360+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -112,31 +183,64 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/dee-br9-2uk + url: https://api.datadoghq.com/api/v1/synthetics/tests/uzh-59g-yvt method: GET response: body: | - {"status":"paused","public_id":"dee-br9-2uk","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237","monitor_id":102643146,"type":"api","created_at":"2022-11-10T14:57:18.820742+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:18.820742+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"uzh-59g-yvt","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","monitor_id":102668962,"type":"api","created_at":"2022-11-10T18:06:11.552024+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.552024+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["5b8c123e-6122-11ed-b6d5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json status: 200 OK code: 200 duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/uzh-59g-yvt + method: GET + response: + body: | + {"status":"paused","public_id":"uzh-59g-yvt","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569","monitor_id":102668962,"type":"api","created_at":"2022-11-10T18:06:11.552024+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.552024+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["5b8c123e-6122-11ed-b6d5-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-monitor","tick_every":60,"ignoreServerCertificateError":true}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - '*/*' + url: https://api.datadoghq.com/api/v2/roles/5b8c123e-6122-11ed-b6d5-da7ad0900002 + method: DELETE + response: + body: "" + headers: + Content-Type: + - text/html; charset=utf-8 + status: 204 No Content + code: 204 + duration: "" - request: body: | - {"config":{"assertions":[{"operator":"isNot","target":500,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://docs.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-updated","options":{"ci":{"executionRule":"non_blocking"},"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} + {"config":{"assertions":[{"operator":"isNot","target":500,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://docs.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-updated","options":{"ci":{"executionRule":"non_blocking"},"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/dee-br9-2uk + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/uzh-59g-yvt method: PUT response: body: | - {"status":"live","public_id":"dee-br9-2uk","tags":["foo:bar","foo","env:test"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-updated","monitor_id":102643146,"type":"api","created_at":"2022-11-10T14:57:18.820742+00:00","modified_at":"2022-11-10T14:57:20.746557+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"tick_every":900,"min_failure_duration":10}} + {"status":"live","public_id":"uzh-59g-yvt","tags":["foo:bar","foo","env:test"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-updated","monitor_id":102668962,"type":"api","created_at":"2022-11-10T18:06:11.552024+00:00","modified_at":"2022-11-10T18:06:13.834308+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"tick_every":900,"min_failure_duration":10}} headers: Content-Type: - application/json @@ -149,11 +253,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/dee-br9-2uk + url: https://api.datadoghq.com/api/v1/synthetics/tests/uzh-59g-yvt method: GET response: body: | - {"status":"live","public_id":"dee-br9-2uk","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-updated","monitor_id":102643146,"type":"api","created_at":"2022-11-10T14:57:18.820742+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:20.746557+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} + {"status":"live","public_id":"uzh-59g-yvt","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-updated","monitor_id":102668962,"type":"api","created_at":"2022-11-10T18:06:11.552024+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:13.834308+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} headers: Content-Type: - application/json @@ -166,11 +270,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/dee-br9-2uk + url: https://api.datadoghq.com/api/v1/synthetics/tests/uzh-59g-yvt method: GET response: body: | - {"status":"live","public_id":"dee-br9-2uk","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-updated","monitor_id":102643146,"type":"api","created_at":"2022-11-10T14:57:18.820742+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:20.746557+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} + {"status":"live","public_id":"uzh-59g-yvt","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-updated","monitor_id":102668962,"type":"api","created_at":"2022-11-10T18:06:11.552024+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:13.834308+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} headers: Content-Type: - application/json @@ -183,11 +287,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/dee-br9-2uk + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/uzh-59g-yvt method: GET response: body: | - {"status":"live","public_id":"dee-br9-2uk","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668092237-updated","monitor_id":102643146,"type":"api","created_at":"2022-11-10T14:57:18.820742+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:20.746557+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} + {"status":"live","public_id":"uzh-59g-yvt","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1668103569-updated","monitor_id":102668962,"type":"api","created_at":"2022-11-10T18:06:11.552024+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:13.834308+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"ci":{"executionRule":"non_blocking"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10}} headers: Content-Type: - application/json @@ -196,7 +300,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["dee-br9-2uk"]} + {"public_ids":["uzh-59g-yvt"]} form: {} headers: Accept: @@ -207,7 +311,7 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"deleted_at":"2022-11-10T14:57:22.851823+00:00","public_id":"dee-br9-2uk"}]} + {"deleted_tests":[{"deleted_at":"2022-11-10T18:06:15.480128+00:00","public_id":"uzh-59g-yvt"}]} headers: Content-Type: - application/json @@ -220,7 +324,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/dee-br9-2uk + url: https://api.datadoghq.com/api/v1/synthetics/tests/uzh-59g-yvt method: GET response: body: '{"errors":["Synthetics test not found"]}' diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze index 1ddc4b6433..b967cc66c7 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze @@ -1 +1 @@ -2022-11-08T15:55:05.545535+01:00 \ No newline at end of file +2022-11-10T13:06:09.72404-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml index b3d8d40118..1956d5cf25 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"},{"operator":"validatesJSONPath","target":{"jsonPath":"something","operator":"moreThan","targetValue":5},"type":"body"},{"operator":"isNot","target":200,"type":"statusCode"},{"operator":"matches","target":"20[04]","type":"statusCode"},{"operator":"doesNotMatch","target":"20[04]","type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"$.mykey","operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}"},"type":"body"},{"operator":"validatesXPath","target":{"operator":"contains","targetValue":"12","xPath":"something"},"type":"body"}],"configVariables":[{"example":"1234","name":"TEST","pattern":"{{ numeric(4) }}","type":"text"}],"request":{"basicAuth":{"password":"secret","type":"web","username":"admin"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"},{"operator":"validatesJSONPath","target":{"jsonPath":"something","operator":"moreThan","targetValue":5},"type":"body"},{"operator":"isNot","target":200,"type":"statusCode"},{"operator":"matches","target":"20[04]","type":"statusCode"},{"operator":"doesNotMatch","target":"20[04]","type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"$.mykey","operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}"},"type":"body"},{"operator":"validatesXPath","target":{"operator":"contains","targetValue":"12","xPath":"something"},"type":"body"}],"configVariables":[{"example":"1234","name":"TEST","pattern":"{{ numeric(4) }}","type":"text"}],"request":{"basicAuth":{"password":"secret","type":"web","username":"admin"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"6cq-7um-yby","tags":["foo:bar","baz"],"org_id":569509,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305","monitor_id":102363353,"type":"api","created_at":"2022-11-08T14:55:07.319240+00:00","modified_at":"2022-11-08T14:55:07.319240+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"m2d-6sc-dkm","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569","monitor_id":102668957,"type":"api","created_at":"2022-11-10T18:06:11.014992+00:00","modified_at":"2022-11-10T18:06:11.014992+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/6cq-7um-yby + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/m2d-6sc-dkm method: GET response: body: | - {"status":"paused","public_id":"6cq-7um-yby","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305","monitor_id":102363353,"type":"api","created_at":"2022-11-08T14:55:07.319240+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:55:07.319240+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"m2d-6sc-dkm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569","monitor_id":102668957,"type":"api","created_at":"2022-11-10T18:06:11.014992+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.014992+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -44,11 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/6cq-7um-yby + url: https://api.datadoghq.com/api/v1/synthetics/tests/m2d-6sc-dkm method: GET response: body: | - {"status":"paused","public_id":"6cq-7um-yby","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305","monitor_id":102363353,"type":"api","created_at":"2022-11-08T14:55:07.319240+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:55:07.319240+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"m2d-6sc-dkm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569","monitor_id":102668957,"type":"api","created_at":"2022-11-10T18:06:11.014992+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.014992+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -61,11 +61,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/6cq-7um-yby + url: https://api.datadoghq.com/api/v1/synthetics/tests/m2d-6sc-dkm method: GET response: body: | - {"status":"paused","public_id":"6cq-7um-yby","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305","monitor_id":102363353,"type":"api","created_at":"2022-11-08T14:55:07.319240+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:55:07.319240+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"m2d-6sc-dkm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569","monitor_id":102668957,"type":"api","created_at":"2022-11-10T18:06:11.014992+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.014992+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -78,11 +78,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/6cq-7um-yby + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/m2d-6sc-dkm method: GET response: body: | - {"status":"paused","public_id":"6cq-7um-yby","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305","monitor_id":102363353,"type":"api","created_at":"2022-11-08T14:55:07.319240+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:55:07.319240+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"m2d-6sc-dkm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569","monitor_id":102668957,"type":"api","created_at":"2022-11-10T18:06:11.014992+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.014992+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -95,11 +95,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/6cq-7um-yby + url: https://api.datadoghq.com/api/v1/synthetics/tests/m2d-6sc-dkm method: GET response: body: | - {"status":"paused","public_id":"6cq-7um-yby","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305","monitor_id":102363353,"type":"api","created_at":"2022-11-08T14:55:07.319240+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:55:07.319240+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"m2d-6sc-dkm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569","monitor_id":102668957,"type":"api","created_at":"2022-11-10T18:06:11.014992+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.014992+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -112,11 +112,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/6cq-7um-yby + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/m2d-6sc-dkm method: GET response: body: | - {"status":"paused","public_id":"6cq-7um-yby","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305","monitor_id":102363353,"type":"api","created_at":"2022-11-08T14:55:07.319240+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:55:07.319240+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} + {"status":"paused","public_id":"m2d-6sc-dkm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569","monitor_id":102668957,"type":"api","created_at":"2022-11-10T18:06:11.014992+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:11.014992+00:00","subtype":"http","config":{"request":{"body":"this is a body","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":"{{ TEST_VAR_1 }}","jsonPath":"$.mykey"}},{"operator":"validatesXPath","type":"body","target":{"operator":"contains","targetValue":"12","xPath":"something"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"min_location_failed":1,"tick_every":60}} headers: Content-Type: - application/json @@ -125,18 +125,18 @@ interactions: duration: "" - request: body: | - {"config":{"assertions":[{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"}],"configVariables":[],"request":{"certificate":{"cert":{"content":"content-certificate-updated","filename":"Provided in Terraform config"},"key":{"content":"content-key-updated","filename":"key-updated"}},"method":"GET","timeout":60,"url":"https://docs.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305updated","options":{"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} + {"config":{"assertions":[{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"}],"configVariables":[],"request":{"certificate":{"cert":{"content":"content-certificate-updated","filename":"Provided in Terraform config"},"key":{"content":"content-key-updated","filename":"key-updated"}},"method":"GET","timeout":60,"url":"https://docs.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569updated","options":{"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/6cq-7um-yby + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/m2d-6sc-dkm method: PUT response: body: | - {"status":"live","public_id":"6cq-7um-yby","tags":["foo:bar","foo","env:test"],"org_id":569509,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305updated","monitor_id":102363353,"type":"api","created_at":"2022-11-08T14:55:07.319240+00:00","modified_at":"2022-11-08T14:55:09.657692+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}} + {"status":"live","public_id":"m2d-6sc-dkm","tags":["foo:bar","foo","env:test"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569updated","monitor_id":102668957,"type":"api","created_at":"2022-11-10T18:06:11.014992+00:00","modified_at":"2022-11-10T18:06:13.111770+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}} headers: Content-Type: - application/json @@ -149,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/6cq-7um-yby + url: https://api.datadoghq.com/api/v1/synthetics/tests/m2d-6sc-dkm method: GET response: body: | - {"status":"live","public_id":"6cq-7um-yby","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305updated","monitor_id":102363353,"type":"api","created_at":"2022-11-08T14:55:07.319240+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:55:09.657692+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}} + {"status":"live","public_id":"m2d-6sc-dkm","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569updated","monitor_id":102668957,"type":"api","created_at":"2022-11-10T18:06:11.014992+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:13.111770+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}} headers: Content-Type: - application/json @@ -166,11 +166,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/6cq-7um-yby + url: https://api.datadoghq.com/api/v1/synthetics/tests/m2d-6sc-dkm method: GET response: body: | - {"status":"live","public_id":"6cq-7um-yby","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305updated","monitor_id":102363353,"type":"api","created_at":"2022-11-08T14:55:07.319240+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:55:09.657692+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}} + {"status":"live","public_id":"m2d-6sc-dkm","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569updated","monitor_id":102668957,"type":"api","created_at":"2022-11-10T18:06:11.014992+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:13.111770+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}} headers: Content-Type: - application/json @@ -183,11 +183,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/6cq-7um-yby + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/m2d-6sc-dkm method: GET response: body: | - {"status":"live","public_id":"6cq-7um-yby","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1667919305updated","monitor_id":102363353,"type":"api","created_at":"2022-11-08T14:55:07.319240+00:00","creator":{"handle":"frog@datadoghq.com","name":"Frog","email":"frog@datadoghq.com"},"modified_at":"2022-11-08T14:55:09.657692+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}} + {"status":"live","public_id":"m2d-6sc-dkm","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1668103569updated","monitor_id":102668957,"type":"api","created_at":"2022-11-10T18:06:11.014992+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:06:13.111770+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key-updated"}},"method":"GET","timeout":60},"assertions":[{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}} headers: Content-Type: - application/json @@ -196,7 +196,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["6cq-7um-yby"]} + {"public_ids":["m2d-6sc-dkm"]} form: {} headers: Accept: @@ -207,7 +207,7 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"deleted_at":"2022-11-08T14:55:11.405208+00:00","public_id":"6cq-7um-yby"}]} + {"deleted_tests":[{"deleted_at":"2022-11-10T18:06:17.139421+00:00","public_id":"m2d-6sc-dkm"}]} headers: Content-Type: - application/json @@ -220,7 +220,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/6cq-7um-yby + url: https://api.datadoghq.com/api/v1/synthetics/tests/m2d-6sc-dkm method: GET response: body: '{"errors":["Synthetics test not found"]}' diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze index 9d397ca58d..808f60a6df 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze @@ -1 +1 @@ -2022-11-10T09:57:05.289788-05:00 \ No newline at end of file +2022-11-10T13:07:15.578709-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml index a8c85799b9..c6a3ae760e 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml @@ -1,9 +1,63 @@ --- version: 1 interactions: +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/permissions + method: GET + response: + body: | + {"data":[{"type":"permissions","id":"984a2bd4-d3b4-11e8-a1ff-a7f660d43029","attributes":{"name":"admin","display_name":"Privileged Access","description":"Deprecated. Privileged Access (also known as Admin permission) has been replaced by more specific permissions: Access Management, Org Management, Billing Read/Write, Usage Read/Write.","created":"2018-10-19T15:35:23.734317+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"984d2f00-d3b4-11e8-a200-bb47109e9987","attributes":{"name":"standard","display_name":"Standard Access","description":"View and edit components in your Datadog organization that do not have explicitly defined permissions. This includes configuring events, facets (except logs), and saved views.","created":"2018-10-19T15:35:23.756736+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"5e605652-dd12-11e8-9e53-375565b8970e","attributes":{"name":"logs_read_index_data","display_name":"Logs Read Index Data","description":"Read log data, possibly scoped to one or more indexes. In order to read log data, a user must have both this permission and Logs Read Data. This permission can be granted in a limited capacity per index from the Logs interface or APIs. If granted via the Roles interface or API the permission has global scope. Restrictions are limited to the Log Management product.","created":"2018-10-31T13:39:19.727450+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"62cc036c-dd12-11e8-9e54-db9995643092","attributes":{"name":"logs_modify_indexes","display_name":"Logs Modify Indexes","description":"Read and modify all indexes in your account. This includes the ability to grant the Logs Read Index Data and Logs Write Exclusion Filters permission to other roles, for some or all indexes.","created":"2018-10-31T13:39:27.148615+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"6f66600e-dd12-11e8-9e55-7f30fbb45e73","attributes":{"name":"logs_live_tail","display_name":"Logs Live Tail","description":"View the live tail feed for all log indexes, even if otherwise specifically restricted.","created":"2018-10-31T13:39:48.292879+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7d7c98ac-dd12-11e8-9e56-93700598622d","attributes":{"name":"logs_write_exclusion_filters","display_name":"Logs Write Exclusion Filters","description":"Add and change exclusion filters for all or some log indexes. Can be granted in a limited capacity per index to specific roles via the Logs interface or API. If granted from the Roles interface or API, the permission has global scope.","created":"2018-10-31T13:40:11.926613+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"811ac4ca-dd12-11e8-9e57-676a7f0beef9","attributes":{"name":"logs_write_pipelines","display_name":"Logs Write Pipelines","description":"Add and change log pipeline configurations, including the ability to grant the Logs Write Processors permission to other roles, for some or all pipelines.","created":"2018-10-31T13:40:17.996379+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"84aa3ae4-dd12-11e8-9e58-a373a514ccd0","attributes":{"name":"logs_write_processors","display_name":"Logs Write Processors","description":"Add and change some or all log processor configurations. Can be granted in a limited capacity per pipeline to specific roles via the Logs interface or API. If granted via the Roles interface or API the permission has global scope.","created":"2018-10-31T13:40:23.969725+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"87b00304-dd12-11e8-9e59-cbeb5f71f72f","attributes":{"name":"logs_write_archives","display_name":"Logs Write Archives","description":"Add and edit Log Archives.","created":"2018-10-31T13:40:29.040786+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"979df720-aed7-11e9-99c6-a7eb8373165a","attributes":{"name":"logs_generate_metrics","display_name":"Logs Generate Metrics","description":"Create custom metrics from logs.","created":"2019-07-25T12:27:39.640758+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2","attributes":{"name":"dashboards_read","display_name":"Dashboards Read","description":"View dashboards.","created":"2019-09-10T14:39:51.955175+00:00","group_name":"Dashboards","display_type":"read","restricted":true}},{"type":"permissions","id":"d90f6831-d3d8-11e9-a77a-4fd230ddbc6a","attributes":{"name":"dashboards_write","display_name":"Dashboards Write","description":"Create and change dashboards.","created":"2019-09-10T14:39:51.962944+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"d90f6832-d3d8-11e9-a77a-bf8a2607f864","attributes":{"name":"dashboards_public_share","display_name":"Dashboards Public Share","description":"Generate public and authenticated links to share dashboards externally.","created":"2019-09-10T14:39:51.967094+00:00","group_name":"Dashboards","display_type":"other","restricted":false}},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304","attributes":{"name":"monitors_read","display_name":"Monitors Read","description":"View monitors.","created":"2019-09-16T18:39:07.744297+00:00","group_name":"Monitors","display_type":"read","restricted":true}},{"type":"permissions","id":"48ef71ea-d8b1-11e9-a77a-93f408470ad0","attributes":{"name":"monitors_write","display_name":"Monitors Write","description":"Edit, mute, and delete individual monitors.","created":"2019-09-16T18:39:15.597109+00:00","group_name":"Monitors","display_type":"write","restricted":false}},{"type":"permissions","id":"4d87d5f8-d8b1-11e9-a77a-eb9c8350d04f","attributes":{"name":"monitors_downtime","display_name":"Monitors Manage Downtime","description":"Set downtimes to suppress alerts from any monitor in an organization. The ability to write monitors is not required to set downtimes.","created":"2019-09-16T18:39:23.306702+00:00","group_name":"Monitors","display_type":"other","restricted":false}},{"type":"permissions","id":"1af86ce4-7823-11ea-93dc-d7cad1b1c6cb","attributes":{"name":"logs_read_data","display_name":"Logs Read Data","description":"Read log data. In order to read log data, a user must have both this permission and Logs Read Index Data. This permission can be restricted with restriction queries. Restrictions are limited to the Log Management product.","created":"2020-04-06T16:24:35.989108+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"b382b982-8535-11ea-93de-2bf1bdf20798","attributes":{"name":"logs_read_archives","display_name":"Logs Read Archives","description":"Read Log Archives location and use it for rehydration.","created":"2020-04-23T07:40:27.966133+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7314eb20-aa58-11ea-95e2-6fb6e4a451d5","attributes":{"name":"security_monitoring_rules_read","display_name":"Security Rules Read","description":"Read Detection Rules.","created":"2020-06-09T13:52:25.279909+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"7b516476-aa58-11ea-95e2-93718cd56369","attributes":{"name":"security_monitoring_rules_write","display_name":"Security Rules Write","description":"Create and edit Detection Rules.","created":"2020-06-09T13:52:39.099413+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"80de1ec0-aa58-11ea-95e2-aff381626d5d","attributes":{"name":"security_monitoring_signals_read","display_name":"Security Signals Read","description":"View Security Signals.","created":"2020-06-09T13:52:48.410398+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"58b412cc-ff6d-11eb-bc9c-da7ad0900002","attributes":{"name":"security_monitoring_signals_write","display_name":"Security Signals Write","description":"Modify Security Signals.","created":"2021-08-17T15:11:06.963503+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"9ac1d8cc-e707-11ea-aa2d-73d37e989a9d","attributes":{"name":"user_access_invite","display_name":"User Access Invite","description":"Invite other users to your organization.","created":"2020-08-25T19:17:23.539701+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"9de604d8-e707-11ea-aa2d-93f1a783b3a3","attributes":{"name":"user_access_manage","display_name":"User Access Manage","description":"Disable users, manage user roles, manage SAML-to-role mappings, and configure logs restriction queries.","created":"2020-08-25T19:17:28.810412+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301da-ec5c-11ea-aa9f-73bedeab67ee","attributes":{"name":"user_app_keys","display_name":"User App Keys","description":"View and manage Application Keys owned by the user.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301db-ec5c-11ea-aa9f-2fe72193d60e","attributes":{"name":"org_app_keys_read","display_name":"Org App Keys Read","description":"View Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301dc-ec5c-11ea-aa9f-13b33f8f46ea","attributes":{"name":"org_app_keys_write","display_name":"Org App Keys Write","description":"Manage Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301dd-ec5c-11ea-aa9f-97edfb345bc9","attributes":{"name":"synthetics_private_location_read","display_name":"Synthetics Private Location Read","description":"View, search, and use Synthetics private locations.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301de-ec5c-11ea-aa9f-a73252c24806","attributes":{"name":"synthetics_private_location_write","display_name":"Synthetics Private Location Write","description":"Create and delete private locations in addition to having access to the associated installation guidelines.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301df-ec5c-11ea-aa9f-970a9ae645e5","attributes":{"name":"billing_read","display_name":"Billing Read","description":"View your organization's subscription and payment method but not make edits.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e0-ec5c-11ea-aa9f-6ba6cc675d8c","attributes":{"name":"billing_edit","display_name":"Billing Edit","description":"Manage your organization's subscription and payment method.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e1-ec5c-11ea-aa9f-afa39f6f3e36","attributes":{"name":"usage_read","display_name":"Usage Read","description":"View your organization's usage and usage attribution.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e2-ec5c-11ea-aa9f-1f511b7305fd","attributes":{"name":"usage_edit","display_name":"Usage Edit","description":"Manage your organization's usage attribution set-up.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e4-ec5c-11ea-aa9f-87282b3a50cc","attributes":{"name":"metric_tags_write","display_name":"Metric Tags Write","description":"Edit and save tag configurations for custom metrics.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Metrics","display_type":"write","restricted":false}},{"type":"permissions","id":"07c3c146-f7f8-11ea-acf6-0bd62b9ae60e","attributes":{"name":"logs_write_historical_view","display_name":"Logs Write Historical View","description":"Rehydrate logs from Archives.","created":"2020-09-16T08:38:44.242076+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2fbdac76-f923-11ea-adbc-07f3823e2b43","attributes":{"name":"audit_logs_read","display_name":"Audit Trail Read","description":"View Audit Trail in your organization.","created":"2020-09-17T20:20:10.834252+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"372896c4-f923-11ea-adbc-4fecd107156d","attributes":{"name":"api_keys_read","display_name":"API Keys Read","description":"List and retrieve the key values of all API Keys in your organization.","created":"2020-09-17T20:20:23.279769+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"3e4d4d28-f923-11ea-adbc-e3565938c12e","attributes":{"name":"api_keys_write","display_name":"API Keys Write","description":"Create, rename, and revoke API Keys for your organization.","created":"2020-09-17T20:20:35.264430+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"4628ca54-f923-11ea-adbc-4b2b7f88c5e9","attributes":{"name":"synthetics_global_variable_read","display_name":"Synthetics Global Variable Read","description":"View, search, and use Synthetics global variables.","created":"2020-09-17T20:20:48.446916+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"4ada6e36-f923-11ea-adbc-0788e5c5e3cf","attributes":{"name":"synthetics_global_variable_write","display_name":"Synthetics Global Variable Write","description":"Create, edit, and delete global variables for Synthetics.","created":"2020-09-17T20:20:56.322003+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5025ee24-f923-11ea-adbc-576ea241df8d","attributes":{"name":"synthetics_read","display_name":"Synthetics Read","description":"List and view configured Synthetic tests and test results.","created":"2020-09-17T20:21:05.205361+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"55f4b5ec-f923-11ea-adbc-1bfa2334a755","attributes":{"name":"synthetics_write","display_name":"Synthetics Write","description":"Create, edit, and delete Synthetic tests.","created":"2020-09-17T20:21:14.949140+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5c6b88e2-f923-11ea-adbc-abf57d079420","attributes":{"name":"synthetics_default_settings_read","display_name":"Synthetics Default Settings Read","description":"View the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:25.794160+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"642eebe6-f923-11ea-adbc-eb617674ea04","attributes":{"name":"synthetics_default_settings_write","display_name":"Synthetics Default Settings Write","description":"Edit the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:38.818771+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"6ba32d22-0e1a-11eb-ba44-bf9a5aafaa39","attributes":{"name":"logs_write_facets","display_name":"Logs Write Facets","description":"Create or edit Log Facets.","created":"2020-10-14T12:40:20.271908+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"a42e94b2-1476-11eb-bd08-efda28c04248","attributes":{"name":"service_account_write","display_name":"Service Account Write","description":"Create, disable, and use Service Accounts in your organization.","created":"2020-10-22T14:55:35.814239+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"fcac2ad8-2843-11eb-8315-0fe47949d625","attributes":{"name":"integrations_api","display_name":"Integrations API","description":"Deprecated. Use the Integrations APIs to configure integrations. In order to configure integrations from the UI, a user must also have Standard Access.","created":"2020-11-16T19:43:23.198568+00:00","group_name":"Integrations","display_type":"other","restricted":false}},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0","attributes":{"name":"apm_read","display_name":"APM Read","description":"Read and query APM and Trace Analytics.","created":"2020-11-23T20:55:45.006110+00:00","group_name":"APM","display_type":"read","restricted":true}},{"type":"permissions","id":"43fa188e-2dce-11eb-84c0-835ad1fd6287","attributes":{"name":"apm_retention_filter_read","display_name":"APM Retention Filter Read","description":"Read trace retention filters. A user with this permission can view the retention filters page, list of filters, their statistics, and creation info.","created":"2020-11-23T20:55:49.190595+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"465cfe66-2dce-11eb-84c0-6baa888239fa","attributes":{"name":"apm_retention_filter_write","display_name":"APM Retention Filter Write","description":"Create, edit, and delete trace retention filters. A user with this permission can create new retention filters, and update or delete to existing retention filters.","created":"2020-11-23T20:55:53.194236+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"4916eebe-2dce-11eb-84c0-271cb2c672e8","attributes":{"name":"apm_service_ingest_read","display_name":"APM Service Ingest Read","description":"Access service ingestion pages. A user with this permission can view the service ingestion page, list of root services, their statistics, and creation info.","created":"2020-11-23T20:55:57.768261+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"4e3f02b4-2dce-11eb-84c0-2fca946a6efc","attributes":{"name":"apm_service_ingest_write","display_name":"APM Service Ingest Write","description":"Edit service ingestion pages' root services. A user with this permission can edit the root service ingestion and generate a code snippet to increase ingestion per service.","created":"2020-11-23T20:56:06.419518+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"53950c54-2dce-11eb-84c0-a79ae108f6f8","attributes":{"name":"apm_apdex_manage_write","display_name":"APM Apdex Manage Write","description":"Set Apdex T value on any service. A user with this permission can set the T value from the Apdex graph on the service page.","created":"2020-11-23T20:56:15.371926+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"5cbe5f9c-2dce-11eb-84c0-872d3e9f1076","attributes":{"name":"apm_tag_management_write","display_name":"APM Tag Management Write","description":"Edit second primary tag selection. A user with this permission can modify the second primary tag dropdown in the APM settings page.","created":"2020-11-23T20:56:30.742299+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"61765026-2dce-11eb-84c0-833e230d1b8f","attributes":{"name":"apm_primary_operation_write","display_name":"APM Primary Operation Write","description":"Edit the operation name value selection. A user with this permission can modify the operation name list in the APM settings page and the operation name controller on the service page.","created":"2020-11-23T20:56:38.658649+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"04bc1cf2-340a-11eb-873a-43b973c760dd","attributes":{"name":"audit_logs_write","display_name":"Audit Trail Write","description":"Configure Audit Trail in your organization.","created":"2020-12-01T19:18:39.866516+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"8106300a-54f7-11eb-8cbc-7781a434a67b","attributes":{"name":"rum_apps_write","display_name":"RUM Apps Write","description":"Create, edit, and delete RUM Applications.","created":"2021-01-12T16:59:16.324480+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e74-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_write","display_name":"Dynamic Instrumentation Write Configuration","description":"Edit Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.006815+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e75-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_read","display_name":"Dynamic Instrumentation Read Configuration","description":"View Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.010517+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7c-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_read","display_name":"Data Scanner Read","description":"View Data Scanner configurations.","created":"2021-03-29T16:56:46.394971+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7d-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_write","display_name":"Data Scanner Write","description":"Edit Data Scanner configurations.","created":"2021-03-29T16:56:46.398584+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"7df222b6-a45c-11eb-a0af-da7ad0900002","attributes":{"name":"org_management","display_name":"Org Management","description":"Edit org configurations, including authentication and certain security preferences such as configuring SAML, renaming an org, configuring allowed login methods, creating child orgs, subscribing & unsubscribing from apps in the marketplace.","created":"2021-04-23T17:51:12.187340+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"98b984f4-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_read","display_name":"Security Filters Read","description":"Read Security Filters.","created":"2021-05-10T08:56:23.676833+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"98b984f5-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_write","display_name":"Security Filters Write","description":"Create, edit, and delete Security Filters.","created":"2021-05-10T08:56:23.680551+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_read","display_name":"Incident Read","description":"View incidents in Datadog.","created":"2021-06-22T15:11:09.255499+00:00","group_name":"Incidents","display_type":"read","restricted":true}},{"type":"permissions","id":"12efc211-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_write","display_name":"Incident Write","description":"Create, view, and manage incidents in Datadog.","created":"2021-06-22T15:11:09.264369+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20f-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_read","display_name":"Incidents Settings Read","description":"View Incidents settings.","created":"2021-06-22T15:11:09.259568+00:00","group_name":"Incidents","display_type":"read","restricted":false}},{"type":"permissions","id":"12efc210-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_write","display_name":"Incidents Settings Write","description":"Configure Incidents settings.","created":"2021-06-22T15:11:09.261986+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"97971c1c-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_read","display_name":"Application Security Management Event Rules Read","description":"View Application Security Management Event Rules.","created":"2021-07-19T13:31:15.595771+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"97971c1d-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_write","display_name":"Application Security Management Event Rules Write","description":"Edit Application Security Management Event Rules.","created":"2021-07-19T13:31:15.598808+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_apps_read","display_name":"RUM Apps Read","description":"View RUM Applications data.","created":"2021-08-02T09:46:07.671535+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":true}},{"type":"permissions","id":"7605ef25-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_session_replay_read","display_name":"RUM Session Replay Read","description":"View Session Replays.","created":"2021-08-02T09:46:07.674640+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b8-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_read","display_name":"Security Notification Rules Read","description":"Read Notification Rules.","created":"2021-09-16T08:26:27.366789+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b9-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_write","display_name":"Security Notification Rules Write","description":"Create, edit, and delete Notification Rules.","created":"2021-09-16T08:26:27.369359+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"26c79920-1703-11ec-85d2-da7ad0900002","attributes":{"name":"apm_generate_metrics","display_name":"APM Generate Metrics","description":"Create custom metrics from spans.","created":"2021-09-16T15:31:24.458963+00:00","group_name":"APM","display_type":"other","restricted":false}},{"type":"permissions","id":"020a563c-56a4-11ec-a982-da7ad0900002","attributes":{"name":"apm_pipelines_write","display_name":"APM Pipelines Write","description":"Add and change APM pipeline configurations.","created":"2021-12-06T14:51:35.049129+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"8e4d6b6e-5750-11ec-a9f4-da7ad0900002","attributes":{"name":"apm_pipelines_read","display_name":"APM Pipelines Read","description":"View APM pipeline configurations.","created":"2021-12-07T11:26:43.807269+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb4-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_read","display_name":"Pipeline Configurations Read","description":"View pipeline configurations.","created":"2021-12-09T00:11:38.956827+00:00","group_name":"Observability Pipelines","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb5-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_write","display_name":"Pipeline Configurations Write","description":"Create, edit, and delete pipeline configurations.","created":"2021-12-09T00:11:38.960833+00:00","group_name":"Observability Pipelines","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a8-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_read","display_name":"Workflows Read","description":"View workflows.","created":"2022-02-03T15:07:12.058412+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917aa-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_write","display_name":"Workflows Write","description":"Create, edit, and delete workflows.","created":"2022-02-03T15:07:12.061765+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a9-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_run","display_name":"Workflows Run","description":"Run workflows.","created":"2022-02-03T15:07:12.060079+00:00","group_name":"Workflows","display_type":"other","restricted":false}},{"type":"permissions","id":"f6e917a6-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_read","display_name":"Connections Read","description":"List and view available connections. Connections contain secrets that cannot be revealed.","created":"2022-02-03T15:07:12.053432+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917a7-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_write","display_name":"Connections Write","description":"Create and delete connections.","created":"2022-02-03T15:07:12.056590+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"7a89ec40-8b69-11ec-812d-da7ad0900002","attributes":{"name":"incidents_private_global_access","display_name":"Private Incidents Global Access","description":"Access all private incidents in Datadog, even when not added as a responder.","created":"2022-02-11T18:36:08.531989+00:00","group_name":"Incidents","display_type":"other","restricted":false}},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_read","display_name":"Notebooks Read","description":"View notebooks.","created":"2022-03-02T18:51:05.040950+00:00","group_name":"Notebooks","display_type":"read","restricted":true}},{"type":"permissions","id":"b6bf9ac7-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_write","display_name":"Notebooks Write","description":"Create and change notebooks.","created":"2022-03-02T18:51:05.044683+00:00","group_name":"Notebooks","display_type":"write","restricted":false}},{"type":"permissions","id":"e35c06b0-966b-11ec-83c9-da7ad0900002","attributes":{"name":"logs_delete_data","display_name":"Logs Delete Data","description":"Delete data from your Logs, including entire indexes.","created":"2022-02-25T18:51:06.176019+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2108215e-b9b4-11ec-958e-da7ad0900002","attributes":{"name":"rum_generate_metrics","display_name":"RUM Generate Metrics","description":"Create custom metrics from RUM events.","created":"2022-04-11T16:26:24.106645+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"7b1f5089-c59e-11ec-aa32-da7ad0900002","attributes":{"name":"manage_integrations","display_name":"Integrations Manage","description":"Install, uninstall, and configure integrations.","created":"2022-04-26T20:21:40.285834+00:00","group_name":"Integrations","display_type":"write","restricted":false}},{"type":"permissions","id":"1afff448-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_read","display_name":"Usage Notifications Read","description":"Receive notifications and view currently configured notification settings.","created":"2022-05-17T13:56:09.870985+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"1afff449-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_write","display_name":"Usage Notifications Write","description":"Receive notifications and configure notification settings.","created":"2022-05-17T13:56:09.876124+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"6c87d3da-e5c5-11ec-b1d6-da7ad0900002","attributes":{"name":"generate_dashboard_reports","display_name":"Dashboards Report Write","description":"Schedule custom reports from a dashboard. These reports will display any viewable data regardless of any granular restrictions (restriction queries, scoped indexes) applied to the report's creator.","created":"2022-06-06T18:21:03.378896+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_read","display_name":"SLOs Read","description":"View SLOs and status corrections.","created":"2022-06-08T16:20:55.142591+00:00","group_name":"Service Level Objectives","display_type":"read","restricted":true}},{"type":"permissions","id":"f8e941d0-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_write","display_name":"SLOs Write","description":"Create, edit, and delete SLOs.","created":"2022-06-08T16:20:55.143869+00:00","group_name":"Service Level Objectives","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941ce-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_corrections","display_name":"SLOs Status Corrections","description":"Apply, edit, and delete SLO status corrections. A user with this permission can make status corrections, even if they do not have permission to edit those SLOs.","created":"2022-06-08T16:20:55.139410+00:00","group_name":"Service Level Objectives","display_type":"other","restricted":false}},{"type":"permissions","id":"ee68fba9-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_write","display_name":"Service Catalog Write","description":"Add, modify, and delete service catalog definitions when those definitions are maintained by Datadog.","created":"2022-08-08T16:55:39.377188+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"ee68fba8-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_read","display_name":"Service Catalog Read","description":"View service catalog and service definitions.","created":"2022-08-08T16:55:39.374377+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"5b2c3e28-1761-11ed-b018-da7ad0900002","attributes":{"name":"logs_write_forwarding_rules","display_name":"Logs Write Forwarding Rules","description":"Add and edit forwarding destinations and rules for logs.","created":"2022-08-08T21:30:42.723663+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"6be119a6-1cd8-11ed-b185-da7ad0900002","attributes":{"name":"watchdog_insights_read","display_name":"Watchdog Insights Read","description":"View Watchdog Insights.","created":"2022-08-15T20:25:36.677197+00:00","group_name":"Watchdog","display_type":"read","restricted":false}},{"type":"permissions","id":"36e2a22e-248a-11ed-b405-da7ad0900002","attributes":{"name":"connections_resolve","display_name":"Connections Resolve","description":"Resolve connections.","created":"2022-08-25T15:25:56.325170+00:00","group_name":"Workflows","display_type":"read","restricted":false}}]} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"data":{"attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635"},"relationships":{},"type":"roles"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + url: https://api.datadoghq.com/api/v2/roles + method: POST + response: + body: | + {"data":{"type":"roles","id":"82c08ac4-6122-11ed-982b-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635","created_at":"2022-11-10T18:07:16.878518+00:00","modified_at":"2022-11-10T18:07:16.982575+00:00"},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/roles/82c08ac4-6122-11ed-982b-da7ad0900002 + method: GET + response: + body: | + {"data":{"type":"roles","id":"82c08ac4-6122-11ed-982b-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635","created_at":"2022-11-10T18:07:16.878518+00:00","modified_at":"2022-11-10T18:07:16.982575+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" - request: 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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","bodyType":"text/plain","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225-monitor","monitor_priority":5,"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} + {"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"}],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","username":"ntlm-username","workstation":"ntlm-workstation"},"body":"this is a body","bodyType":"text/plain","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","noSavingResponseBody":true,"proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635","options":{"allow_insecure":true,"ci":{"executionRule":"blocking"},"follow_redirects":true,"ignoreServerCertificateError":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635-monitor","monitor_priority":5,"restricted_roles":["82c08ac4-6122-11ed-982b-da7ad0900002"],"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: @@ -14,7 +68,24 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"ad3-92k-u2w","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225","monitor_id":102643142,"type":"api","created_at":"2022-11-10T14:57:06.684487+00:00","modified_at":"2022-11-10T14:57:06.684487+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"mvi-kzs-xkr","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635","monitor_id":102669322,"type":"api","created_at":"2022-11-10T18:07:17.307579+00:00","modified_at":"2022-11-10T18:07:17.307579+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["82c08ac4-6122-11ed-982b-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635-monitor","tick_every":60,"ignoreServerCertificateError":true}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/mvi-kzs-xkr + method: GET + response: + body: | + {"status":"paused","public_id":"mvi-kzs-xkr","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635","monitor_id":102669322,"type":"api","created_at":"2022-11-10T18:07:17.307579+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:07:17.307579+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["82c08ac4-6122-11ed-982b-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +98,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/ad3-92k-u2w + url: https://api.datadoghq.com/api/v2/roles/82c08ac4-6122-11ed-982b-da7ad0900002 method: GET response: body: | - {"status":"paused","public_id":"ad3-92k-u2w","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225","monitor_id":102643142,"type":"api","created_at":"2022-11-10T14:57:06.684487+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:06.684487+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"data":{"type":"roles","id":"82c08ac4-6122-11ed-982b-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635","created_at":"2022-11-10T18:07:16.878518+00:00","modified_at":"2022-11-10T18:07:16.982575+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -44,11 +115,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/ad3-92k-u2w + url: https://api.datadoghq.com/api/v1/synthetics/tests/mvi-kzs-xkr method: GET response: body: | - {"status":"paused","public_id":"ad3-92k-u2w","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225","monitor_id":102643142,"type":"api","created_at":"2022-11-10T14:57:06.684487+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:06.684487+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"mvi-kzs-xkr","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635","monitor_id":102669322,"type":"api","created_at":"2022-11-10T18:07:17.307579+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:07:17.307579+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["82c08ac4-6122-11ed-982b-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -61,11 +132,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/ad3-92k-u2w + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/mvi-kzs-xkr method: GET response: body: | - {"status":"paused","public_id":"ad3-92k-u2w","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225","monitor_id":102643142,"type":"api","created_at":"2022-11-10T14:57:06.684487+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:06.684487+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"mvi-kzs-xkr","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635","monitor_id":102669322,"type":"api","created_at":"2022-11-10T18:07:17.307579+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:07:17.307579+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["82c08ac4-6122-11ed-982b-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/ad3-92k-u2w + url: https://api.datadoghq.com/api/v1/synthetics/tests/mvi-kzs-xkr method: GET response: body: | - {"status":"paused","public_id":"ad3-92k-u2w","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225","monitor_id":102643142,"type":"api","created_at":"2022-11-10T14:57:06.684487+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:06.684487+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"mvi-kzs-xkr","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635","monitor_id":102669322,"type":"api","created_at":"2022-11-10T18:07:17.307579+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:07:17.307579+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["82c08ac4-6122-11ed-982b-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -95,11 +166,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/ad3-92k-u2w + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/mvi-kzs-xkr method: GET response: body: | - {"status":"paused","public_id":"ad3-92k-u2w","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225","monitor_id":102643142,"type":"api","created_at":"2022-11-10T14:57:06.684487+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:57:06.684487+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668092225-monitor","tick_every":60,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"mvi-kzs-xkr","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635","monitor_id":102669322,"type":"api","created_at":"2022-11-10T18:07:17.307579+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:07:17.307579+00:00","subtype":"http","config":{"request":{"body":"this is a body","bodyType":"text/plain","url":"https://www.datadoghq.com","noSavingResponseBody":true,"basicAuth":{"username":"ntlm-username","domain":"ntlm-domain","password":"ntlm-password","type":"ntlm","workstation":"ntlm-workstation"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"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"}],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["82c08ac4-6122-11ed-982b-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1668103635-monitor","tick_every":60,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -108,7 +179,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["ad3-92k-u2w"]} + {"public_ids":["mvi-kzs-xkr"]} form: {} headers: Accept: @@ -119,20 +190,52 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"deleted_at":"2022-11-10T14:57:08.509606+00:00","public_id":"ad3-92k-u2w"}]} + {"deleted_tests":[{"deleted_at":"2022-11-10T18:07:19.236439+00:00","public_id":"mvi-kzs-xkr"}]} headers: Content-Type: - application/json status: 200 OK code: 200 duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - '*/*' + url: https://api.datadoghq.com/api/v2/roles/82c08ac4-6122-11ed-982b-da7ad0900002 + method: DELETE + response: + body: "" + headers: + Content-Type: + - text/html; charset=utf-8 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/82c08ac4-6122-11ed-982b-da7ad0900002 + method: GET + response: + body: '{"message": "The resource could not be found.

\n\n\n", "code": "404 Not Found", "title": "Not Found"}' + headers: + Content-Type: + - application/json + status: 404 Not Found + code: 404 + duration: "" - request: body: "" form: {} headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/ad3-92k-u2w + url: https://api.datadoghq.com/api/v1/synthetics/tests/mvi-kzs-xkr method: GET response: body: '{"errors":["Synthetics test not found"]}' diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.freeze index 5121a9c1af..21b6bcc721 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.freeze @@ -1 +1 @@ -2022-11-10T09:55:44.637904-05:00 \ No newline at end of file +2022-11-10T13:04:25.395068-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml index 859ea47aa3..944976d027 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml @@ -1,9 +1,63 @@ --- version: 1 interactions: +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/permissions + method: GET + response: + body: | + {"data":[{"type":"permissions","id":"984a2bd4-d3b4-11e8-a1ff-a7f660d43029","attributes":{"name":"admin","display_name":"Privileged Access","description":"Deprecated. Privileged Access (also known as Admin permission) has been replaced by more specific permissions: Access Management, Org Management, Billing Read/Write, Usage Read/Write.","created":"2018-10-19T15:35:23.734317+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"984d2f00-d3b4-11e8-a200-bb47109e9987","attributes":{"name":"standard","display_name":"Standard Access","description":"View and edit components in your Datadog organization that do not have explicitly defined permissions. This includes configuring events, facets (except logs), and saved views.","created":"2018-10-19T15:35:23.756736+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"5e605652-dd12-11e8-9e53-375565b8970e","attributes":{"name":"logs_read_index_data","display_name":"Logs Read Index Data","description":"Read log data, possibly scoped to one or more indexes. In order to read log data, a user must have both this permission and Logs Read Data. This permission can be granted in a limited capacity per index from the Logs interface or APIs. If granted via the Roles interface or API the permission has global scope. Restrictions are limited to the Log Management product.","created":"2018-10-31T13:39:19.727450+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"62cc036c-dd12-11e8-9e54-db9995643092","attributes":{"name":"logs_modify_indexes","display_name":"Logs Modify Indexes","description":"Read and modify all indexes in your account. This includes the ability to grant the Logs Read Index Data and Logs Write Exclusion Filters permission to other roles, for some or all indexes.","created":"2018-10-31T13:39:27.148615+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"6f66600e-dd12-11e8-9e55-7f30fbb45e73","attributes":{"name":"logs_live_tail","display_name":"Logs Live Tail","description":"View the live tail feed for all log indexes, even if otherwise specifically restricted.","created":"2018-10-31T13:39:48.292879+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7d7c98ac-dd12-11e8-9e56-93700598622d","attributes":{"name":"logs_write_exclusion_filters","display_name":"Logs Write Exclusion Filters","description":"Add and change exclusion filters for all or some log indexes. Can be granted in a limited capacity per index to specific roles via the Logs interface or API. If granted from the Roles interface or API, the permission has global scope.","created":"2018-10-31T13:40:11.926613+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"811ac4ca-dd12-11e8-9e57-676a7f0beef9","attributes":{"name":"logs_write_pipelines","display_name":"Logs Write Pipelines","description":"Add and change log pipeline configurations, including the ability to grant the Logs Write Processors permission to other roles, for some or all pipelines.","created":"2018-10-31T13:40:17.996379+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"84aa3ae4-dd12-11e8-9e58-a373a514ccd0","attributes":{"name":"logs_write_processors","display_name":"Logs Write Processors","description":"Add and change some or all log processor configurations. Can be granted in a limited capacity per pipeline to specific roles via the Logs interface or API. If granted via the Roles interface or API the permission has global scope.","created":"2018-10-31T13:40:23.969725+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"87b00304-dd12-11e8-9e59-cbeb5f71f72f","attributes":{"name":"logs_write_archives","display_name":"Logs Write Archives","description":"Add and edit Log Archives.","created":"2018-10-31T13:40:29.040786+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"979df720-aed7-11e9-99c6-a7eb8373165a","attributes":{"name":"logs_generate_metrics","display_name":"Logs Generate Metrics","description":"Create custom metrics from logs.","created":"2019-07-25T12:27:39.640758+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2","attributes":{"name":"dashboards_read","display_name":"Dashboards Read","description":"View dashboards.","created":"2019-09-10T14:39:51.955175+00:00","group_name":"Dashboards","display_type":"read","restricted":true}},{"type":"permissions","id":"d90f6831-d3d8-11e9-a77a-4fd230ddbc6a","attributes":{"name":"dashboards_write","display_name":"Dashboards Write","description":"Create and change dashboards.","created":"2019-09-10T14:39:51.962944+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"d90f6832-d3d8-11e9-a77a-bf8a2607f864","attributes":{"name":"dashboards_public_share","display_name":"Dashboards Public Share","description":"Generate public and authenticated links to share dashboards externally.","created":"2019-09-10T14:39:51.967094+00:00","group_name":"Dashboards","display_type":"other","restricted":false}},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304","attributes":{"name":"monitors_read","display_name":"Monitors Read","description":"View monitors.","created":"2019-09-16T18:39:07.744297+00:00","group_name":"Monitors","display_type":"read","restricted":true}},{"type":"permissions","id":"48ef71ea-d8b1-11e9-a77a-93f408470ad0","attributes":{"name":"monitors_write","display_name":"Monitors Write","description":"Edit, mute, and delete individual monitors.","created":"2019-09-16T18:39:15.597109+00:00","group_name":"Monitors","display_type":"write","restricted":false}},{"type":"permissions","id":"4d87d5f8-d8b1-11e9-a77a-eb9c8350d04f","attributes":{"name":"monitors_downtime","display_name":"Monitors Manage Downtime","description":"Set downtimes to suppress alerts from any monitor in an organization. The ability to write monitors is not required to set downtimes.","created":"2019-09-16T18:39:23.306702+00:00","group_name":"Monitors","display_type":"other","restricted":false}},{"type":"permissions","id":"1af86ce4-7823-11ea-93dc-d7cad1b1c6cb","attributes":{"name":"logs_read_data","display_name":"Logs Read Data","description":"Read log data. In order to read log data, a user must have both this permission and Logs Read Index Data. This permission can be restricted with restriction queries. Restrictions are limited to the Log Management product.","created":"2020-04-06T16:24:35.989108+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"b382b982-8535-11ea-93de-2bf1bdf20798","attributes":{"name":"logs_read_archives","display_name":"Logs Read Archives","description":"Read Log Archives location and use it for rehydration.","created":"2020-04-23T07:40:27.966133+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7314eb20-aa58-11ea-95e2-6fb6e4a451d5","attributes":{"name":"security_monitoring_rules_read","display_name":"Security Rules Read","description":"Read Detection Rules.","created":"2020-06-09T13:52:25.279909+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"7b516476-aa58-11ea-95e2-93718cd56369","attributes":{"name":"security_monitoring_rules_write","display_name":"Security Rules Write","description":"Create and edit Detection Rules.","created":"2020-06-09T13:52:39.099413+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"80de1ec0-aa58-11ea-95e2-aff381626d5d","attributes":{"name":"security_monitoring_signals_read","display_name":"Security Signals Read","description":"View Security Signals.","created":"2020-06-09T13:52:48.410398+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"58b412cc-ff6d-11eb-bc9c-da7ad0900002","attributes":{"name":"security_monitoring_signals_write","display_name":"Security Signals Write","description":"Modify Security Signals.","created":"2021-08-17T15:11:06.963503+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"9ac1d8cc-e707-11ea-aa2d-73d37e989a9d","attributes":{"name":"user_access_invite","display_name":"User Access Invite","description":"Invite other users to your organization.","created":"2020-08-25T19:17:23.539701+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"9de604d8-e707-11ea-aa2d-93f1a783b3a3","attributes":{"name":"user_access_manage","display_name":"User Access Manage","description":"Disable users, manage user roles, manage SAML-to-role mappings, and configure logs restriction queries.","created":"2020-08-25T19:17:28.810412+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301da-ec5c-11ea-aa9f-73bedeab67ee","attributes":{"name":"user_app_keys","display_name":"User App Keys","description":"View and manage Application Keys owned by the user.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301db-ec5c-11ea-aa9f-2fe72193d60e","attributes":{"name":"org_app_keys_read","display_name":"Org App Keys Read","description":"View Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301dc-ec5c-11ea-aa9f-13b33f8f46ea","attributes":{"name":"org_app_keys_write","display_name":"Org App Keys Write","description":"Manage Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301dd-ec5c-11ea-aa9f-97edfb345bc9","attributes":{"name":"synthetics_private_location_read","display_name":"Synthetics Private Location Read","description":"View, search, and use Synthetics private locations.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301de-ec5c-11ea-aa9f-a73252c24806","attributes":{"name":"synthetics_private_location_write","display_name":"Synthetics Private Location Write","description":"Create and delete private locations in addition to having access to the associated installation guidelines.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301df-ec5c-11ea-aa9f-970a9ae645e5","attributes":{"name":"billing_read","display_name":"Billing Read","description":"View your organization's subscription and payment method but not make edits.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e0-ec5c-11ea-aa9f-6ba6cc675d8c","attributes":{"name":"billing_edit","display_name":"Billing Edit","description":"Manage your organization's subscription and payment method.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e1-ec5c-11ea-aa9f-afa39f6f3e36","attributes":{"name":"usage_read","display_name":"Usage Read","description":"View your organization's usage and usage attribution.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e2-ec5c-11ea-aa9f-1f511b7305fd","attributes":{"name":"usage_edit","display_name":"Usage Edit","description":"Manage your organization's usage attribution set-up.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e4-ec5c-11ea-aa9f-87282b3a50cc","attributes":{"name":"metric_tags_write","display_name":"Metric Tags Write","description":"Edit and save tag configurations for custom metrics.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Metrics","display_type":"write","restricted":false}},{"type":"permissions","id":"07c3c146-f7f8-11ea-acf6-0bd62b9ae60e","attributes":{"name":"logs_write_historical_view","display_name":"Logs Write Historical View","description":"Rehydrate logs from Archives.","created":"2020-09-16T08:38:44.242076+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2fbdac76-f923-11ea-adbc-07f3823e2b43","attributes":{"name":"audit_logs_read","display_name":"Audit Trail Read","description":"View Audit Trail in your organization.","created":"2020-09-17T20:20:10.834252+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"372896c4-f923-11ea-adbc-4fecd107156d","attributes":{"name":"api_keys_read","display_name":"API Keys Read","description":"List and retrieve the key values of all API Keys in your organization.","created":"2020-09-17T20:20:23.279769+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"3e4d4d28-f923-11ea-adbc-e3565938c12e","attributes":{"name":"api_keys_write","display_name":"API Keys Write","description":"Create, rename, and revoke API Keys for your organization.","created":"2020-09-17T20:20:35.264430+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"4628ca54-f923-11ea-adbc-4b2b7f88c5e9","attributes":{"name":"synthetics_global_variable_read","display_name":"Synthetics Global Variable Read","description":"View, search, and use Synthetics global variables.","created":"2020-09-17T20:20:48.446916+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"4ada6e36-f923-11ea-adbc-0788e5c5e3cf","attributes":{"name":"synthetics_global_variable_write","display_name":"Synthetics Global Variable Write","description":"Create, edit, and delete global variables for Synthetics.","created":"2020-09-17T20:20:56.322003+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5025ee24-f923-11ea-adbc-576ea241df8d","attributes":{"name":"synthetics_read","display_name":"Synthetics Read","description":"List and view configured Synthetic tests and test results.","created":"2020-09-17T20:21:05.205361+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"55f4b5ec-f923-11ea-adbc-1bfa2334a755","attributes":{"name":"synthetics_write","display_name":"Synthetics Write","description":"Create, edit, and delete Synthetic tests.","created":"2020-09-17T20:21:14.949140+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5c6b88e2-f923-11ea-adbc-abf57d079420","attributes":{"name":"synthetics_default_settings_read","display_name":"Synthetics Default Settings Read","description":"View the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:25.794160+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"642eebe6-f923-11ea-adbc-eb617674ea04","attributes":{"name":"synthetics_default_settings_write","display_name":"Synthetics Default Settings Write","description":"Edit the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:38.818771+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"6ba32d22-0e1a-11eb-ba44-bf9a5aafaa39","attributes":{"name":"logs_write_facets","display_name":"Logs Write Facets","description":"Create or edit Log Facets.","created":"2020-10-14T12:40:20.271908+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"a42e94b2-1476-11eb-bd08-efda28c04248","attributes":{"name":"service_account_write","display_name":"Service Account Write","description":"Create, disable, and use Service Accounts in your organization.","created":"2020-10-22T14:55:35.814239+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"fcac2ad8-2843-11eb-8315-0fe47949d625","attributes":{"name":"integrations_api","display_name":"Integrations API","description":"Deprecated. Use the Integrations APIs to configure integrations. In order to configure integrations from the UI, a user must also have Standard Access.","created":"2020-11-16T19:43:23.198568+00:00","group_name":"Integrations","display_type":"other","restricted":false}},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0","attributes":{"name":"apm_read","display_name":"APM Read","description":"Read and query APM and Trace Analytics.","created":"2020-11-23T20:55:45.006110+00:00","group_name":"APM","display_type":"read","restricted":true}},{"type":"permissions","id":"43fa188e-2dce-11eb-84c0-835ad1fd6287","attributes":{"name":"apm_retention_filter_read","display_name":"APM Retention Filter Read","description":"Read trace retention filters. A user with this permission can view the retention filters page, list of filters, their statistics, and creation info.","created":"2020-11-23T20:55:49.190595+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"465cfe66-2dce-11eb-84c0-6baa888239fa","attributes":{"name":"apm_retention_filter_write","display_name":"APM Retention Filter Write","description":"Create, edit, and delete trace retention filters. A user with this permission can create new retention filters, and update or delete to existing retention filters.","created":"2020-11-23T20:55:53.194236+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"4916eebe-2dce-11eb-84c0-271cb2c672e8","attributes":{"name":"apm_service_ingest_read","display_name":"APM Service Ingest Read","description":"Access service ingestion pages. A user with this permission can view the service ingestion page, list of root services, their statistics, and creation info.","created":"2020-11-23T20:55:57.768261+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"4e3f02b4-2dce-11eb-84c0-2fca946a6efc","attributes":{"name":"apm_service_ingest_write","display_name":"APM Service Ingest Write","description":"Edit service ingestion pages' root services. A user with this permission can edit the root service ingestion and generate a code snippet to increase ingestion per service.","created":"2020-11-23T20:56:06.419518+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"53950c54-2dce-11eb-84c0-a79ae108f6f8","attributes":{"name":"apm_apdex_manage_write","display_name":"APM Apdex Manage Write","description":"Set Apdex T value on any service. A user with this permission can set the T value from the Apdex graph on the service page.","created":"2020-11-23T20:56:15.371926+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"5cbe5f9c-2dce-11eb-84c0-872d3e9f1076","attributes":{"name":"apm_tag_management_write","display_name":"APM Tag Management Write","description":"Edit second primary tag selection. A user with this permission can modify the second primary tag dropdown in the APM settings page.","created":"2020-11-23T20:56:30.742299+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"61765026-2dce-11eb-84c0-833e230d1b8f","attributes":{"name":"apm_primary_operation_write","display_name":"APM Primary Operation Write","description":"Edit the operation name value selection. A user with this permission can modify the operation name list in the APM settings page and the operation name controller on the service page.","created":"2020-11-23T20:56:38.658649+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"04bc1cf2-340a-11eb-873a-43b973c760dd","attributes":{"name":"audit_logs_write","display_name":"Audit Trail Write","description":"Configure Audit Trail in your organization.","created":"2020-12-01T19:18:39.866516+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"8106300a-54f7-11eb-8cbc-7781a434a67b","attributes":{"name":"rum_apps_write","display_name":"RUM Apps Write","description":"Create, edit, and delete RUM Applications.","created":"2021-01-12T16:59:16.324480+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e74-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_write","display_name":"Dynamic Instrumentation Write Configuration","description":"Edit Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.006815+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e75-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_read","display_name":"Dynamic Instrumentation Read Configuration","description":"View Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.010517+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7c-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_read","display_name":"Data Scanner Read","description":"View Data Scanner configurations.","created":"2021-03-29T16:56:46.394971+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7d-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_write","display_name":"Data Scanner Write","description":"Edit Data Scanner configurations.","created":"2021-03-29T16:56:46.398584+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"7df222b6-a45c-11eb-a0af-da7ad0900002","attributes":{"name":"org_management","display_name":"Org Management","description":"Edit org configurations, including authentication and certain security preferences such as configuring SAML, renaming an org, configuring allowed login methods, creating child orgs, subscribing & unsubscribing from apps in the marketplace.","created":"2021-04-23T17:51:12.187340+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"98b984f4-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_read","display_name":"Security Filters Read","description":"Read Security Filters.","created":"2021-05-10T08:56:23.676833+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"98b984f5-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_write","display_name":"Security Filters Write","description":"Create, edit, and delete Security Filters.","created":"2021-05-10T08:56:23.680551+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_read","display_name":"Incident Read","description":"View incidents in Datadog.","created":"2021-06-22T15:11:09.255499+00:00","group_name":"Incidents","display_type":"read","restricted":true}},{"type":"permissions","id":"12efc211-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_write","display_name":"Incident Write","description":"Create, view, and manage incidents in Datadog.","created":"2021-06-22T15:11:09.264369+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20f-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_read","display_name":"Incidents Settings Read","description":"View Incidents settings.","created":"2021-06-22T15:11:09.259568+00:00","group_name":"Incidents","display_type":"read","restricted":false}},{"type":"permissions","id":"12efc210-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_write","display_name":"Incidents Settings Write","description":"Configure Incidents settings.","created":"2021-06-22T15:11:09.261986+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"97971c1c-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_read","display_name":"Application Security Management Event Rules Read","description":"View Application Security Management Event Rules.","created":"2021-07-19T13:31:15.595771+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"97971c1d-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_write","display_name":"Application Security Management Event Rules Write","description":"Edit Application Security Management Event Rules.","created":"2021-07-19T13:31:15.598808+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_apps_read","display_name":"RUM Apps Read","description":"View RUM Applications data.","created":"2021-08-02T09:46:07.671535+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":true}},{"type":"permissions","id":"7605ef25-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_session_replay_read","display_name":"RUM Session Replay Read","description":"View Session Replays.","created":"2021-08-02T09:46:07.674640+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b8-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_read","display_name":"Security Notification Rules Read","description":"Read Notification Rules.","created":"2021-09-16T08:26:27.366789+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b9-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_write","display_name":"Security Notification Rules Write","description":"Create, edit, and delete Notification Rules.","created":"2021-09-16T08:26:27.369359+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"26c79920-1703-11ec-85d2-da7ad0900002","attributes":{"name":"apm_generate_metrics","display_name":"APM Generate Metrics","description":"Create custom metrics from spans.","created":"2021-09-16T15:31:24.458963+00:00","group_name":"APM","display_type":"other","restricted":false}},{"type":"permissions","id":"020a563c-56a4-11ec-a982-da7ad0900002","attributes":{"name":"apm_pipelines_write","display_name":"APM Pipelines Write","description":"Add and change APM pipeline configurations.","created":"2021-12-06T14:51:35.049129+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"8e4d6b6e-5750-11ec-a9f4-da7ad0900002","attributes":{"name":"apm_pipelines_read","display_name":"APM Pipelines Read","description":"View APM pipeline configurations.","created":"2021-12-07T11:26:43.807269+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb4-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_read","display_name":"Pipeline Configurations Read","description":"View pipeline configurations.","created":"2021-12-09T00:11:38.956827+00:00","group_name":"Observability Pipelines","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb5-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_write","display_name":"Pipeline Configurations Write","description":"Create, edit, and delete pipeline configurations.","created":"2021-12-09T00:11:38.960833+00:00","group_name":"Observability Pipelines","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a8-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_read","display_name":"Workflows Read","description":"View workflows.","created":"2022-02-03T15:07:12.058412+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917aa-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_write","display_name":"Workflows Write","description":"Create, edit, and delete workflows.","created":"2022-02-03T15:07:12.061765+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a9-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_run","display_name":"Workflows Run","description":"Run workflows.","created":"2022-02-03T15:07:12.060079+00:00","group_name":"Workflows","display_type":"other","restricted":false}},{"type":"permissions","id":"f6e917a6-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_read","display_name":"Connections Read","description":"List and view available connections. Connections contain secrets that cannot be revealed.","created":"2022-02-03T15:07:12.053432+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917a7-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_write","display_name":"Connections Write","description":"Create and delete connections.","created":"2022-02-03T15:07:12.056590+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"7a89ec40-8b69-11ec-812d-da7ad0900002","attributes":{"name":"incidents_private_global_access","display_name":"Private Incidents Global Access","description":"Access all private incidents in Datadog, even when not added as a responder.","created":"2022-02-11T18:36:08.531989+00:00","group_name":"Incidents","display_type":"other","restricted":false}},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_read","display_name":"Notebooks Read","description":"View notebooks.","created":"2022-03-02T18:51:05.040950+00:00","group_name":"Notebooks","display_type":"read","restricted":true}},{"type":"permissions","id":"b6bf9ac7-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_write","display_name":"Notebooks Write","description":"Create and change notebooks.","created":"2022-03-02T18:51:05.044683+00:00","group_name":"Notebooks","display_type":"write","restricted":false}},{"type":"permissions","id":"e35c06b0-966b-11ec-83c9-da7ad0900002","attributes":{"name":"logs_delete_data","display_name":"Logs Delete Data","description":"Delete data from your Logs, including entire indexes.","created":"2022-02-25T18:51:06.176019+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2108215e-b9b4-11ec-958e-da7ad0900002","attributes":{"name":"rum_generate_metrics","display_name":"RUM Generate Metrics","description":"Create custom metrics from RUM events.","created":"2022-04-11T16:26:24.106645+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"7b1f5089-c59e-11ec-aa32-da7ad0900002","attributes":{"name":"manage_integrations","display_name":"Integrations Manage","description":"Install, uninstall, and configure integrations.","created":"2022-04-26T20:21:40.285834+00:00","group_name":"Integrations","display_type":"write","restricted":false}},{"type":"permissions","id":"1afff448-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_read","display_name":"Usage Notifications Read","description":"Receive notifications and view currently configured notification settings.","created":"2022-05-17T13:56:09.870985+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"1afff449-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_write","display_name":"Usage Notifications Write","description":"Receive notifications and configure notification settings.","created":"2022-05-17T13:56:09.876124+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"6c87d3da-e5c5-11ec-b1d6-da7ad0900002","attributes":{"name":"generate_dashboard_reports","display_name":"Dashboards Report Write","description":"Schedule custom reports from a dashboard. These reports will display any viewable data regardless of any granular restrictions (restriction queries, scoped indexes) applied to the report's creator.","created":"2022-06-06T18:21:03.378896+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_read","display_name":"SLOs Read","description":"View SLOs and status corrections.","created":"2022-06-08T16:20:55.142591+00:00","group_name":"Service Level Objectives","display_type":"read","restricted":true}},{"type":"permissions","id":"f8e941d0-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_write","display_name":"SLOs Write","description":"Create, edit, and delete SLOs.","created":"2022-06-08T16:20:55.143869+00:00","group_name":"Service Level Objectives","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941ce-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_corrections","display_name":"SLOs Status Corrections","description":"Apply, edit, and delete SLO status corrections. A user with this permission can make status corrections, even if they do not have permission to edit those SLOs.","created":"2022-06-08T16:20:55.139410+00:00","group_name":"Service Level Objectives","display_type":"other","restricted":false}},{"type":"permissions","id":"ee68fba9-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_write","display_name":"Service Catalog Write","description":"Add, modify, and delete service catalog definitions when those definitions are maintained by Datadog.","created":"2022-08-08T16:55:39.377188+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"ee68fba8-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_read","display_name":"Service Catalog Read","description":"View service catalog and service definitions.","created":"2022-08-08T16:55:39.374377+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"5b2c3e28-1761-11ed-b018-da7ad0900002","attributes":{"name":"logs_write_forwarding_rules","display_name":"Logs Write Forwarding Rules","description":"Add and edit forwarding destinations and rules for logs.","created":"2022-08-08T21:30:42.723663+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"6be119a6-1cd8-11ed-b185-da7ad0900002","attributes":{"name":"watchdog_insights_read","display_name":"Watchdog Insights Read","description":"View Watchdog Insights.","created":"2022-08-15T20:25:36.677197+00:00","group_name":"Watchdog","display_type":"read","restricted":false}},{"type":"permissions","id":"36e2a22e-248a-11ed-b405-da7ad0900002","attributes":{"name":"connections_resolve","display_name":"Connections Resolve","description":"Resolve connections.","created":"2022-08-25T15:25:56.325170+00:00","group_name":"Workflows","display_type":"read","restricted":false}}]} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"data":{"attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465"},"relationships":{},"type":"roles"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + url: https://api.datadoghq.com/api/v2/roles + method: POST + response: + body: | + {"data":{"type":"roles","id":"1d911434-6122-11ed-8321-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465","created_at":"2022-11-10T18:04:27.117635+00:00","modified_at":"2022-11-10T18:04:27.205447+00:00"},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/roles/1d911434-6122-11ed-8321-da7ad0900002 + method: GET + response: + body: | + {"data":{"type":"roles","id":"1d911434-6122-11ed-8321-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465","created_at":"2022-11-10T18:04:27.117635+00:00","modified_at":"2022-11-10T18:04:27.205447+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" - request: body: | - {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} + {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["1d911434-6122-11ed-8321-da7ad0900002"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} form: {} headers: Accept: @@ -14,7 +68,24 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"qpn-cq7-9jb","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144","monitor_id":102642901,"type":"browser","created_at":"2022-11-10T14:55:45.996226+00:00","modified_at":"2022-11-10T14:55:45.996226+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"taa-ybn-3wp","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465","monitor_id":102668711,"type":"browser","created_at":"2022-11-10T18:04:27.574272+00:00","modified_at":"2022-11-10T18:04:27.574272+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["1d911434-6122-11ed-8321-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465-monitor","tick_every":900,"ignoreServerCertificateError":true}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/taa-ybn-3wp + method: GET + response: + body: | + {"status":"paused","public_id":"taa-ybn-3wp","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465","monitor_id":102668711,"type":"browser","created_at":"2022-11-10T18:04:27.574272+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:04:27.574272+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["1d911434-6122-11ed-8321-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +98,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/qpn-cq7-9jb + url: https://api.datadoghq.com/api/v1/synthetics/tests/taa-ybn-3wp method: GET response: body: | - {"status":"paused","public_id":"qpn-cq7-9jb","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144","monitor_id":102642901,"type":"browser","created_at":"2022-11-10T14:55:45.996226+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:45.996226+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"taa-ybn-3wp","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465","monitor_id":102668711,"type":"browser","created_at":"2022-11-10T18:04:27.574272+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:04:27.574272+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["1d911434-6122-11ed-8321-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -44,11 +115,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/qpn-cq7-9jb + url: https://api.datadoghq.com/api/v2/roles/1d911434-6122-11ed-8321-da7ad0900002 method: GET response: body: | - {"status":"paused","public_id":"qpn-cq7-9jb","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144","monitor_id":102642901,"type":"browser","created_at":"2022-11-10T14:55:45.996226+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:45.996226+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"data":{"type":"roles","id":"1d911434-6122-11ed-8321-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465","created_at":"2022-11-10T18:04:27.117635+00:00","modified_at":"2022-11-10T18:04:27.205447+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -61,11 +132,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/qpn-cq7-9jb + url: https://api.datadoghq.com/api/v1/synthetics/tests/taa-ybn-3wp method: GET response: body: | - {"status":"paused","public_id":"qpn-cq7-9jb","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144","monitor_id":102642901,"type":"browser","created_at":"2022-11-10T14:55:45.996226+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:45.996226+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"taa-ybn-3wp","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465","monitor_id":102668711,"type":"browser","created_at":"2022-11-10T18:04:27.574272+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:04:27.574272+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["1d911434-6122-11ed-8321-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/qpn-cq7-9jb + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/taa-ybn-3wp method: GET response: body: | - {"status":"paused","public_id":"qpn-cq7-9jb","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144","monitor_id":102642901,"type":"browser","created_at":"2022-11-10T14:55:45.996226+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:45.996226+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668092144-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"taa-ybn-3wp","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465","monitor_id":102668711,"type":"browser","created_at":"2022-11-10T18:04:27.574272+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:04:27.574272+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["1d911434-6122-11ed-8321-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1668103465-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -91,7 +162,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["qpn-cq7-9jb"]} + {"public_ids":["taa-ybn-3wp"]} form: {} headers: Accept: @@ -102,20 +173,52 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"deleted_at":"2022-11-10T14:55:47.390626+00:00","public_id":"qpn-cq7-9jb"}]} + {"deleted_tests":[{"deleted_at":"2022-11-10T18:04:29.123634+00:00","public_id":"taa-ybn-3wp"}]} headers: Content-Type: - application/json status: 200 OK code: 200 duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - '*/*' + url: https://api.datadoghq.com/api/v2/roles/1d911434-6122-11ed-8321-da7ad0900002 + method: DELETE + response: + body: "" + headers: + Content-Type: + - text/html; charset=utf-8 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/1d911434-6122-11ed-8321-da7ad0900002 + method: GET + response: + body: '{"message": "The resource could not be found.

\n\n\n", "code": "404 Not Found", "title": "Not Found"}' + headers: + Content-Type: + - application/json + status: 404 Not Found + code: 404 + duration: "" - request: body: "" form: {} headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/qpn-cq7-9jb + url: https://api.datadoghq.com/api/v1/synthetics/tests/taa-ybn-3wp method: GET response: body: '{"errors":["Synthetics test not found"]}' diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.freeze index e33d0865ed..069852a9be 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.freeze @@ -1 +1 @@ -2022-11-10T09:56:47.041402-05:00 \ No newline at end of file +2022-11-10T13:05:50.841582-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml index 568962cf19..a1e1cc608b 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml @@ -2,8 +2,62 @@ version: 1 interactions: - request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/permissions + method: GET + response: + body: | + {"data":[{"type":"permissions","id":"984a2bd4-d3b4-11e8-a1ff-a7f660d43029","attributes":{"name":"admin","display_name":"Privileged Access","description":"Deprecated. Privileged Access (also known as Admin permission) has been replaced by more specific permissions: Access Management, Org Management, Billing Read/Write, Usage Read/Write.","created":"2018-10-19T15:35:23.734317+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"984d2f00-d3b4-11e8-a200-bb47109e9987","attributes":{"name":"standard","display_name":"Standard Access","description":"View and edit components in your Datadog organization that do not have explicitly defined permissions. This includes configuring events, facets (except logs), and saved views.","created":"2018-10-19T15:35:23.756736+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"5e605652-dd12-11e8-9e53-375565b8970e","attributes":{"name":"logs_read_index_data","display_name":"Logs Read Index Data","description":"Read log data, possibly scoped to one or more indexes. In order to read log data, a user must have both this permission and Logs Read Data. This permission can be granted in a limited capacity per index from the Logs interface or APIs. If granted via the Roles interface or API the permission has global scope. Restrictions are limited to the Log Management product.","created":"2018-10-31T13:39:19.727450+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"62cc036c-dd12-11e8-9e54-db9995643092","attributes":{"name":"logs_modify_indexes","display_name":"Logs Modify Indexes","description":"Read and modify all indexes in your account. This includes the ability to grant the Logs Read Index Data and Logs Write Exclusion Filters permission to other roles, for some or all indexes.","created":"2018-10-31T13:39:27.148615+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"6f66600e-dd12-11e8-9e55-7f30fbb45e73","attributes":{"name":"logs_live_tail","display_name":"Logs Live Tail","description":"View the live tail feed for all log indexes, even if otherwise specifically restricted.","created":"2018-10-31T13:39:48.292879+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7d7c98ac-dd12-11e8-9e56-93700598622d","attributes":{"name":"logs_write_exclusion_filters","display_name":"Logs Write Exclusion Filters","description":"Add and change exclusion filters for all or some log indexes. Can be granted in a limited capacity per index to specific roles via the Logs interface or API. If granted from the Roles interface or API, the permission has global scope.","created":"2018-10-31T13:40:11.926613+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"811ac4ca-dd12-11e8-9e57-676a7f0beef9","attributes":{"name":"logs_write_pipelines","display_name":"Logs Write Pipelines","description":"Add and change log pipeline configurations, including the ability to grant the Logs Write Processors permission to other roles, for some or all pipelines.","created":"2018-10-31T13:40:17.996379+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"84aa3ae4-dd12-11e8-9e58-a373a514ccd0","attributes":{"name":"logs_write_processors","display_name":"Logs Write Processors","description":"Add and change some or all log processor configurations. Can be granted in a limited capacity per pipeline to specific roles via the Logs interface or API. If granted via the Roles interface or API the permission has global scope.","created":"2018-10-31T13:40:23.969725+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"87b00304-dd12-11e8-9e59-cbeb5f71f72f","attributes":{"name":"logs_write_archives","display_name":"Logs Write Archives","description":"Add and edit Log Archives.","created":"2018-10-31T13:40:29.040786+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"979df720-aed7-11e9-99c6-a7eb8373165a","attributes":{"name":"logs_generate_metrics","display_name":"Logs Generate Metrics","description":"Create custom metrics from logs.","created":"2019-07-25T12:27:39.640758+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2","attributes":{"name":"dashboards_read","display_name":"Dashboards Read","description":"View dashboards.","created":"2019-09-10T14:39:51.955175+00:00","group_name":"Dashboards","display_type":"read","restricted":true}},{"type":"permissions","id":"d90f6831-d3d8-11e9-a77a-4fd230ddbc6a","attributes":{"name":"dashboards_write","display_name":"Dashboards Write","description":"Create and change dashboards.","created":"2019-09-10T14:39:51.962944+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"d90f6832-d3d8-11e9-a77a-bf8a2607f864","attributes":{"name":"dashboards_public_share","display_name":"Dashboards Public Share","description":"Generate public and authenticated links to share dashboards externally.","created":"2019-09-10T14:39:51.967094+00:00","group_name":"Dashboards","display_type":"other","restricted":false}},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304","attributes":{"name":"monitors_read","display_name":"Monitors Read","description":"View monitors.","created":"2019-09-16T18:39:07.744297+00:00","group_name":"Monitors","display_type":"read","restricted":true}},{"type":"permissions","id":"48ef71ea-d8b1-11e9-a77a-93f408470ad0","attributes":{"name":"monitors_write","display_name":"Monitors Write","description":"Edit, mute, and delete individual monitors.","created":"2019-09-16T18:39:15.597109+00:00","group_name":"Monitors","display_type":"write","restricted":false}},{"type":"permissions","id":"4d87d5f8-d8b1-11e9-a77a-eb9c8350d04f","attributes":{"name":"monitors_downtime","display_name":"Monitors Manage Downtime","description":"Set downtimes to suppress alerts from any monitor in an organization. The ability to write monitors is not required to set downtimes.","created":"2019-09-16T18:39:23.306702+00:00","group_name":"Monitors","display_type":"other","restricted":false}},{"type":"permissions","id":"1af86ce4-7823-11ea-93dc-d7cad1b1c6cb","attributes":{"name":"logs_read_data","display_name":"Logs Read Data","description":"Read log data. In order to read log data, a user must have both this permission and Logs Read Index Data. This permission can be restricted with restriction queries. Restrictions are limited to the Log Management product.","created":"2020-04-06T16:24:35.989108+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"b382b982-8535-11ea-93de-2bf1bdf20798","attributes":{"name":"logs_read_archives","display_name":"Logs Read Archives","description":"Read Log Archives location and use it for rehydration.","created":"2020-04-23T07:40:27.966133+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7314eb20-aa58-11ea-95e2-6fb6e4a451d5","attributes":{"name":"security_monitoring_rules_read","display_name":"Security Rules Read","description":"Read Detection Rules.","created":"2020-06-09T13:52:25.279909+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"7b516476-aa58-11ea-95e2-93718cd56369","attributes":{"name":"security_monitoring_rules_write","display_name":"Security Rules Write","description":"Create and edit Detection Rules.","created":"2020-06-09T13:52:39.099413+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"80de1ec0-aa58-11ea-95e2-aff381626d5d","attributes":{"name":"security_monitoring_signals_read","display_name":"Security Signals Read","description":"View Security Signals.","created":"2020-06-09T13:52:48.410398+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"58b412cc-ff6d-11eb-bc9c-da7ad0900002","attributes":{"name":"security_monitoring_signals_write","display_name":"Security Signals Write","description":"Modify Security Signals.","created":"2021-08-17T15:11:06.963503+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"9ac1d8cc-e707-11ea-aa2d-73d37e989a9d","attributes":{"name":"user_access_invite","display_name":"User Access Invite","description":"Invite other users to your organization.","created":"2020-08-25T19:17:23.539701+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"9de604d8-e707-11ea-aa2d-93f1a783b3a3","attributes":{"name":"user_access_manage","display_name":"User Access Manage","description":"Disable users, manage user roles, manage SAML-to-role mappings, and configure logs restriction queries.","created":"2020-08-25T19:17:28.810412+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301da-ec5c-11ea-aa9f-73bedeab67ee","attributes":{"name":"user_app_keys","display_name":"User App Keys","description":"View and manage Application Keys owned by the user.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301db-ec5c-11ea-aa9f-2fe72193d60e","attributes":{"name":"org_app_keys_read","display_name":"Org App Keys Read","description":"View Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301dc-ec5c-11ea-aa9f-13b33f8f46ea","attributes":{"name":"org_app_keys_write","display_name":"Org App Keys Write","description":"Manage Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301dd-ec5c-11ea-aa9f-97edfb345bc9","attributes":{"name":"synthetics_private_location_read","display_name":"Synthetics Private Location Read","description":"View, search, and use Synthetics private locations.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301de-ec5c-11ea-aa9f-a73252c24806","attributes":{"name":"synthetics_private_location_write","display_name":"Synthetics Private Location Write","description":"Create and delete private locations in addition to having access to the associated installation guidelines.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301df-ec5c-11ea-aa9f-970a9ae645e5","attributes":{"name":"billing_read","display_name":"Billing Read","description":"View your organization's subscription and payment method but not make edits.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e0-ec5c-11ea-aa9f-6ba6cc675d8c","attributes":{"name":"billing_edit","display_name":"Billing Edit","description":"Manage your organization's subscription and payment method.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e1-ec5c-11ea-aa9f-afa39f6f3e36","attributes":{"name":"usage_read","display_name":"Usage Read","description":"View your organization's usage and usage attribution.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e2-ec5c-11ea-aa9f-1f511b7305fd","attributes":{"name":"usage_edit","display_name":"Usage Edit","description":"Manage your organization's usage attribution set-up.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e4-ec5c-11ea-aa9f-87282b3a50cc","attributes":{"name":"metric_tags_write","display_name":"Metric Tags Write","description":"Edit and save tag configurations for custom metrics.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Metrics","display_type":"write","restricted":false}},{"type":"permissions","id":"07c3c146-f7f8-11ea-acf6-0bd62b9ae60e","attributes":{"name":"logs_write_historical_view","display_name":"Logs Write Historical View","description":"Rehydrate logs from Archives.","created":"2020-09-16T08:38:44.242076+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2fbdac76-f923-11ea-adbc-07f3823e2b43","attributes":{"name":"audit_logs_read","display_name":"Audit Trail Read","description":"View Audit Trail in your organization.","created":"2020-09-17T20:20:10.834252+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"372896c4-f923-11ea-adbc-4fecd107156d","attributes":{"name":"api_keys_read","display_name":"API Keys Read","description":"List and retrieve the key values of all API Keys in your organization.","created":"2020-09-17T20:20:23.279769+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"3e4d4d28-f923-11ea-adbc-e3565938c12e","attributes":{"name":"api_keys_write","display_name":"API Keys Write","description":"Create, rename, and revoke API Keys for your organization.","created":"2020-09-17T20:20:35.264430+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"4628ca54-f923-11ea-adbc-4b2b7f88c5e9","attributes":{"name":"synthetics_global_variable_read","display_name":"Synthetics Global Variable Read","description":"View, search, and use Synthetics global variables.","created":"2020-09-17T20:20:48.446916+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"4ada6e36-f923-11ea-adbc-0788e5c5e3cf","attributes":{"name":"synthetics_global_variable_write","display_name":"Synthetics Global Variable Write","description":"Create, edit, and delete global variables for Synthetics.","created":"2020-09-17T20:20:56.322003+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5025ee24-f923-11ea-adbc-576ea241df8d","attributes":{"name":"synthetics_read","display_name":"Synthetics Read","description":"List and view configured Synthetic tests and test results.","created":"2020-09-17T20:21:05.205361+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"55f4b5ec-f923-11ea-adbc-1bfa2334a755","attributes":{"name":"synthetics_write","display_name":"Synthetics Write","description":"Create, edit, and delete Synthetic tests.","created":"2020-09-17T20:21:14.949140+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5c6b88e2-f923-11ea-adbc-abf57d079420","attributes":{"name":"synthetics_default_settings_read","display_name":"Synthetics Default Settings Read","description":"View the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:25.794160+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"642eebe6-f923-11ea-adbc-eb617674ea04","attributes":{"name":"synthetics_default_settings_write","display_name":"Synthetics Default Settings Write","description":"Edit the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:38.818771+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"6ba32d22-0e1a-11eb-ba44-bf9a5aafaa39","attributes":{"name":"logs_write_facets","display_name":"Logs Write Facets","description":"Create or edit Log Facets.","created":"2020-10-14T12:40:20.271908+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"a42e94b2-1476-11eb-bd08-efda28c04248","attributes":{"name":"service_account_write","display_name":"Service Account Write","description":"Create, disable, and use Service Accounts in your organization.","created":"2020-10-22T14:55:35.814239+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"fcac2ad8-2843-11eb-8315-0fe47949d625","attributes":{"name":"integrations_api","display_name":"Integrations API","description":"Deprecated. Use the Integrations APIs to configure integrations. In order to configure integrations from the UI, a user must also have Standard Access.","created":"2020-11-16T19:43:23.198568+00:00","group_name":"Integrations","display_type":"other","restricted":false}},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0","attributes":{"name":"apm_read","display_name":"APM Read","description":"Read and query APM and Trace Analytics.","created":"2020-11-23T20:55:45.006110+00:00","group_name":"APM","display_type":"read","restricted":true}},{"type":"permissions","id":"43fa188e-2dce-11eb-84c0-835ad1fd6287","attributes":{"name":"apm_retention_filter_read","display_name":"APM Retention Filter Read","description":"Read trace retention filters. A user with this permission can view the retention filters page, list of filters, their statistics, and creation info.","created":"2020-11-23T20:55:49.190595+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"465cfe66-2dce-11eb-84c0-6baa888239fa","attributes":{"name":"apm_retention_filter_write","display_name":"APM Retention Filter Write","description":"Create, edit, and delete trace retention filters. A user with this permission can create new retention filters, and update or delete to existing retention filters.","created":"2020-11-23T20:55:53.194236+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"4916eebe-2dce-11eb-84c0-271cb2c672e8","attributes":{"name":"apm_service_ingest_read","display_name":"APM Service Ingest Read","description":"Access service ingestion pages. A user with this permission can view the service ingestion page, list of root services, their statistics, and creation info.","created":"2020-11-23T20:55:57.768261+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"4e3f02b4-2dce-11eb-84c0-2fca946a6efc","attributes":{"name":"apm_service_ingest_write","display_name":"APM Service Ingest Write","description":"Edit service ingestion pages' root services. A user with this permission can edit the root service ingestion and generate a code snippet to increase ingestion per service.","created":"2020-11-23T20:56:06.419518+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"53950c54-2dce-11eb-84c0-a79ae108f6f8","attributes":{"name":"apm_apdex_manage_write","display_name":"APM Apdex Manage Write","description":"Set Apdex T value on any service. A user with this permission can set the T value from the Apdex graph on the service page.","created":"2020-11-23T20:56:15.371926+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"5cbe5f9c-2dce-11eb-84c0-872d3e9f1076","attributes":{"name":"apm_tag_management_write","display_name":"APM Tag Management Write","description":"Edit second primary tag selection. A user with this permission can modify the second primary tag dropdown in the APM settings page.","created":"2020-11-23T20:56:30.742299+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"61765026-2dce-11eb-84c0-833e230d1b8f","attributes":{"name":"apm_primary_operation_write","display_name":"APM Primary Operation Write","description":"Edit the operation name value selection. A user with this permission can modify the operation name list in the APM settings page and the operation name controller on the service page.","created":"2020-11-23T20:56:38.658649+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"04bc1cf2-340a-11eb-873a-43b973c760dd","attributes":{"name":"audit_logs_write","display_name":"Audit Trail Write","description":"Configure Audit Trail in your organization.","created":"2020-12-01T19:18:39.866516+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"8106300a-54f7-11eb-8cbc-7781a434a67b","attributes":{"name":"rum_apps_write","display_name":"RUM Apps Write","description":"Create, edit, and delete RUM Applications.","created":"2021-01-12T16:59:16.324480+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e74-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_write","display_name":"Dynamic Instrumentation Write Configuration","description":"Edit Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.006815+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e75-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_read","display_name":"Dynamic Instrumentation Read Configuration","description":"View Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.010517+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7c-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_read","display_name":"Data Scanner Read","description":"View Data Scanner configurations.","created":"2021-03-29T16:56:46.394971+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7d-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_write","display_name":"Data Scanner Write","description":"Edit Data Scanner configurations.","created":"2021-03-29T16:56:46.398584+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"7df222b6-a45c-11eb-a0af-da7ad0900002","attributes":{"name":"org_management","display_name":"Org Management","description":"Edit org configurations, including authentication and certain security preferences such as configuring SAML, renaming an org, configuring allowed login methods, creating child orgs, subscribing & unsubscribing from apps in the marketplace.","created":"2021-04-23T17:51:12.187340+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"98b984f4-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_read","display_name":"Security Filters Read","description":"Read Security Filters.","created":"2021-05-10T08:56:23.676833+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"98b984f5-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_write","display_name":"Security Filters Write","description":"Create, edit, and delete Security Filters.","created":"2021-05-10T08:56:23.680551+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_read","display_name":"Incident Read","description":"View incidents in Datadog.","created":"2021-06-22T15:11:09.255499+00:00","group_name":"Incidents","display_type":"read","restricted":true}},{"type":"permissions","id":"12efc211-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_write","display_name":"Incident Write","description":"Create, view, and manage incidents in Datadog.","created":"2021-06-22T15:11:09.264369+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20f-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_read","display_name":"Incidents Settings Read","description":"View Incidents settings.","created":"2021-06-22T15:11:09.259568+00:00","group_name":"Incidents","display_type":"read","restricted":false}},{"type":"permissions","id":"12efc210-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_write","display_name":"Incidents Settings Write","description":"Configure Incidents settings.","created":"2021-06-22T15:11:09.261986+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"97971c1c-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_read","display_name":"Application Security Management Event Rules Read","description":"View Application Security Management Event Rules.","created":"2021-07-19T13:31:15.595771+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"97971c1d-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_write","display_name":"Application Security Management Event Rules Write","description":"Edit Application Security Management Event Rules.","created":"2021-07-19T13:31:15.598808+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_apps_read","display_name":"RUM Apps Read","description":"View RUM Applications data.","created":"2021-08-02T09:46:07.671535+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":true}},{"type":"permissions","id":"7605ef25-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_session_replay_read","display_name":"RUM Session Replay Read","description":"View Session Replays.","created":"2021-08-02T09:46:07.674640+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b8-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_read","display_name":"Security Notification Rules Read","description":"Read Notification Rules.","created":"2021-09-16T08:26:27.366789+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b9-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_write","display_name":"Security Notification Rules Write","description":"Create, edit, and delete Notification Rules.","created":"2021-09-16T08:26:27.369359+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"26c79920-1703-11ec-85d2-da7ad0900002","attributes":{"name":"apm_generate_metrics","display_name":"APM Generate Metrics","description":"Create custom metrics from spans.","created":"2021-09-16T15:31:24.458963+00:00","group_name":"APM","display_type":"other","restricted":false}},{"type":"permissions","id":"020a563c-56a4-11ec-a982-da7ad0900002","attributes":{"name":"apm_pipelines_write","display_name":"APM Pipelines Write","description":"Add and change APM pipeline configurations.","created":"2021-12-06T14:51:35.049129+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"8e4d6b6e-5750-11ec-a9f4-da7ad0900002","attributes":{"name":"apm_pipelines_read","display_name":"APM Pipelines Read","description":"View APM pipeline configurations.","created":"2021-12-07T11:26:43.807269+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb4-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_read","display_name":"Pipeline Configurations Read","description":"View pipeline configurations.","created":"2021-12-09T00:11:38.956827+00:00","group_name":"Observability Pipelines","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb5-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_write","display_name":"Pipeline Configurations Write","description":"Create, edit, and delete pipeline configurations.","created":"2021-12-09T00:11:38.960833+00:00","group_name":"Observability Pipelines","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a8-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_read","display_name":"Workflows Read","description":"View workflows.","created":"2022-02-03T15:07:12.058412+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917aa-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_write","display_name":"Workflows Write","description":"Create, edit, and delete workflows.","created":"2022-02-03T15:07:12.061765+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a9-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_run","display_name":"Workflows Run","description":"Run workflows.","created":"2022-02-03T15:07:12.060079+00:00","group_name":"Workflows","display_type":"other","restricted":false}},{"type":"permissions","id":"f6e917a6-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_read","display_name":"Connections Read","description":"List and view available connections. Connections contain secrets that cannot be revealed.","created":"2022-02-03T15:07:12.053432+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917a7-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_write","display_name":"Connections Write","description":"Create and delete connections.","created":"2022-02-03T15:07:12.056590+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"7a89ec40-8b69-11ec-812d-da7ad0900002","attributes":{"name":"incidents_private_global_access","display_name":"Private Incidents Global Access","description":"Access all private incidents in Datadog, even when not added as a responder.","created":"2022-02-11T18:36:08.531989+00:00","group_name":"Incidents","display_type":"other","restricted":false}},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_read","display_name":"Notebooks Read","description":"View notebooks.","created":"2022-03-02T18:51:05.040950+00:00","group_name":"Notebooks","display_type":"read","restricted":true}},{"type":"permissions","id":"b6bf9ac7-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_write","display_name":"Notebooks Write","description":"Create and change notebooks.","created":"2022-03-02T18:51:05.044683+00:00","group_name":"Notebooks","display_type":"write","restricted":false}},{"type":"permissions","id":"e35c06b0-966b-11ec-83c9-da7ad0900002","attributes":{"name":"logs_delete_data","display_name":"Logs Delete Data","description":"Delete data from your Logs, including entire indexes.","created":"2022-02-25T18:51:06.176019+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2108215e-b9b4-11ec-958e-da7ad0900002","attributes":{"name":"rum_generate_metrics","display_name":"RUM Generate Metrics","description":"Create custom metrics from RUM events.","created":"2022-04-11T16:26:24.106645+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"7b1f5089-c59e-11ec-aa32-da7ad0900002","attributes":{"name":"manage_integrations","display_name":"Integrations Manage","description":"Install, uninstall, and configure integrations.","created":"2022-04-26T20:21:40.285834+00:00","group_name":"Integrations","display_type":"write","restricted":false}},{"type":"permissions","id":"1afff448-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_read","display_name":"Usage Notifications Read","description":"Receive notifications and view currently configured notification settings.","created":"2022-05-17T13:56:09.870985+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"1afff449-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_write","display_name":"Usage Notifications Write","description":"Receive notifications and configure notification settings.","created":"2022-05-17T13:56:09.876124+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"6c87d3da-e5c5-11ec-b1d6-da7ad0900002","attributes":{"name":"generate_dashboard_reports","display_name":"Dashboards Report Write","description":"Schedule custom reports from a dashboard. These reports will display any viewable data regardless of any granular restrictions (restriction queries, scoped indexes) applied to the report's creator.","created":"2022-06-06T18:21:03.378896+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_read","display_name":"SLOs Read","description":"View SLOs and status corrections.","created":"2022-06-08T16:20:55.142591+00:00","group_name":"Service Level Objectives","display_type":"read","restricted":true}},{"type":"permissions","id":"f8e941d0-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_write","display_name":"SLOs Write","description":"Create, edit, and delete SLOs.","created":"2022-06-08T16:20:55.143869+00:00","group_name":"Service Level Objectives","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941ce-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_corrections","display_name":"SLOs Status Corrections","description":"Apply, edit, and delete SLO status corrections. A user with this permission can make status corrections, even if they do not have permission to edit those SLOs.","created":"2022-06-08T16:20:55.139410+00:00","group_name":"Service Level Objectives","display_type":"other","restricted":false}},{"type":"permissions","id":"ee68fba9-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_write","display_name":"Service Catalog Write","description":"Add, modify, and delete service catalog definitions when those definitions are maintained by Datadog.","created":"2022-08-08T16:55:39.377188+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"ee68fba8-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_read","display_name":"Service Catalog Read","description":"View service catalog and service definitions.","created":"2022-08-08T16:55:39.374377+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"5b2c3e28-1761-11ed-b018-da7ad0900002","attributes":{"name":"logs_write_forwarding_rules","display_name":"Logs Write Forwarding Rules","description":"Add and edit forwarding destinations and rules for logs.","created":"2022-08-08T21:30:42.723663+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"6be119a6-1cd8-11ed-b185-da7ad0900002","attributes":{"name":"watchdog_insights_read","display_name":"Watchdog Insights Read","description":"View Watchdog Insights.","created":"2022-08-15T20:25:36.677197+00:00","group_name":"Watchdog","display_type":"read","restricted":false}},{"type":"permissions","id":"36e2a22e-248a-11ed-b405-da7ad0900002","attributes":{"name":"connections_resolve","display_name":"Connections Resolve","description":"Resolve connections.","created":"2022-08-25T15:25:56.325170+00:00","group_name":"Workflows","display_type":"read","restricted":false}}]} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"data":{"attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550"},"relationships":{},"type":"roles"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + url: https://api.datadoghq.com/api/v2/roles + method: POST + response: body: | - {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} + {"data":{"type":"roles","id":"504a44ea-6122-11ed-badd-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","created_at":"2022-11-10T18:05:52.217866+00:00","modified_at":"2022-11-10T18:05:52.338964+00:00"},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/roles/504a44ea-6122-11ed-badd-da7ad0900002 + method: GET + response: + body: | + {"data":{"type":"roles","id":"504a44ea-6122-11ed-badd-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","created_at":"2022-11-10T18:05:52.217866+00:00","modified_at":"2022-11-10T18:05:52.338964+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["504a44ea-6122-11ed-badd-da7ad0900002"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} form: {} headers: Accept: @@ -14,7 +68,24 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"bnj-5tq-jmi","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207","monitor_id":102642957,"type":"browser","created_at":"2022-11-10T14:56:48.441702+00:00","modified_at":"2022-11-10T14:56:48.441702+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"ggn-ztu-2ga","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","monitor_id":102668909,"type":"browser","created_at":"2022-11-10T18:05:52.750938+00:00","modified_at":"2022-11-10T18:05:52.750938+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504a44ea-6122-11ed-badd-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/ggn-ztu-2ga + method: GET + response: + body: | + {"status":"paused","public_id":"ggn-ztu-2ga","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","monitor_id":102668909,"type":"browser","created_at":"2022-11-10T18:05:52.750938+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.750938+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504a44ea-6122-11ed-badd-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +98,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bnj-5tq-jmi + url: https://api.datadoghq.com/api/v1/synthetics/tests/ggn-ztu-2ga method: GET response: body: | - {"status":"paused","public_id":"bnj-5tq-jmi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207","monitor_id":102642957,"type":"browser","created_at":"2022-11-10T14:56:48.441702+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.441702+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"ggn-ztu-2ga","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","monitor_id":102668909,"type":"browser","created_at":"2022-11-10T18:05:52.750938+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.750938+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504a44ea-6122-11ed-badd-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -44,11 +115,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/bnj-5tq-jmi + url: https://api.datadoghq.com/api/v2/roles/504a44ea-6122-11ed-badd-da7ad0900002 method: GET response: body: | - {"status":"paused","public_id":"bnj-5tq-jmi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207","monitor_id":102642957,"type":"browser","created_at":"2022-11-10T14:56:48.441702+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.441702+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"data":{"type":"roles","id":"504a44ea-6122-11ed-badd-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","created_at":"2022-11-10T18:05:52.217866+00:00","modified_at":"2022-11-10T18:05:52.338964+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -61,11 +132,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/bnj-5tq-jmi + url: https://api.datadoghq.com/api/v1/synthetics/tests/ggn-ztu-2ga method: GET response: body: | - {"status":"paused","public_id":"bnj-5tq-jmi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207","monitor_id":102642957,"type":"browser","created_at":"2022-11-10T14:56:48.441702+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.441702+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"ggn-ztu-2ga","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","monitor_id":102668909,"type":"browser","created_at":"2022-11-10T18:05:52.750938+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.750938+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504a44ea-6122-11ed-badd-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bnj-5tq-jmi + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/ggn-ztu-2ga method: GET response: body: | - {"status":"paused","public_id":"bnj-5tq-jmi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207","monitor_id":102642957,"type":"browser","created_at":"2022-11-10T14:56:48.441702+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.441702+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"ggn-ztu-2ga","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","monitor_id":102668909,"type":"browser","created_at":"2022-11-10T18:05:52.750938+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.750938+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504a44ea-6122-11ed-badd-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -95,11 +166,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/bnj-5tq-jmi + url: https://api.datadoghq.com/api/v2/roles/504a44ea-6122-11ed-badd-da7ad0900002 method: GET response: body: | - {"status":"paused","public_id":"bnj-5tq-jmi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207","monitor_id":102642957,"type":"browser","created_at":"2022-11-10T14:56:48.441702+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.441702+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"data":{"type":"roles","id":"504a44ea-6122-11ed-badd-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","created_at":"2022-11-10T18:05:52.217866+00:00","modified_at":"2022-11-10T18:05:52.338964+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -112,31 +183,64 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bnj-5tq-jmi + url: https://api.datadoghq.com/api/v1/synthetics/tests/ggn-ztu-2ga method: GET response: body: | - {"status":"paused","public_id":"bnj-5tq-jmi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207","monitor_id":102642957,"type":"browser","created_at":"2022-11-10T14:56:48.441702+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.441702+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"ggn-ztu-2ga","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","monitor_id":102668909,"type":"browser","created_at":"2022-11-10T18:05:52.750938+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.750938+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504a44ea-6122-11ed-badd-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json status: 200 OK code: 200 duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/ggn-ztu-2ga + method: GET + response: + body: | + {"status":"paused","public_id":"ggn-ztu-2ga","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550","monitor_id":102668909,"type":"browser","created_at":"2022-11-10T18:05:52.750938+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.750938+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504a44ea-6122-11ed-badd-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - '*/*' + url: https://api.datadoghq.com/api/v2/roles/504a44ea-6122-11ed-badd-da7ad0900002 + method: DELETE + response: + body: "" + headers: + Content-Type: + - text/html; charset=utf-8 + status: 204 No Content + code: 204 + duration: "" - request: body: | - {"config":{"assertions":[],"configVariables":[],"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":[{"example":"5970","name":"MY_PATTERN_VAR","pattern":"{{numeric(4)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-updated","options":{"ci":{"executionRule":"skipped"},"device_ids":["laptop_large","tablet"],"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"rumSettings":{"isEnabled":false},"tick_every":1800},"status":"live","steps":[{"allowFailure":false,"isCritical":false,"name":"first step updated","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"allowFailure":false,"isCritical":false,"name":"press key step","params":{"modifiers":[],"value":"1"},"timeout":0,"type":"pressKey"}],"tags":["foo:bar","buz"],"type":"browser"} + {"config":{"assertions":[],"configVariables":[],"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":[{"example":"5970","name":"MY_PATTERN_VAR","pattern":"{{numeric(4)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-updated","options":{"ci":{"executionRule":"skipped"},"device_ids":["laptop_large","tablet"],"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"rumSettings":{"isEnabled":false},"tick_every":1800},"status":"live","steps":[{"allowFailure":false,"isCritical":false,"name":"first step updated","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"allowFailure":false,"isCritical":false,"name":"press key step","params":{"modifiers":[],"value":"1"},"timeout":0,"type":"pressKey"}],"tags":["foo:bar","buz"],"type":"browser"} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bnj-5tq-jmi + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/ggn-ztu-2ga method: PUT response: body: | - {"status":"live","public_id":"bnj-5tq-jmi","tags":["foo:bar","buz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-updated","monitor_id":102642957,"type":"browser","created_at":"2022-11-10T14:56:48.441702+00:00","modified_at":"2022-11-10T14:56:51.197042+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"ggn-ztu-2ga","tags":["foo:bar","buz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-updated","monitor_id":102668909,"type":"browser","created_at":"2022-11-10T18:05:52.750938+00:00","modified_at":"2022-11-10T18:05:55.154138+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -149,11 +253,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/bnj-5tq-jmi + url: https://api.datadoghq.com/api/v1/synthetics/tests/ggn-ztu-2ga method: GET response: body: | - {"status":"live","public_id":"bnj-5tq-jmi","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-updated","monitor_id":102642957,"type":"browser","created_at":"2022-11-10T14:56:48.441702+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:51.197042+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"ggn-ztu-2ga","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-updated","monitor_id":102668909,"type":"browser","created_at":"2022-11-10T18:05:52.750938+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:55.154138+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -166,11 +270,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/bnj-5tq-jmi + url: https://api.datadoghq.com/api/v1/synthetics/tests/ggn-ztu-2ga method: GET response: body: | - {"status":"live","public_id":"bnj-5tq-jmi","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-updated","monitor_id":102642957,"type":"browser","created_at":"2022-11-10T14:56:48.441702+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:51.197042+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"ggn-ztu-2ga","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-updated","monitor_id":102668909,"type":"browser","created_at":"2022-11-10T18:05:52.750938+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:55.154138+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -183,11 +287,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bnj-5tq-jmi + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/ggn-ztu-2ga method: GET response: body: | - {"status":"live","public_id":"bnj-5tq-jmi","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668092207-updated","monitor_id":102642957,"type":"browser","created_at":"2022-11-10T14:56:48.441702+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:51.197042+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"ggn-ztu-2ga","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1668103550-updated","monitor_id":102668909,"type":"browser","created_at":"2022-11-10T18:05:52.750938+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:55.154138+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -196,7 +300,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["bnj-5tq-jmi"]} + {"public_ids":["ggn-ztu-2ga"]} form: {} headers: Accept: @@ -207,7 +311,7 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"deleted_at":"2022-11-10T14:56:53.143279+00:00","public_id":"bnj-5tq-jmi"}]} + {"deleted_tests":[{"deleted_at":"2022-11-10T18:05:56.554615+00:00","public_id":"ggn-ztu-2ga"}]} headers: Content-Type: - application/json @@ -220,7 +324,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/bnj-5tq-jmi + url: https://api.datadoghq.com/api/v1/synthetics/tests/ggn-ztu-2ga method: GET response: body: '{"errors":["Synthetics test not found"]}' diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.freeze index f747fdfba7..069852a9be 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.freeze @@ -1 +1 @@ -2022-11-10T09:56:47.041404-05:00 \ No newline at end of file +2022-11-10T13:05:50.841582-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.yaml index 137f62dcd7..5d2acb5b14 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings.yaml @@ -2,8 +2,62 @@ version: 1 interactions: - request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/permissions + method: GET + response: + body: | + {"data":[{"type":"permissions","id":"984a2bd4-d3b4-11e8-a1ff-a7f660d43029","attributes":{"name":"admin","display_name":"Privileged Access","description":"Deprecated. Privileged Access (also known as Admin permission) has been replaced by more specific permissions: Access Management, Org Management, Billing Read/Write, Usage Read/Write.","created":"2018-10-19T15:35:23.734317+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"984d2f00-d3b4-11e8-a200-bb47109e9987","attributes":{"name":"standard","display_name":"Standard Access","description":"View and edit components in your Datadog organization that do not have explicitly defined permissions. This includes configuring events, facets (except logs), and saved views.","created":"2018-10-19T15:35:23.756736+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"5e605652-dd12-11e8-9e53-375565b8970e","attributes":{"name":"logs_read_index_data","display_name":"Logs Read Index Data","description":"Read log data, possibly scoped to one or more indexes. In order to read log data, a user must have both this permission and Logs Read Data. This permission can be granted in a limited capacity per index from the Logs interface or APIs. If granted via the Roles interface or API the permission has global scope. Restrictions are limited to the Log Management product.","created":"2018-10-31T13:39:19.727450+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"62cc036c-dd12-11e8-9e54-db9995643092","attributes":{"name":"logs_modify_indexes","display_name":"Logs Modify Indexes","description":"Read and modify all indexes in your account. This includes the ability to grant the Logs Read Index Data and Logs Write Exclusion Filters permission to other roles, for some or all indexes.","created":"2018-10-31T13:39:27.148615+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"6f66600e-dd12-11e8-9e55-7f30fbb45e73","attributes":{"name":"logs_live_tail","display_name":"Logs Live Tail","description":"View the live tail feed for all log indexes, even if otherwise specifically restricted.","created":"2018-10-31T13:39:48.292879+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7d7c98ac-dd12-11e8-9e56-93700598622d","attributes":{"name":"logs_write_exclusion_filters","display_name":"Logs Write Exclusion Filters","description":"Add and change exclusion filters for all or some log indexes. Can be granted in a limited capacity per index to specific roles via the Logs interface or API. If granted from the Roles interface or API, the permission has global scope.","created":"2018-10-31T13:40:11.926613+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"811ac4ca-dd12-11e8-9e57-676a7f0beef9","attributes":{"name":"logs_write_pipelines","display_name":"Logs Write Pipelines","description":"Add and change log pipeline configurations, including the ability to grant the Logs Write Processors permission to other roles, for some or all pipelines.","created":"2018-10-31T13:40:17.996379+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"84aa3ae4-dd12-11e8-9e58-a373a514ccd0","attributes":{"name":"logs_write_processors","display_name":"Logs Write Processors","description":"Add and change some or all log processor configurations. Can be granted in a limited capacity per pipeline to specific roles via the Logs interface or API. If granted via the Roles interface or API the permission has global scope.","created":"2018-10-31T13:40:23.969725+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"87b00304-dd12-11e8-9e59-cbeb5f71f72f","attributes":{"name":"logs_write_archives","display_name":"Logs Write Archives","description":"Add and edit Log Archives.","created":"2018-10-31T13:40:29.040786+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"979df720-aed7-11e9-99c6-a7eb8373165a","attributes":{"name":"logs_generate_metrics","display_name":"Logs Generate Metrics","description":"Create custom metrics from logs.","created":"2019-07-25T12:27:39.640758+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2","attributes":{"name":"dashboards_read","display_name":"Dashboards Read","description":"View dashboards.","created":"2019-09-10T14:39:51.955175+00:00","group_name":"Dashboards","display_type":"read","restricted":true}},{"type":"permissions","id":"d90f6831-d3d8-11e9-a77a-4fd230ddbc6a","attributes":{"name":"dashboards_write","display_name":"Dashboards Write","description":"Create and change dashboards.","created":"2019-09-10T14:39:51.962944+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"d90f6832-d3d8-11e9-a77a-bf8a2607f864","attributes":{"name":"dashboards_public_share","display_name":"Dashboards Public Share","description":"Generate public and authenticated links to share dashboards externally.","created":"2019-09-10T14:39:51.967094+00:00","group_name":"Dashboards","display_type":"other","restricted":false}},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304","attributes":{"name":"monitors_read","display_name":"Monitors Read","description":"View monitors.","created":"2019-09-16T18:39:07.744297+00:00","group_name":"Monitors","display_type":"read","restricted":true}},{"type":"permissions","id":"48ef71ea-d8b1-11e9-a77a-93f408470ad0","attributes":{"name":"monitors_write","display_name":"Monitors Write","description":"Edit, mute, and delete individual monitors.","created":"2019-09-16T18:39:15.597109+00:00","group_name":"Monitors","display_type":"write","restricted":false}},{"type":"permissions","id":"4d87d5f8-d8b1-11e9-a77a-eb9c8350d04f","attributes":{"name":"monitors_downtime","display_name":"Monitors Manage Downtime","description":"Set downtimes to suppress alerts from any monitor in an organization. The ability to write monitors is not required to set downtimes.","created":"2019-09-16T18:39:23.306702+00:00","group_name":"Monitors","display_type":"other","restricted":false}},{"type":"permissions","id":"1af86ce4-7823-11ea-93dc-d7cad1b1c6cb","attributes":{"name":"logs_read_data","display_name":"Logs Read Data","description":"Read log data. In order to read log data, a user must have both this permission and Logs Read Index Data. This permission can be restricted with restriction queries. Restrictions are limited to the Log Management product.","created":"2020-04-06T16:24:35.989108+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"b382b982-8535-11ea-93de-2bf1bdf20798","attributes":{"name":"logs_read_archives","display_name":"Logs Read Archives","description":"Read Log Archives location and use it for rehydration.","created":"2020-04-23T07:40:27.966133+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7314eb20-aa58-11ea-95e2-6fb6e4a451d5","attributes":{"name":"security_monitoring_rules_read","display_name":"Security Rules Read","description":"Read Detection Rules.","created":"2020-06-09T13:52:25.279909+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"7b516476-aa58-11ea-95e2-93718cd56369","attributes":{"name":"security_monitoring_rules_write","display_name":"Security Rules Write","description":"Create and edit Detection Rules.","created":"2020-06-09T13:52:39.099413+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"80de1ec0-aa58-11ea-95e2-aff381626d5d","attributes":{"name":"security_monitoring_signals_read","display_name":"Security Signals Read","description":"View Security Signals.","created":"2020-06-09T13:52:48.410398+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"58b412cc-ff6d-11eb-bc9c-da7ad0900002","attributes":{"name":"security_monitoring_signals_write","display_name":"Security Signals Write","description":"Modify Security Signals.","created":"2021-08-17T15:11:06.963503+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"9ac1d8cc-e707-11ea-aa2d-73d37e989a9d","attributes":{"name":"user_access_invite","display_name":"User Access Invite","description":"Invite other users to your organization.","created":"2020-08-25T19:17:23.539701+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"9de604d8-e707-11ea-aa2d-93f1a783b3a3","attributes":{"name":"user_access_manage","display_name":"User Access Manage","description":"Disable users, manage user roles, manage SAML-to-role mappings, and configure logs restriction queries.","created":"2020-08-25T19:17:28.810412+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301da-ec5c-11ea-aa9f-73bedeab67ee","attributes":{"name":"user_app_keys","display_name":"User App Keys","description":"View and manage Application Keys owned by the user.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301db-ec5c-11ea-aa9f-2fe72193d60e","attributes":{"name":"org_app_keys_read","display_name":"Org App Keys Read","description":"View Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301dc-ec5c-11ea-aa9f-13b33f8f46ea","attributes":{"name":"org_app_keys_write","display_name":"Org App Keys Write","description":"Manage Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301dd-ec5c-11ea-aa9f-97edfb345bc9","attributes":{"name":"synthetics_private_location_read","display_name":"Synthetics Private Location Read","description":"View, search, and use Synthetics private locations.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301de-ec5c-11ea-aa9f-a73252c24806","attributes":{"name":"synthetics_private_location_write","display_name":"Synthetics Private Location Write","description":"Create and delete private locations in addition to having access to the associated installation guidelines.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301df-ec5c-11ea-aa9f-970a9ae645e5","attributes":{"name":"billing_read","display_name":"Billing Read","description":"View your organization's subscription and payment method but not make edits.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e0-ec5c-11ea-aa9f-6ba6cc675d8c","attributes":{"name":"billing_edit","display_name":"Billing Edit","description":"Manage your organization's subscription and payment method.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e1-ec5c-11ea-aa9f-afa39f6f3e36","attributes":{"name":"usage_read","display_name":"Usage Read","description":"View your organization's usage and usage attribution.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e2-ec5c-11ea-aa9f-1f511b7305fd","attributes":{"name":"usage_edit","display_name":"Usage Edit","description":"Manage your organization's usage attribution set-up.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e4-ec5c-11ea-aa9f-87282b3a50cc","attributes":{"name":"metric_tags_write","display_name":"Metric Tags Write","description":"Edit and save tag configurations for custom metrics.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Metrics","display_type":"write","restricted":false}},{"type":"permissions","id":"07c3c146-f7f8-11ea-acf6-0bd62b9ae60e","attributes":{"name":"logs_write_historical_view","display_name":"Logs Write Historical View","description":"Rehydrate logs from Archives.","created":"2020-09-16T08:38:44.242076+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2fbdac76-f923-11ea-adbc-07f3823e2b43","attributes":{"name":"audit_logs_read","display_name":"Audit Trail Read","description":"View Audit Trail in your organization.","created":"2020-09-17T20:20:10.834252+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"372896c4-f923-11ea-adbc-4fecd107156d","attributes":{"name":"api_keys_read","display_name":"API Keys Read","description":"List and retrieve the key values of all API Keys in your organization.","created":"2020-09-17T20:20:23.279769+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"3e4d4d28-f923-11ea-adbc-e3565938c12e","attributes":{"name":"api_keys_write","display_name":"API Keys Write","description":"Create, rename, and revoke API Keys for your organization.","created":"2020-09-17T20:20:35.264430+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"4628ca54-f923-11ea-adbc-4b2b7f88c5e9","attributes":{"name":"synthetics_global_variable_read","display_name":"Synthetics Global Variable Read","description":"View, search, and use Synthetics global variables.","created":"2020-09-17T20:20:48.446916+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"4ada6e36-f923-11ea-adbc-0788e5c5e3cf","attributes":{"name":"synthetics_global_variable_write","display_name":"Synthetics Global Variable Write","description":"Create, edit, and delete global variables for Synthetics.","created":"2020-09-17T20:20:56.322003+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5025ee24-f923-11ea-adbc-576ea241df8d","attributes":{"name":"synthetics_read","display_name":"Synthetics Read","description":"List and view configured Synthetic tests and test results.","created":"2020-09-17T20:21:05.205361+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"55f4b5ec-f923-11ea-adbc-1bfa2334a755","attributes":{"name":"synthetics_write","display_name":"Synthetics Write","description":"Create, edit, and delete Synthetic tests.","created":"2020-09-17T20:21:14.949140+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5c6b88e2-f923-11ea-adbc-abf57d079420","attributes":{"name":"synthetics_default_settings_read","display_name":"Synthetics Default Settings Read","description":"View the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:25.794160+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"642eebe6-f923-11ea-adbc-eb617674ea04","attributes":{"name":"synthetics_default_settings_write","display_name":"Synthetics Default Settings Write","description":"Edit the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:38.818771+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"6ba32d22-0e1a-11eb-ba44-bf9a5aafaa39","attributes":{"name":"logs_write_facets","display_name":"Logs Write Facets","description":"Create or edit Log Facets.","created":"2020-10-14T12:40:20.271908+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"a42e94b2-1476-11eb-bd08-efda28c04248","attributes":{"name":"service_account_write","display_name":"Service Account Write","description":"Create, disable, and use Service Accounts in your organization.","created":"2020-10-22T14:55:35.814239+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"fcac2ad8-2843-11eb-8315-0fe47949d625","attributes":{"name":"integrations_api","display_name":"Integrations API","description":"Deprecated. Use the Integrations APIs to configure integrations. In order to configure integrations from the UI, a user must also have Standard Access.","created":"2020-11-16T19:43:23.198568+00:00","group_name":"Integrations","display_type":"other","restricted":false}},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0","attributes":{"name":"apm_read","display_name":"APM Read","description":"Read and query APM and Trace Analytics.","created":"2020-11-23T20:55:45.006110+00:00","group_name":"APM","display_type":"read","restricted":true}},{"type":"permissions","id":"43fa188e-2dce-11eb-84c0-835ad1fd6287","attributes":{"name":"apm_retention_filter_read","display_name":"APM Retention Filter Read","description":"Read trace retention filters. A user with this permission can view the retention filters page, list of filters, their statistics, and creation info.","created":"2020-11-23T20:55:49.190595+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"465cfe66-2dce-11eb-84c0-6baa888239fa","attributes":{"name":"apm_retention_filter_write","display_name":"APM Retention Filter Write","description":"Create, edit, and delete trace retention filters. A user with this permission can create new retention filters, and update or delete to existing retention filters.","created":"2020-11-23T20:55:53.194236+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"4916eebe-2dce-11eb-84c0-271cb2c672e8","attributes":{"name":"apm_service_ingest_read","display_name":"APM Service Ingest Read","description":"Access service ingestion pages. A user with this permission can view the service ingestion page, list of root services, their statistics, and creation info.","created":"2020-11-23T20:55:57.768261+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"4e3f02b4-2dce-11eb-84c0-2fca946a6efc","attributes":{"name":"apm_service_ingest_write","display_name":"APM Service Ingest Write","description":"Edit service ingestion pages' root services. A user with this permission can edit the root service ingestion and generate a code snippet to increase ingestion per service.","created":"2020-11-23T20:56:06.419518+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"53950c54-2dce-11eb-84c0-a79ae108f6f8","attributes":{"name":"apm_apdex_manage_write","display_name":"APM Apdex Manage Write","description":"Set Apdex T value on any service. A user with this permission can set the T value from the Apdex graph on the service page.","created":"2020-11-23T20:56:15.371926+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"5cbe5f9c-2dce-11eb-84c0-872d3e9f1076","attributes":{"name":"apm_tag_management_write","display_name":"APM Tag Management Write","description":"Edit second primary tag selection. A user with this permission can modify the second primary tag dropdown in the APM settings page.","created":"2020-11-23T20:56:30.742299+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"61765026-2dce-11eb-84c0-833e230d1b8f","attributes":{"name":"apm_primary_operation_write","display_name":"APM Primary Operation Write","description":"Edit the operation name value selection. A user with this permission can modify the operation name list in the APM settings page and the operation name controller on the service page.","created":"2020-11-23T20:56:38.658649+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"04bc1cf2-340a-11eb-873a-43b973c760dd","attributes":{"name":"audit_logs_write","display_name":"Audit Trail Write","description":"Configure Audit Trail in your organization.","created":"2020-12-01T19:18:39.866516+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"8106300a-54f7-11eb-8cbc-7781a434a67b","attributes":{"name":"rum_apps_write","display_name":"RUM Apps Write","description":"Create, edit, and delete RUM Applications.","created":"2021-01-12T16:59:16.324480+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e74-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_write","display_name":"Dynamic Instrumentation Write Configuration","description":"Edit Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.006815+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e75-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_read","display_name":"Dynamic Instrumentation Read Configuration","description":"View Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.010517+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7c-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_read","display_name":"Data Scanner Read","description":"View Data Scanner configurations.","created":"2021-03-29T16:56:46.394971+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7d-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_write","display_name":"Data Scanner Write","description":"Edit Data Scanner configurations.","created":"2021-03-29T16:56:46.398584+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"7df222b6-a45c-11eb-a0af-da7ad0900002","attributes":{"name":"org_management","display_name":"Org Management","description":"Edit org configurations, including authentication and certain security preferences such as configuring SAML, renaming an org, configuring allowed login methods, creating child orgs, subscribing & unsubscribing from apps in the marketplace.","created":"2021-04-23T17:51:12.187340+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"98b984f4-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_read","display_name":"Security Filters Read","description":"Read Security Filters.","created":"2021-05-10T08:56:23.676833+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"98b984f5-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_write","display_name":"Security Filters Write","description":"Create, edit, and delete Security Filters.","created":"2021-05-10T08:56:23.680551+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_read","display_name":"Incident Read","description":"View incidents in Datadog.","created":"2021-06-22T15:11:09.255499+00:00","group_name":"Incidents","display_type":"read","restricted":true}},{"type":"permissions","id":"12efc211-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_write","display_name":"Incident Write","description":"Create, view, and manage incidents in Datadog.","created":"2021-06-22T15:11:09.264369+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20f-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_read","display_name":"Incidents Settings Read","description":"View Incidents settings.","created":"2021-06-22T15:11:09.259568+00:00","group_name":"Incidents","display_type":"read","restricted":false}},{"type":"permissions","id":"12efc210-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_write","display_name":"Incidents Settings Write","description":"Configure Incidents settings.","created":"2021-06-22T15:11:09.261986+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"97971c1c-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_read","display_name":"Application Security Management Event Rules Read","description":"View Application Security Management Event Rules.","created":"2021-07-19T13:31:15.595771+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"97971c1d-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_write","display_name":"Application Security Management Event Rules Write","description":"Edit Application Security Management Event Rules.","created":"2021-07-19T13:31:15.598808+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_apps_read","display_name":"RUM Apps Read","description":"View RUM Applications data.","created":"2021-08-02T09:46:07.671535+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":true}},{"type":"permissions","id":"7605ef25-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_session_replay_read","display_name":"RUM Session Replay Read","description":"View Session Replays.","created":"2021-08-02T09:46:07.674640+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b8-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_read","display_name":"Security Notification Rules Read","description":"Read Notification Rules.","created":"2021-09-16T08:26:27.366789+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b9-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_write","display_name":"Security Notification Rules Write","description":"Create, edit, and delete Notification Rules.","created":"2021-09-16T08:26:27.369359+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"26c79920-1703-11ec-85d2-da7ad0900002","attributes":{"name":"apm_generate_metrics","display_name":"APM Generate Metrics","description":"Create custom metrics from spans.","created":"2021-09-16T15:31:24.458963+00:00","group_name":"APM","display_type":"other","restricted":false}},{"type":"permissions","id":"020a563c-56a4-11ec-a982-da7ad0900002","attributes":{"name":"apm_pipelines_write","display_name":"APM Pipelines Write","description":"Add and change APM pipeline configurations.","created":"2021-12-06T14:51:35.049129+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"8e4d6b6e-5750-11ec-a9f4-da7ad0900002","attributes":{"name":"apm_pipelines_read","display_name":"APM Pipelines Read","description":"View APM pipeline configurations.","created":"2021-12-07T11:26:43.807269+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb4-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_read","display_name":"Pipeline Configurations Read","description":"View pipeline configurations.","created":"2021-12-09T00:11:38.956827+00:00","group_name":"Observability Pipelines","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb5-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_write","display_name":"Pipeline Configurations Write","description":"Create, edit, and delete pipeline configurations.","created":"2021-12-09T00:11:38.960833+00:00","group_name":"Observability Pipelines","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a8-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_read","display_name":"Workflows Read","description":"View workflows.","created":"2022-02-03T15:07:12.058412+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917aa-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_write","display_name":"Workflows Write","description":"Create, edit, and delete workflows.","created":"2022-02-03T15:07:12.061765+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a9-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_run","display_name":"Workflows Run","description":"Run workflows.","created":"2022-02-03T15:07:12.060079+00:00","group_name":"Workflows","display_type":"other","restricted":false}},{"type":"permissions","id":"f6e917a6-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_read","display_name":"Connections Read","description":"List and view available connections. Connections contain secrets that cannot be revealed.","created":"2022-02-03T15:07:12.053432+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917a7-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_write","display_name":"Connections Write","description":"Create and delete connections.","created":"2022-02-03T15:07:12.056590+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"7a89ec40-8b69-11ec-812d-da7ad0900002","attributes":{"name":"incidents_private_global_access","display_name":"Private Incidents Global Access","description":"Access all private incidents in Datadog, even when not added as a responder.","created":"2022-02-11T18:36:08.531989+00:00","group_name":"Incidents","display_type":"other","restricted":false}},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_read","display_name":"Notebooks Read","description":"View notebooks.","created":"2022-03-02T18:51:05.040950+00:00","group_name":"Notebooks","display_type":"read","restricted":true}},{"type":"permissions","id":"b6bf9ac7-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_write","display_name":"Notebooks Write","description":"Create and change notebooks.","created":"2022-03-02T18:51:05.044683+00:00","group_name":"Notebooks","display_type":"write","restricted":false}},{"type":"permissions","id":"e35c06b0-966b-11ec-83c9-da7ad0900002","attributes":{"name":"logs_delete_data","display_name":"Logs Delete Data","description":"Delete data from your Logs, including entire indexes.","created":"2022-02-25T18:51:06.176019+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2108215e-b9b4-11ec-958e-da7ad0900002","attributes":{"name":"rum_generate_metrics","display_name":"RUM Generate Metrics","description":"Create custom metrics from RUM events.","created":"2022-04-11T16:26:24.106645+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"7b1f5089-c59e-11ec-aa32-da7ad0900002","attributes":{"name":"manage_integrations","display_name":"Integrations Manage","description":"Install, uninstall, and configure integrations.","created":"2022-04-26T20:21:40.285834+00:00","group_name":"Integrations","display_type":"write","restricted":false}},{"type":"permissions","id":"1afff448-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_read","display_name":"Usage Notifications Read","description":"Receive notifications and view currently configured notification settings.","created":"2022-05-17T13:56:09.870985+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"1afff449-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_write","display_name":"Usage Notifications Write","description":"Receive notifications and configure notification settings.","created":"2022-05-17T13:56:09.876124+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"6c87d3da-e5c5-11ec-b1d6-da7ad0900002","attributes":{"name":"generate_dashboard_reports","display_name":"Dashboards Report Write","description":"Schedule custom reports from a dashboard. These reports will display any viewable data regardless of any granular restrictions (restriction queries, scoped indexes) applied to the report's creator.","created":"2022-06-06T18:21:03.378896+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_read","display_name":"SLOs Read","description":"View SLOs and status corrections.","created":"2022-06-08T16:20:55.142591+00:00","group_name":"Service Level Objectives","display_type":"read","restricted":true}},{"type":"permissions","id":"f8e941d0-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_write","display_name":"SLOs Write","description":"Create, edit, and delete SLOs.","created":"2022-06-08T16:20:55.143869+00:00","group_name":"Service Level Objectives","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941ce-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_corrections","display_name":"SLOs Status Corrections","description":"Apply, edit, and delete SLO status corrections. A user with this permission can make status corrections, even if they do not have permission to edit those SLOs.","created":"2022-06-08T16:20:55.139410+00:00","group_name":"Service Level Objectives","display_type":"other","restricted":false}},{"type":"permissions","id":"ee68fba9-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_write","display_name":"Service Catalog Write","description":"Add, modify, and delete service catalog definitions when those definitions are maintained by Datadog.","created":"2022-08-08T16:55:39.377188+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"ee68fba8-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_read","display_name":"Service Catalog Read","description":"View service catalog and service definitions.","created":"2022-08-08T16:55:39.374377+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"5b2c3e28-1761-11ed-b018-da7ad0900002","attributes":{"name":"logs_write_forwarding_rules","display_name":"Logs Write Forwarding Rules","description":"Add and edit forwarding destinations and rules for logs.","created":"2022-08-08T21:30:42.723663+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"6be119a6-1cd8-11ed-b185-da7ad0900002","attributes":{"name":"watchdog_insights_read","display_name":"Watchdog Insights Read","description":"View Watchdog Insights.","created":"2022-08-15T20:25:36.677197+00:00","group_name":"Watchdog","display_type":"read","restricted":false}},{"type":"permissions","id":"36e2a22e-248a-11ed-b405-da7ad0900002","attributes":{"name":"connections_resolve","display_name":"Connections Resolve","description":"Resolve connections.","created":"2022-08-25T15:25:56.325170+00:00","group_name":"Workflows","display_type":"read","restricted":false}}]} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"data":{"attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550"},"relationships":{},"type":"roles"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + url: https://api.datadoghq.com/api/v2/roles + method: POST + response: body: | - {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} + {"data":{"type":"roles","id":"504d2926-6122-11ed-ad75-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","created_at":"2022-11-10T18:05:52.236344+00:00","modified_at":"2022-11-10T18:05:52.353456+00:00"},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/roles/504d2926-6122-11ed-ad75-da7ad0900002 + method: GET + response: + body: | + {"data":{"type":"roles","id":"504d2926-6122-11ed-ad75-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","created_at":"2022-11-10T18:05:52.236344+00:00","modified_at":"2022-11-10T18:05:52.353456+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["504d2926-6122-11ed-ad75-da7ad0900002"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} form: {} headers: Accept: @@ -14,7 +68,24 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"ja5-qfx-tf4","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207","monitor_id":102642958,"type":"browser","created_at":"2022-11-10T14:56:48.483311+00:00","modified_at":"2022-11-10T14:56:48.483311+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"2as-z7j-xq3","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","monitor_id":102668910,"type":"browser","created_at":"2022-11-10T18:05:52.782379+00:00","modified_at":"2022-11-10T18:05:52.782379+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504d2926-6122-11ed-ad75-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/2as-z7j-xq3 + method: GET + response: + body: | + {"status":"paused","public_id":"2as-z7j-xq3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","monitor_id":102668910,"type":"browser","created_at":"2022-11-10T18:05:52.782379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.782379+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504d2926-6122-11ed-ad75-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +98,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/ja5-qfx-tf4 + url: https://api.datadoghq.com/api/v1/synthetics/tests/2as-z7j-xq3 method: GET response: body: | - {"status":"paused","public_id":"ja5-qfx-tf4","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207","monitor_id":102642958,"type":"browser","created_at":"2022-11-10T14:56:48.483311+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.483311+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"2as-z7j-xq3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","monitor_id":102668910,"type":"browser","created_at":"2022-11-10T18:05:52.782379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.782379+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504d2926-6122-11ed-ad75-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -44,11 +115,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/ja5-qfx-tf4 + url: https://api.datadoghq.com/api/v2/roles/504d2926-6122-11ed-ad75-da7ad0900002 method: GET response: body: | - {"status":"paused","public_id":"ja5-qfx-tf4","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207","monitor_id":102642958,"type":"browser","created_at":"2022-11-10T14:56:48.483311+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.483311+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"data":{"type":"roles","id":"504d2926-6122-11ed-ad75-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","created_at":"2022-11-10T18:05:52.236344+00:00","modified_at":"2022-11-10T18:05:52.353456+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -61,11 +132,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/ja5-qfx-tf4 + url: https://api.datadoghq.com/api/v1/synthetics/tests/2as-z7j-xq3 method: GET response: body: | - {"status":"paused","public_id":"ja5-qfx-tf4","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207","monitor_id":102642958,"type":"browser","created_at":"2022-11-10T14:56:48.483311+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.483311+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"2as-z7j-xq3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","monitor_id":102668910,"type":"browser","created_at":"2022-11-10T18:05:52.782379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.782379+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504d2926-6122-11ed-ad75-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/ja5-qfx-tf4 + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/2as-z7j-xq3 method: GET response: body: | - {"status":"paused","public_id":"ja5-qfx-tf4","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207","monitor_id":102642958,"type":"browser","created_at":"2022-11-10T14:56:48.483311+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.483311+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"2as-z7j-xq3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","monitor_id":102668910,"type":"browser","created_at":"2022-11-10T18:05:52.782379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.782379+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504d2926-6122-11ed-ad75-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -95,11 +166,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/ja5-qfx-tf4 + url: https://api.datadoghq.com/api/v2/roles/504d2926-6122-11ed-ad75-da7ad0900002 method: GET response: body: | - {"status":"paused","public_id":"ja5-qfx-tf4","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207","monitor_id":102642958,"type":"browser","created_at":"2022-11-10T14:56:48.483311+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.483311+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"data":{"type":"roles","id":"504d2926-6122-11ed-ad75-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","created_at":"2022-11-10T18:05:52.236344+00:00","modified_at":"2022-11-10T18:05:52.353456+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -112,31 +183,64 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/ja5-qfx-tf4 + url: https://api.datadoghq.com/api/v1/synthetics/tests/2as-z7j-xq3 method: GET response: body: | - {"status":"paused","public_id":"ja5-qfx-tf4","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207","monitor_id":102642958,"type":"browser","created_at":"2022-11-10T14:56:48.483311+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:48.483311+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"2as-z7j-xq3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","monitor_id":102668910,"type":"browser","created_at":"2022-11-10T18:05:52.782379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.782379+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504d2926-6122-11ed-ad75-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json status: 200 OK code: 200 duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/2as-z7j-xq3 + method: GET + response: + body: | + {"status":"paused","public_id":"2as-z7j-xq3","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550","monitor_id":102668910,"type":"browser","created_at":"2022-11-10T18:05:52.782379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:52.782379+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["504d2926-6122-11ed-ad75-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-monitor","tick_every":900,"ignoreServerCertificateError":true}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - '*/*' + url: https://api.datadoghq.com/api/v2/roles/504d2926-6122-11ed-ad75-da7ad0900002 + method: DELETE + response: + body: "" + headers: + Content-Type: + - text/html; charset=utf-8 + status: 204 No Content + code: 204 + duration: "" - request: body: | - {"config":{"assertions":[],"configVariables":[],"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":[{"example":"5970","name":"MY_PATTERN_VAR","pattern":"{{numeric(4)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-updated-rumsettings","options":{"ci":{"executionRule":"skipped"},"device_ids":["laptop_large","tablet"],"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"rumSettings":{"isEnabled":false},"tick_every":1800},"status":"live","steps":[{"allowFailure":false,"isCritical":false,"name":"first step updated","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"allowFailure":false,"isCritical":false,"name":"press key step","params":{"modifiers":[],"value":"1"},"timeout":0,"type":"pressKey"}],"tags":["foo:bar","buz"],"type":"browser"} + {"config":{"assertions":[],"configVariables":[],"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":[{"example":"5970","name":"MY_PATTERN_VAR","pattern":"{{numeric(4)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-updated-rumsettings","options":{"ci":{"executionRule":"skipped"},"device_ids":["laptop_large","tablet"],"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"rumSettings":{"isEnabled":false},"tick_every":1800},"status":"live","steps":[{"allowFailure":false,"isCritical":false,"name":"first step updated","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"allowFailure":false,"isCritical":false,"name":"press key step","params":{"modifiers":[],"value":"1"},"timeout":0,"type":"pressKey"}],"tags":["foo:bar","buz"],"type":"browser"} form: {} headers: Accept: - application/json Content-Type: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/ja5-qfx-tf4 + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/2as-z7j-xq3 method: PUT response: body: | - {"status":"live","public_id":"ja5-qfx-tf4","tags":["foo:bar","buz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-updated-rumsettings","monitor_id":102642958,"type":"browser","created_at":"2022-11-10T14:56:48.483311+00:00","modified_at":"2022-11-10T14:56:51.174464+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"2as-z7j-xq3","tags":["foo:bar","buz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-updated-rumsettings","monitor_id":102668910,"type":"browser","created_at":"2022-11-10T18:05:52.782379+00:00","modified_at":"2022-11-10T18:05:55.107202+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"notify_audit":false,"include_tags":true,"new_host_delay":300,"on_missing_data":"show_no_data","renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -149,11 +253,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/ja5-qfx-tf4 + url: https://api.datadoghq.com/api/v1/synthetics/tests/2as-z7j-xq3 method: GET response: body: | - {"status":"live","public_id":"ja5-qfx-tf4","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-updated-rumsettings","monitor_id":102642958,"type":"browser","created_at":"2022-11-10T14:56:48.483311+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:51.174464+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"2as-z7j-xq3","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-updated-rumsettings","monitor_id":102668910,"type":"browser","created_at":"2022-11-10T18:05:52.782379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:55.107202+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -166,11 +270,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/ja5-qfx-tf4 + url: https://api.datadoghq.com/api/v1/synthetics/tests/2as-z7j-xq3 method: GET response: body: | - {"status":"live","public_id":"ja5-qfx-tf4","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-updated-rumsettings","monitor_id":102642958,"type":"browser","created_at":"2022-11-10T14:56:48.483311+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:51.174464+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"2as-z7j-xq3","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-updated-rumsettings","monitor_id":102668910,"type":"browser","created_at":"2022-11-10T18:05:52.782379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:55.107202+00:00","config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -183,11 +287,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/ja5-qfx-tf4 + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/2as-z7j-xq3 method: GET response: body: | - {"status":"live","public_id":"ja5-qfx-tf4","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668092207-updated-rumsettings","monitor_id":102642958,"type":"browser","created_at":"2022-11-10T14:56:48.483311+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:56:51.174464+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} + {"status":"live","public_id":"2as-z7j-xq3","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1668103550-updated-rumsettings","monitor_id":102668910,"type":"browser","created_at":"2022-11-10T18:05:52.782379+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:55.107202+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":false,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"isCritical":false,"type":"pressKey"}],"config":{"variables":[{"pattern":"{{numeric(4)}}","type":"text","example":"5970","name":"MY_PATTERN_VAR"}],"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":[],"configVariables":[]},"options":{"ci":{"executionRule":"skipped"},"retry":{"count":3,"interval":500},"min_location_failed":1,"monitor_options":{"renotify_interval":120},"min_failure_duration":10,"rumSettings":{"isEnabled":false},"device_ids":["laptop_large","tablet"],"tick_every":1800}} headers: Content-Type: - application/json @@ -196,7 +300,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["ja5-qfx-tf4"]} + {"public_ids":["2as-z7j-xq3"]} form: {} headers: Accept: @@ -207,7 +311,7 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"deleted_at":"2022-11-10T14:56:53.992430+00:00","public_id":"ja5-qfx-tf4"}]} + {"deleted_tests":[{"deleted_at":"2022-11-10T18:05:56.973504+00:00","public_id":"2as-z7j-xq3"}]} headers: Content-Type: - application/json @@ -220,7 +324,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/ja5-qfx-tf4 + url: https://api.datadoghq.com/api/v1/synthetics/tests/2as-z7j-xq3 method: GET response: body: '{"errors":["Synthetics test not found"]}' diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.freeze index 4825b3a9a9..95d8a49e5b 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.freeze @@ -1 +1 @@ -2022-11-10T09:55:30.89036-05:00 \ No newline at end of file +2022-11-10T13:07:01.055749-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml index cf507afaae..ea5b7c35c5 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml @@ -1,9 +1,63 @@ --- version: 1 interactions: +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/permissions + method: GET + response: + body: | + {"data":[{"type":"permissions","id":"984a2bd4-d3b4-11e8-a1ff-a7f660d43029","attributes":{"name":"admin","display_name":"Privileged Access","description":"Deprecated. Privileged Access (also known as Admin permission) has been replaced by more specific permissions: Access Management, Org Management, Billing Read/Write, Usage Read/Write.","created":"2018-10-19T15:35:23.734317+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"984d2f00-d3b4-11e8-a200-bb47109e9987","attributes":{"name":"standard","display_name":"Standard Access","description":"View and edit components in your Datadog organization that do not have explicitly defined permissions. This includes configuring events, facets (except logs), and saved views.","created":"2018-10-19T15:35:23.756736+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"5e605652-dd12-11e8-9e53-375565b8970e","attributes":{"name":"logs_read_index_data","display_name":"Logs Read Index Data","description":"Read log data, possibly scoped to one or more indexes. In order to read log data, a user must have both this permission and Logs Read Data. This permission can be granted in a limited capacity per index from the Logs interface or APIs. If granted via the Roles interface or API the permission has global scope. Restrictions are limited to the Log Management product.","created":"2018-10-31T13:39:19.727450+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"62cc036c-dd12-11e8-9e54-db9995643092","attributes":{"name":"logs_modify_indexes","display_name":"Logs Modify Indexes","description":"Read and modify all indexes in your account. This includes the ability to grant the Logs Read Index Data and Logs Write Exclusion Filters permission to other roles, for some or all indexes.","created":"2018-10-31T13:39:27.148615+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"6f66600e-dd12-11e8-9e55-7f30fbb45e73","attributes":{"name":"logs_live_tail","display_name":"Logs Live Tail","description":"View the live tail feed for all log indexes, even if otherwise specifically restricted.","created":"2018-10-31T13:39:48.292879+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7d7c98ac-dd12-11e8-9e56-93700598622d","attributes":{"name":"logs_write_exclusion_filters","display_name":"Logs Write Exclusion Filters","description":"Add and change exclusion filters for all or some log indexes. Can be granted in a limited capacity per index to specific roles via the Logs interface or API. If granted from the Roles interface or API, the permission has global scope.","created":"2018-10-31T13:40:11.926613+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"811ac4ca-dd12-11e8-9e57-676a7f0beef9","attributes":{"name":"logs_write_pipelines","display_name":"Logs Write Pipelines","description":"Add and change log pipeline configurations, including the ability to grant the Logs Write Processors permission to other roles, for some or all pipelines.","created":"2018-10-31T13:40:17.996379+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"84aa3ae4-dd12-11e8-9e58-a373a514ccd0","attributes":{"name":"logs_write_processors","display_name":"Logs Write Processors","description":"Add and change some or all log processor configurations. Can be granted in a limited capacity per pipeline to specific roles via the Logs interface or API. If granted via the Roles interface or API the permission has global scope.","created":"2018-10-31T13:40:23.969725+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"87b00304-dd12-11e8-9e59-cbeb5f71f72f","attributes":{"name":"logs_write_archives","display_name":"Logs Write Archives","description":"Add and edit Log Archives.","created":"2018-10-31T13:40:29.040786+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"979df720-aed7-11e9-99c6-a7eb8373165a","attributes":{"name":"logs_generate_metrics","display_name":"Logs Generate Metrics","description":"Create custom metrics from logs.","created":"2019-07-25T12:27:39.640758+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2","attributes":{"name":"dashboards_read","display_name":"Dashboards Read","description":"View dashboards.","created":"2019-09-10T14:39:51.955175+00:00","group_name":"Dashboards","display_type":"read","restricted":true}},{"type":"permissions","id":"d90f6831-d3d8-11e9-a77a-4fd230ddbc6a","attributes":{"name":"dashboards_write","display_name":"Dashboards Write","description":"Create and change dashboards.","created":"2019-09-10T14:39:51.962944+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"d90f6832-d3d8-11e9-a77a-bf8a2607f864","attributes":{"name":"dashboards_public_share","display_name":"Dashboards Public Share","description":"Generate public and authenticated links to share dashboards externally.","created":"2019-09-10T14:39:51.967094+00:00","group_name":"Dashboards","display_type":"other","restricted":false}},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304","attributes":{"name":"monitors_read","display_name":"Monitors Read","description":"View monitors.","created":"2019-09-16T18:39:07.744297+00:00","group_name":"Monitors","display_type":"read","restricted":true}},{"type":"permissions","id":"48ef71ea-d8b1-11e9-a77a-93f408470ad0","attributes":{"name":"monitors_write","display_name":"Monitors Write","description":"Edit, mute, and delete individual monitors.","created":"2019-09-16T18:39:15.597109+00:00","group_name":"Monitors","display_type":"write","restricted":false}},{"type":"permissions","id":"4d87d5f8-d8b1-11e9-a77a-eb9c8350d04f","attributes":{"name":"monitors_downtime","display_name":"Monitors Manage Downtime","description":"Set downtimes to suppress alerts from any monitor in an organization. The ability to write monitors is not required to set downtimes.","created":"2019-09-16T18:39:23.306702+00:00","group_name":"Monitors","display_type":"other","restricted":false}},{"type":"permissions","id":"1af86ce4-7823-11ea-93dc-d7cad1b1c6cb","attributes":{"name":"logs_read_data","display_name":"Logs Read Data","description":"Read log data. In order to read log data, a user must have both this permission and Logs Read Index Data. This permission can be restricted with restriction queries. Restrictions are limited to the Log Management product.","created":"2020-04-06T16:24:35.989108+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"b382b982-8535-11ea-93de-2bf1bdf20798","attributes":{"name":"logs_read_archives","display_name":"Logs Read Archives","description":"Read Log Archives location and use it for rehydration.","created":"2020-04-23T07:40:27.966133+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7314eb20-aa58-11ea-95e2-6fb6e4a451d5","attributes":{"name":"security_monitoring_rules_read","display_name":"Security Rules Read","description":"Read Detection Rules.","created":"2020-06-09T13:52:25.279909+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"7b516476-aa58-11ea-95e2-93718cd56369","attributes":{"name":"security_monitoring_rules_write","display_name":"Security Rules Write","description":"Create and edit Detection Rules.","created":"2020-06-09T13:52:39.099413+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"80de1ec0-aa58-11ea-95e2-aff381626d5d","attributes":{"name":"security_monitoring_signals_read","display_name":"Security Signals Read","description":"View Security Signals.","created":"2020-06-09T13:52:48.410398+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"58b412cc-ff6d-11eb-bc9c-da7ad0900002","attributes":{"name":"security_monitoring_signals_write","display_name":"Security Signals Write","description":"Modify Security Signals.","created":"2021-08-17T15:11:06.963503+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"9ac1d8cc-e707-11ea-aa2d-73d37e989a9d","attributes":{"name":"user_access_invite","display_name":"User Access Invite","description":"Invite other users to your organization.","created":"2020-08-25T19:17:23.539701+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"9de604d8-e707-11ea-aa2d-93f1a783b3a3","attributes":{"name":"user_access_manage","display_name":"User Access Manage","description":"Disable users, manage user roles, manage SAML-to-role mappings, and configure logs restriction queries.","created":"2020-08-25T19:17:28.810412+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301da-ec5c-11ea-aa9f-73bedeab67ee","attributes":{"name":"user_app_keys","display_name":"User App Keys","description":"View and manage Application Keys owned by the user.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301db-ec5c-11ea-aa9f-2fe72193d60e","attributes":{"name":"org_app_keys_read","display_name":"Org App Keys Read","description":"View Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301dc-ec5c-11ea-aa9f-13b33f8f46ea","attributes":{"name":"org_app_keys_write","display_name":"Org App Keys Write","description":"Manage Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301dd-ec5c-11ea-aa9f-97edfb345bc9","attributes":{"name":"synthetics_private_location_read","display_name":"Synthetics Private Location Read","description":"View, search, and use Synthetics private locations.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301de-ec5c-11ea-aa9f-a73252c24806","attributes":{"name":"synthetics_private_location_write","display_name":"Synthetics Private Location Write","description":"Create and delete private locations in addition to having access to the associated installation guidelines.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301df-ec5c-11ea-aa9f-970a9ae645e5","attributes":{"name":"billing_read","display_name":"Billing Read","description":"View your organization's subscription and payment method but not make edits.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e0-ec5c-11ea-aa9f-6ba6cc675d8c","attributes":{"name":"billing_edit","display_name":"Billing Edit","description":"Manage your organization's subscription and payment method.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e1-ec5c-11ea-aa9f-afa39f6f3e36","attributes":{"name":"usage_read","display_name":"Usage Read","description":"View your organization's usage and usage attribution.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e2-ec5c-11ea-aa9f-1f511b7305fd","attributes":{"name":"usage_edit","display_name":"Usage Edit","description":"Manage your organization's usage attribution set-up.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e4-ec5c-11ea-aa9f-87282b3a50cc","attributes":{"name":"metric_tags_write","display_name":"Metric Tags Write","description":"Edit and save tag configurations for custom metrics.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Metrics","display_type":"write","restricted":false}},{"type":"permissions","id":"07c3c146-f7f8-11ea-acf6-0bd62b9ae60e","attributes":{"name":"logs_write_historical_view","display_name":"Logs Write Historical View","description":"Rehydrate logs from Archives.","created":"2020-09-16T08:38:44.242076+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2fbdac76-f923-11ea-adbc-07f3823e2b43","attributes":{"name":"audit_logs_read","display_name":"Audit Trail Read","description":"View Audit Trail in your organization.","created":"2020-09-17T20:20:10.834252+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"372896c4-f923-11ea-adbc-4fecd107156d","attributes":{"name":"api_keys_read","display_name":"API Keys Read","description":"List and retrieve the key values of all API Keys in your organization.","created":"2020-09-17T20:20:23.279769+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"3e4d4d28-f923-11ea-adbc-e3565938c12e","attributes":{"name":"api_keys_write","display_name":"API Keys Write","description":"Create, rename, and revoke API Keys for your organization.","created":"2020-09-17T20:20:35.264430+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"4628ca54-f923-11ea-adbc-4b2b7f88c5e9","attributes":{"name":"synthetics_global_variable_read","display_name":"Synthetics Global Variable Read","description":"View, search, and use Synthetics global variables.","created":"2020-09-17T20:20:48.446916+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"4ada6e36-f923-11ea-adbc-0788e5c5e3cf","attributes":{"name":"synthetics_global_variable_write","display_name":"Synthetics Global Variable Write","description":"Create, edit, and delete global variables for Synthetics.","created":"2020-09-17T20:20:56.322003+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5025ee24-f923-11ea-adbc-576ea241df8d","attributes":{"name":"synthetics_read","display_name":"Synthetics Read","description":"List and view configured Synthetic tests and test results.","created":"2020-09-17T20:21:05.205361+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"55f4b5ec-f923-11ea-adbc-1bfa2334a755","attributes":{"name":"synthetics_write","display_name":"Synthetics Write","description":"Create, edit, and delete Synthetic tests.","created":"2020-09-17T20:21:14.949140+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5c6b88e2-f923-11ea-adbc-abf57d079420","attributes":{"name":"synthetics_default_settings_read","display_name":"Synthetics Default Settings Read","description":"View the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:25.794160+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"642eebe6-f923-11ea-adbc-eb617674ea04","attributes":{"name":"synthetics_default_settings_write","display_name":"Synthetics Default Settings Write","description":"Edit the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:38.818771+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"6ba32d22-0e1a-11eb-ba44-bf9a5aafaa39","attributes":{"name":"logs_write_facets","display_name":"Logs Write Facets","description":"Create or edit Log Facets.","created":"2020-10-14T12:40:20.271908+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"a42e94b2-1476-11eb-bd08-efda28c04248","attributes":{"name":"service_account_write","display_name":"Service Account Write","description":"Create, disable, and use Service Accounts in your organization.","created":"2020-10-22T14:55:35.814239+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"fcac2ad8-2843-11eb-8315-0fe47949d625","attributes":{"name":"integrations_api","display_name":"Integrations API","description":"Deprecated. Use the Integrations APIs to configure integrations. In order to configure integrations from the UI, a user must also have Standard Access.","created":"2020-11-16T19:43:23.198568+00:00","group_name":"Integrations","display_type":"other","restricted":false}},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0","attributes":{"name":"apm_read","display_name":"APM Read","description":"Read and query APM and Trace Analytics.","created":"2020-11-23T20:55:45.006110+00:00","group_name":"APM","display_type":"read","restricted":true}},{"type":"permissions","id":"43fa188e-2dce-11eb-84c0-835ad1fd6287","attributes":{"name":"apm_retention_filter_read","display_name":"APM Retention Filter Read","description":"Read trace retention filters. A user with this permission can view the retention filters page, list of filters, their statistics, and creation info.","created":"2020-11-23T20:55:49.190595+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"465cfe66-2dce-11eb-84c0-6baa888239fa","attributes":{"name":"apm_retention_filter_write","display_name":"APM Retention Filter Write","description":"Create, edit, and delete trace retention filters. A user with this permission can create new retention filters, and update or delete to existing retention filters.","created":"2020-11-23T20:55:53.194236+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"4916eebe-2dce-11eb-84c0-271cb2c672e8","attributes":{"name":"apm_service_ingest_read","display_name":"APM Service Ingest Read","description":"Access service ingestion pages. A user with this permission can view the service ingestion page, list of root services, their statistics, and creation info.","created":"2020-11-23T20:55:57.768261+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"4e3f02b4-2dce-11eb-84c0-2fca946a6efc","attributes":{"name":"apm_service_ingest_write","display_name":"APM Service Ingest Write","description":"Edit service ingestion pages' root services. A user with this permission can edit the root service ingestion and generate a code snippet to increase ingestion per service.","created":"2020-11-23T20:56:06.419518+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"53950c54-2dce-11eb-84c0-a79ae108f6f8","attributes":{"name":"apm_apdex_manage_write","display_name":"APM Apdex Manage Write","description":"Set Apdex T value on any service. A user with this permission can set the T value from the Apdex graph on the service page.","created":"2020-11-23T20:56:15.371926+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"5cbe5f9c-2dce-11eb-84c0-872d3e9f1076","attributes":{"name":"apm_tag_management_write","display_name":"APM Tag Management Write","description":"Edit second primary tag selection. A user with this permission can modify the second primary tag dropdown in the APM settings page.","created":"2020-11-23T20:56:30.742299+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"61765026-2dce-11eb-84c0-833e230d1b8f","attributes":{"name":"apm_primary_operation_write","display_name":"APM Primary Operation Write","description":"Edit the operation name value selection. A user with this permission can modify the operation name list in the APM settings page and the operation name controller on the service page.","created":"2020-11-23T20:56:38.658649+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"04bc1cf2-340a-11eb-873a-43b973c760dd","attributes":{"name":"audit_logs_write","display_name":"Audit Trail Write","description":"Configure Audit Trail in your organization.","created":"2020-12-01T19:18:39.866516+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"8106300a-54f7-11eb-8cbc-7781a434a67b","attributes":{"name":"rum_apps_write","display_name":"RUM Apps Write","description":"Create, edit, and delete RUM Applications.","created":"2021-01-12T16:59:16.324480+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e74-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_write","display_name":"Dynamic Instrumentation Write Configuration","description":"Edit Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.006815+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e75-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_read","display_name":"Dynamic Instrumentation Read Configuration","description":"View Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.010517+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7c-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_read","display_name":"Data Scanner Read","description":"View Data Scanner configurations.","created":"2021-03-29T16:56:46.394971+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7d-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_write","display_name":"Data Scanner Write","description":"Edit Data Scanner configurations.","created":"2021-03-29T16:56:46.398584+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"7df222b6-a45c-11eb-a0af-da7ad0900002","attributes":{"name":"org_management","display_name":"Org Management","description":"Edit org configurations, including authentication and certain security preferences such as configuring SAML, renaming an org, configuring allowed login methods, creating child orgs, subscribing & unsubscribing from apps in the marketplace.","created":"2021-04-23T17:51:12.187340+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"98b984f4-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_read","display_name":"Security Filters Read","description":"Read Security Filters.","created":"2021-05-10T08:56:23.676833+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"98b984f5-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_write","display_name":"Security Filters Write","description":"Create, edit, and delete Security Filters.","created":"2021-05-10T08:56:23.680551+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_read","display_name":"Incident Read","description":"View incidents in Datadog.","created":"2021-06-22T15:11:09.255499+00:00","group_name":"Incidents","display_type":"read","restricted":true}},{"type":"permissions","id":"12efc211-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_write","display_name":"Incident Write","description":"Create, view, and manage incidents in Datadog.","created":"2021-06-22T15:11:09.264369+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20f-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_read","display_name":"Incidents Settings Read","description":"View Incidents settings.","created":"2021-06-22T15:11:09.259568+00:00","group_name":"Incidents","display_type":"read","restricted":false}},{"type":"permissions","id":"12efc210-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_write","display_name":"Incidents Settings Write","description":"Configure Incidents settings.","created":"2021-06-22T15:11:09.261986+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"97971c1c-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_read","display_name":"Application Security Management Event Rules Read","description":"View Application Security Management Event Rules.","created":"2021-07-19T13:31:15.595771+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"97971c1d-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_write","display_name":"Application Security Management Event Rules Write","description":"Edit Application Security Management Event Rules.","created":"2021-07-19T13:31:15.598808+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_apps_read","display_name":"RUM Apps Read","description":"View RUM Applications data.","created":"2021-08-02T09:46:07.671535+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":true}},{"type":"permissions","id":"7605ef25-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_session_replay_read","display_name":"RUM Session Replay Read","description":"View Session Replays.","created":"2021-08-02T09:46:07.674640+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b8-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_read","display_name":"Security Notification Rules Read","description":"Read Notification Rules.","created":"2021-09-16T08:26:27.366789+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b9-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_write","display_name":"Security Notification Rules Write","description":"Create, edit, and delete Notification Rules.","created":"2021-09-16T08:26:27.369359+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"26c79920-1703-11ec-85d2-da7ad0900002","attributes":{"name":"apm_generate_metrics","display_name":"APM Generate Metrics","description":"Create custom metrics from spans.","created":"2021-09-16T15:31:24.458963+00:00","group_name":"APM","display_type":"other","restricted":false}},{"type":"permissions","id":"020a563c-56a4-11ec-a982-da7ad0900002","attributes":{"name":"apm_pipelines_write","display_name":"APM Pipelines Write","description":"Add and change APM pipeline configurations.","created":"2021-12-06T14:51:35.049129+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"8e4d6b6e-5750-11ec-a9f4-da7ad0900002","attributes":{"name":"apm_pipelines_read","display_name":"APM Pipelines Read","description":"View APM pipeline configurations.","created":"2021-12-07T11:26:43.807269+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb4-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_read","display_name":"Pipeline Configurations Read","description":"View pipeline configurations.","created":"2021-12-09T00:11:38.956827+00:00","group_name":"Observability Pipelines","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb5-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_write","display_name":"Pipeline Configurations Write","description":"Create, edit, and delete pipeline configurations.","created":"2021-12-09T00:11:38.960833+00:00","group_name":"Observability Pipelines","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a8-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_read","display_name":"Workflows Read","description":"View workflows.","created":"2022-02-03T15:07:12.058412+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917aa-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_write","display_name":"Workflows Write","description":"Create, edit, and delete workflows.","created":"2022-02-03T15:07:12.061765+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a9-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_run","display_name":"Workflows Run","description":"Run workflows.","created":"2022-02-03T15:07:12.060079+00:00","group_name":"Workflows","display_type":"other","restricted":false}},{"type":"permissions","id":"f6e917a6-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_read","display_name":"Connections Read","description":"List and view available connections. Connections contain secrets that cannot be revealed.","created":"2022-02-03T15:07:12.053432+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917a7-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_write","display_name":"Connections Write","description":"Create and delete connections.","created":"2022-02-03T15:07:12.056590+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"7a89ec40-8b69-11ec-812d-da7ad0900002","attributes":{"name":"incidents_private_global_access","display_name":"Private Incidents Global Access","description":"Access all private incidents in Datadog, even when not added as a responder.","created":"2022-02-11T18:36:08.531989+00:00","group_name":"Incidents","display_type":"other","restricted":false}},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_read","display_name":"Notebooks Read","description":"View notebooks.","created":"2022-03-02T18:51:05.040950+00:00","group_name":"Notebooks","display_type":"read","restricted":true}},{"type":"permissions","id":"b6bf9ac7-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_write","display_name":"Notebooks Write","description":"Create and change notebooks.","created":"2022-03-02T18:51:05.044683+00:00","group_name":"Notebooks","display_type":"write","restricted":false}},{"type":"permissions","id":"e35c06b0-966b-11ec-83c9-da7ad0900002","attributes":{"name":"logs_delete_data","display_name":"Logs Delete Data","description":"Delete data from your Logs, including entire indexes.","created":"2022-02-25T18:51:06.176019+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2108215e-b9b4-11ec-958e-da7ad0900002","attributes":{"name":"rum_generate_metrics","display_name":"RUM Generate Metrics","description":"Create custom metrics from RUM events.","created":"2022-04-11T16:26:24.106645+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"7b1f5089-c59e-11ec-aa32-da7ad0900002","attributes":{"name":"manage_integrations","display_name":"Integrations Manage","description":"Install, uninstall, and configure integrations.","created":"2022-04-26T20:21:40.285834+00:00","group_name":"Integrations","display_type":"write","restricted":false}},{"type":"permissions","id":"1afff448-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_read","display_name":"Usage Notifications Read","description":"Receive notifications and view currently configured notification settings.","created":"2022-05-17T13:56:09.870985+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"1afff449-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_write","display_name":"Usage Notifications Write","description":"Receive notifications and configure notification settings.","created":"2022-05-17T13:56:09.876124+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"6c87d3da-e5c5-11ec-b1d6-da7ad0900002","attributes":{"name":"generate_dashboard_reports","display_name":"Dashboards Report Write","description":"Schedule custom reports from a dashboard. These reports will display any viewable data regardless of any granular restrictions (restriction queries, scoped indexes) applied to the report's creator.","created":"2022-06-06T18:21:03.378896+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_read","display_name":"SLOs Read","description":"View SLOs and status corrections.","created":"2022-06-08T16:20:55.142591+00:00","group_name":"Service Level Objectives","display_type":"read","restricted":true}},{"type":"permissions","id":"f8e941d0-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_write","display_name":"SLOs Write","description":"Create, edit, and delete SLOs.","created":"2022-06-08T16:20:55.143869+00:00","group_name":"Service Level Objectives","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941ce-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_corrections","display_name":"SLOs Status Corrections","description":"Apply, edit, and delete SLO status corrections. A user with this permission can make status corrections, even if they do not have permission to edit those SLOs.","created":"2022-06-08T16:20:55.139410+00:00","group_name":"Service Level Objectives","display_type":"other","restricted":false}},{"type":"permissions","id":"ee68fba9-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_write","display_name":"Service Catalog Write","description":"Add, modify, and delete service catalog definitions when those definitions are maintained by Datadog.","created":"2022-08-08T16:55:39.377188+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"ee68fba8-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_read","display_name":"Service Catalog Read","description":"View service catalog and service definitions.","created":"2022-08-08T16:55:39.374377+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"5b2c3e28-1761-11ed-b018-da7ad0900002","attributes":{"name":"logs_write_forwarding_rules","display_name":"Logs Write Forwarding Rules","description":"Add and edit forwarding destinations and rules for logs.","created":"2022-08-08T21:30:42.723663+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"6be119a6-1cd8-11ed-b185-da7ad0900002","attributes":{"name":"watchdog_insights_read","display_name":"Watchdog Insights Read","description":"View Watchdog Insights.","created":"2022-08-15T20:25:36.677197+00:00","group_name":"Watchdog","display_type":"read","restricted":false}},{"type":"permissions","id":"36e2a22e-248a-11ed-b405-da7ad0900002","attributes":{"name":"connections_resolve","display_name":"Connections Resolve","description":"Resolve connections.","created":"2022-08-25T15:25:56.325170+00:00","group_name":"Workflows","display_type":"read","restricted":false}}]} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"data":{"attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621"},"relationships":{},"type":"roles"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + url: https://api.datadoghq.com/api/v2/roles + method: POST + response: + body: | + {"data":{"type":"roles","id":"7a2c5636-6122-11ed-a9a0-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621","created_at":"2022-11-10T18:07:02.485481+00:00","modified_at":"2022-11-10T18:07:02.603143+00:00"},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/roles/7a2c5636-6122-11ed-a9a0-da7ad0900002 + method: GET + response: + body: | + {"data":{"type":"roles","id":"7a2c5636-6122-11ed-a9a0-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621","created_at":"2022-11-10T18:07:02.485481+00:00","modified_at":"2022-11-10T18:07:02.603143+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" - request: body: | - {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} + {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"basicAuth":{"password":"password","type":"web","username":"username"},"body":"this is a body","certificateDomains":["https://datadoghq.com"],"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"timeout":30,"url":"https://www.datadoghq.com"},"setCookie":"name=value","variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621","options":{"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","mobile_small"],"disableCors":true,"disableCsp":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":150,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621-monitor","monitor_options":{"renotify_interval":120},"monitor_priority":5,"noScreenshot":true,"restricted_roles":["7a2c5636-6122-11ed-a9a0-da7ad0900002"],"retry":{"count":2,"interval":300},"rumSettings":{"applicationId":"rum-app-id","clientTokenId":12345,"isEnabled":true},"tick_every":900},"status":"paused","steps":[{"allowFailure":true,"isCritical":true,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} form: {} headers: Accept: @@ -14,7 +68,24 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"3x5-x5w-mmi","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130","monitor_id":102642887,"type":"browser","created_at":"2022-11-10T14:55:32.672316+00:00","modified_at":"2022-11-10T14:55:32.672316+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"nqe-96w-np2","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621","monitor_id":102669240,"type":"browser","created_at":"2022-11-10T18:07:02.967335+00:00","modified_at":"2022-11-10T18:07:02.967335+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["7a2c5636-6122-11ed-a9a0-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621-monitor","tick_every":900,"ignoreServerCertificateError":true}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/nqe-96w-np2 + method: GET + response: + body: | + {"status":"paused","public_id":"nqe-96w-np2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621","monitor_id":102669240,"type":"browser","created_at":"2022-11-10T18:07:02.967335+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:07:02.967335+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["7a2c5636-6122-11ed-a9a0-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -27,11 +98,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/3x5-x5w-mmi + url: https://api.datadoghq.com/api/v2/roles/7a2c5636-6122-11ed-a9a0-da7ad0900002 method: GET response: body: | - {"status":"paused","public_id":"3x5-x5w-mmi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130","monitor_id":102642887,"type":"browser","created_at":"2022-11-10T14:55:32.672316+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:32.672316+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"data":{"type":"roles","id":"7a2c5636-6122-11ed-a9a0-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621","created_at":"2022-11-10T18:07:02.485481+00:00","modified_at":"2022-11-10T18:07:02.603143+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -44,11 +115,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/3x5-x5w-mmi + url: https://api.datadoghq.com/api/v1/synthetics/tests/nqe-96w-np2 method: GET response: body: | - {"status":"paused","public_id":"3x5-x5w-mmi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130","monitor_id":102642887,"type":"browser","created_at":"2022-11-10T14:55:32.672316+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:32.672316+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"nqe-96w-np2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621","monitor_id":102669240,"type":"browser","created_at":"2022-11-10T18:07:02.967335+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:07:02.967335+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["7a2c5636-6122-11ed-a9a0-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -61,11 +132,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/3x5-x5w-mmi + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/nqe-96w-np2 method: GET response: body: | - {"status":"paused","public_id":"3x5-x5w-mmi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130","monitor_id":102642887,"type":"browser","created_at":"2022-11-10T14:55:32.672316+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:32.672316+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"nqe-96w-np2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621","monitor_id":102669240,"type":"browser","created_at":"2022-11-10T18:07:02.967335+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:07:02.967335+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["7a2c5636-6122-11ed-a9a0-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -78,11 +149,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/3x5-x5w-mmi + url: https://api.datadoghq.com/api/v1/synthetics/tests/nqe-96w-np2 method: GET response: body: | - {"status":"paused","public_id":"3x5-x5w-mmi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130","monitor_id":102642887,"type":"browser","created_at":"2022-11-10T14:55:32.672316+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:32.672316+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"nqe-96w-np2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621","monitor_id":102669240,"type":"browser","created_at":"2022-11-10T18:07:02.967335+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:07:02.967335+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["7a2c5636-6122-11ed-a9a0-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -95,11 +166,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/3x5-x5w-mmi + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/nqe-96w-np2 method: GET response: body: | - {"status":"paused","public_id":"3x5-x5w-mmi","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130","monitor_id":102642887,"type":"browser","created_at":"2022-11-10T14:55:32.672316+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:32.672316+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668092130-monitor","tick_every":900,"ignoreServerCertificateError":true}} + {"status":"paused","public_id":"nqe-96w-np2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621","monitor_id":102669240,"type":"browser","created_at":"2022-11-10T18:07:02.967335+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:07:02.967335+00:00","steps":[{"name":"first step","allowFailure":true,"params":{"check":"contains","value":"content"},"timeout":0,"isCritical":true,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","url":"https://www.datadoghq.com","certificateDomains":["https://datadoghq.com"],"basicAuth":{"username":"username","password":"password","type":"web"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["7a2c5636-6122-11ed-a9a0-da7ad0900002"],"ci":{"executionRule":"blocking"},"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"include_tags":true,"renotify_interval":120,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"noScreenshot":true,"disableCsp":true,"monitor_priority":5,"initialNavigationTimeout":150,"disableCors":true,"rumSettings":{"isEnabled":true,"applicationId":"rum-app-id","clientTokenId":12345},"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1668103621-monitor","tick_every":900,"ignoreServerCertificateError":true}} headers: Content-Type: - application/json @@ -108,7 +179,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["3x5-x5w-mmi"]} + {"public_ids":["nqe-96w-np2"]} form: {} headers: Accept: @@ -119,20 +190,52 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"deleted_at":"2022-11-10T14:55:34.882700+00:00","public_id":"3x5-x5w-mmi"}]} + {"deleted_tests":[{"deleted_at":"2022-11-10T18:07:05.132770+00:00","public_id":"nqe-96w-np2"}]} headers: Content-Type: - application/json status: 200 OK code: 200 duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - '*/*' + url: https://api.datadoghq.com/api/v2/roles/7a2c5636-6122-11ed-a9a0-da7ad0900002 + method: DELETE + response: + body: "" + headers: + Content-Type: + - text/html; charset=utf-8 + status: 204 No Content + code: 204 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/7a2c5636-6122-11ed-a9a0-da7ad0900002 + method: GET + response: + body: '{"message": "The resource could not be found.

\n\n\n", "code": "404 Not Found", "title": "Not Found"}' + headers: + Content-Type: + - application/json + status: 404 Not Found + code: 404 + duration: "" - request: body: "" form: {} headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/3x5-x5w-mmi + url: https://api.datadoghq.com/api/v1/synthetics/tests/nqe-96w-np2 method: GET response: body: '{"errors":["Synthetics test not found"]}' diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze index 01ed5dc716..9ad88bf304 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze @@ -1 +1 @@ -2022-11-10T09:55:56.660298-05:00 \ No newline at end of file +2022-11-10T13:05:33.753638-05:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml index 5c1bf0ebdb..f24fe2a0d9 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml @@ -2,8 +2,25 @@ version: 1 interactions: - request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/permissions + method: GET + response: body: | - {"description":"a global variable","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668092156","tags":["foo:bar","baz"],"value":{"secure":false,"value":"variable-value"}} + {"data":[{"type":"permissions","id":"984a2bd4-d3b4-11e8-a1ff-a7f660d43029","attributes":{"name":"admin","display_name":"Privileged Access","description":"Deprecated. Privileged Access (also known as Admin permission) has been replaced by more specific permissions: Access Management, Org Management, Billing Read/Write, Usage Read/Write.","created":"2018-10-19T15:35:23.734317+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"984d2f00-d3b4-11e8-a200-bb47109e9987","attributes":{"name":"standard","display_name":"Standard Access","description":"View and edit components in your Datadog organization that do not have explicitly defined permissions. This includes configuring events, facets (except logs), and saved views.","created":"2018-10-19T15:35:23.756736+00:00","group_name":"General","display_type":"other","restricted":false}},{"type":"permissions","id":"5e605652-dd12-11e8-9e53-375565b8970e","attributes":{"name":"logs_read_index_data","display_name":"Logs Read Index Data","description":"Read log data, possibly scoped to one or more indexes. In order to read log data, a user must have both this permission and Logs Read Data. This permission can be granted in a limited capacity per index from the Logs interface or APIs. If granted via the Roles interface or API the permission has global scope. Restrictions are limited to the Log Management product.","created":"2018-10-31T13:39:19.727450+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"62cc036c-dd12-11e8-9e54-db9995643092","attributes":{"name":"logs_modify_indexes","display_name":"Logs Modify Indexes","description":"Read and modify all indexes in your account. This includes the ability to grant the Logs Read Index Data and Logs Write Exclusion Filters permission to other roles, for some or all indexes.","created":"2018-10-31T13:39:27.148615+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"6f66600e-dd12-11e8-9e55-7f30fbb45e73","attributes":{"name":"logs_live_tail","display_name":"Logs Live Tail","description":"View the live tail feed for all log indexes, even if otherwise specifically restricted.","created":"2018-10-31T13:39:48.292879+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7d7c98ac-dd12-11e8-9e56-93700598622d","attributes":{"name":"logs_write_exclusion_filters","display_name":"Logs Write Exclusion Filters","description":"Add and change exclusion filters for all or some log indexes. Can be granted in a limited capacity per index to specific roles via the Logs interface or API. If granted from the Roles interface or API, the permission has global scope.","created":"2018-10-31T13:40:11.926613+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"811ac4ca-dd12-11e8-9e57-676a7f0beef9","attributes":{"name":"logs_write_pipelines","display_name":"Logs Write Pipelines","description":"Add and change log pipeline configurations, including the ability to grant the Logs Write Processors permission to other roles, for some or all pipelines.","created":"2018-10-31T13:40:17.996379+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"84aa3ae4-dd12-11e8-9e58-a373a514ccd0","attributes":{"name":"logs_write_processors","display_name":"Logs Write Processors","description":"Add and change some or all log processor configurations. Can be granted in a limited capacity per pipeline to specific roles via the Logs interface or API. If granted via the Roles interface or API the permission has global scope.","created":"2018-10-31T13:40:23.969725+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"87b00304-dd12-11e8-9e59-cbeb5f71f72f","attributes":{"name":"logs_write_archives","display_name":"Logs Write Archives","description":"Add and edit Log Archives.","created":"2018-10-31T13:40:29.040786+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"979df720-aed7-11e9-99c6-a7eb8373165a","attributes":{"name":"logs_generate_metrics","display_name":"Logs Generate Metrics","description":"Create custom metrics from logs.","created":"2019-07-25T12:27:39.640758+00:00","group_name":"Log Management","display_type":"other","restricted":false}},{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2","attributes":{"name":"dashboards_read","display_name":"Dashboards Read","description":"View dashboards.","created":"2019-09-10T14:39:51.955175+00:00","group_name":"Dashboards","display_type":"read","restricted":true}},{"type":"permissions","id":"d90f6831-d3d8-11e9-a77a-4fd230ddbc6a","attributes":{"name":"dashboards_write","display_name":"Dashboards Write","description":"Create and change dashboards.","created":"2019-09-10T14:39:51.962944+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"d90f6832-d3d8-11e9-a77a-bf8a2607f864","attributes":{"name":"dashboards_public_share","display_name":"Dashboards Public Share","description":"Generate public and authenticated links to share dashboards externally.","created":"2019-09-10T14:39:51.967094+00:00","group_name":"Dashboards","display_type":"other","restricted":false}},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304","attributes":{"name":"monitors_read","display_name":"Monitors Read","description":"View monitors.","created":"2019-09-16T18:39:07.744297+00:00","group_name":"Monitors","display_type":"read","restricted":true}},{"type":"permissions","id":"48ef71ea-d8b1-11e9-a77a-93f408470ad0","attributes":{"name":"monitors_write","display_name":"Monitors Write","description":"Edit, mute, and delete individual monitors.","created":"2019-09-16T18:39:15.597109+00:00","group_name":"Monitors","display_type":"write","restricted":false}},{"type":"permissions","id":"4d87d5f8-d8b1-11e9-a77a-eb9c8350d04f","attributes":{"name":"monitors_downtime","display_name":"Monitors Manage Downtime","description":"Set downtimes to suppress alerts from any monitor in an organization. The ability to write monitors is not required to set downtimes.","created":"2019-09-16T18:39:23.306702+00:00","group_name":"Monitors","display_type":"other","restricted":false}},{"type":"permissions","id":"1af86ce4-7823-11ea-93dc-d7cad1b1c6cb","attributes":{"name":"logs_read_data","display_name":"Logs Read Data","description":"Read log data. In order to read log data, a user must have both this permission and Logs Read Index Data. This permission can be restricted with restriction queries. Restrictions are limited to the Log Management product.","created":"2020-04-06T16:24:35.989108+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"b382b982-8535-11ea-93de-2bf1bdf20798","attributes":{"name":"logs_read_archives","display_name":"Logs Read Archives","description":"Read Log Archives location and use it for rehydration.","created":"2020-04-23T07:40:27.966133+00:00","group_name":"Log Management","display_type":"read","restricted":false}},{"type":"permissions","id":"7314eb20-aa58-11ea-95e2-6fb6e4a451d5","attributes":{"name":"security_monitoring_rules_read","display_name":"Security Rules Read","description":"Read Detection Rules.","created":"2020-06-09T13:52:25.279909+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"7b516476-aa58-11ea-95e2-93718cd56369","attributes":{"name":"security_monitoring_rules_write","display_name":"Security Rules Write","description":"Create and edit Detection Rules.","created":"2020-06-09T13:52:39.099413+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"80de1ec0-aa58-11ea-95e2-aff381626d5d","attributes":{"name":"security_monitoring_signals_read","display_name":"Security Signals Read","description":"View Security Signals.","created":"2020-06-09T13:52:48.410398+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"58b412cc-ff6d-11eb-bc9c-da7ad0900002","attributes":{"name":"security_monitoring_signals_write","display_name":"Security Signals Write","description":"Modify Security Signals.","created":"2021-08-17T15:11:06.963503+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"9ac1d8cc-e707-11ea-aa2d-73d37e989a9d","attributes":{"name":"user_access_invite","display_name":"User Access Invite","description":"Invite other users to your organization.","created":"2020-08-25T19:17:23.539701+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"9de604d8-e707-11ea-aa2d-93f1a783b3a3","attributes":{"name":"user_access_manage","display_name":"User Access Manage","description":"Disable users, manage user roles, manage SAML-to-role mappings, and configure logs restriction queries.","created":"2020-08-25T19:17:28.810412+00:00","group_name":"Access Management","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301da-ec5c-11ea-aa9f-73bedeab67ee","attributes":{"name":"user_app_keys","display_name":"User App Keys","description":"View and manage Application Keys owned by the user.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"other","restricted":false}},{"type":"permissions","id":"46a301db-ec5c-11ea-aa9f-2fe72193d60e","attributes":{"name":"org_app_keys_read","display_name":"Org App Keys Read","description":"View Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301dc-ec5c-11ea-aa9f-13b33f8f46ea","attributes":{"name":"org_app_keys_write","display_name":"Org App Keys Write","description":"Manage Application Keys owned by all users in the organization.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301dd-ec5c-11ea-aa9f-97edfb345bc9","attributes":{"name":"synthetics_private_location_read","display_name":"Synthetics Private Location Read","description":"View, search, and use Synthetics private locations.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301de-ec5c-11ea-aa9f-a73252c24806","attributes":{"name":"synthetics_private_location_write","display_name":"Synthetics Private Location Write","description":"Create and delete private locations in addition to having access to the associated installation guidelines.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301df-ec5c-11ea-aa9f-970a9ae645e5","attributes":{"name":"billing_read","display_name":"Billing Read","description":"View your organization's subscription and payment method but not make edits.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e0-ec5c-11ea-aa9f-6ba6cc675d8c","attributes":{"name":"billing_edit","display_name":"Billing Edit","description":"Manage your organization's subscription and payment method.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e1-ec5c-11ea-aa9f-afa39f6f3e36","attributes":{"name":"usage_read","display_name":"Usage Read","description":"View your organization's usage and usage attribution.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"46a301e2-ec5c-11ea-aa9f-1f511b7305fd","attributes":{"name":"usage_edit","display_name":"Usage Edit","description":"Manage your organization's usage attribution set-up.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"46a301e4-ec5c-11ea-aa9f-87282b3a50cc","attributes":{"name":"metric_tags_write","display_name":"Metric Tags Write","description":"Edit and save tag configurations for custom metrics.","created":"2020-09-01T14:06:05.444705+00:00","group_name":"Metrics","display_type":"write","restricted":false}},{"type":"permissions","id":"07c3c146-f7f8-11ea-acf6-0bd62b9ae60e","attributes":{"name":"logs_write_historical_view","display_name":"Logs Write Historical View","description":"Rehydrate logs from Archives.","created":"2020-09-16T08:38:44.242076+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2fbdac76-f923-11ea-adbc-07f3823e2b43","attributes":{"name":"audit_logs_read","display_name":"Audit Trail Read","description":"View Audit Trail in your organization.","created":"2020-09-17T20:20:10.834252+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"372896c4-f923-11ea-adbc-4fecd107156d","attributes":{"name":"api_keys_read","display_name":"API Keys Read","description":"List and retrieve the key values of all API Keys in your organization.","created":"2020-09-17T20:20:23.279769+00:00","group_name":"API and Application Keys","display_type":"read","restricted":false}},{"type":"permissions","id":"3e4d4d28-f923-11ea-adbc-e3565938c12e","attributes":{"name":"api_keys_write","display_name":"API Keys Write","description":"Create, rename, and revoke API Keys for your organization.","created":"2020-09-17T20:20:35.264430+00:00","group_name":"API and Application Keys","display_type":"write","restricted":false}},{"type":"permissions","id":"4628ca54-f923-11ea-adbc-4b2b7f88c5e9","attributes":{"name":"synthetics_global_variable_read","display_name":"Synthetics Global Variable Read","description":"View, search, and use Synthetics global variables.","created":"2020-09-17T20:20:48.446916+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"4ada6e36-f923-11ea-adbc-0788e5c5e3cf","attributes":{"name":"synthetics_global_variable_write","display_name":"Synthetics Global Variable Write","description":"Create, edit, and delete global variables for Synthetics.","created":"2020-09-17T20:20:56.322003+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5025ee24-f923-11ea-adbc-576ea241df8d","attributes":{"name":"synthetics_read","display_name":"Synthetics Read","description":"List and view configured Synthetic tests and test results.","created":"2020-09-17T20:21:05.205361+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"55f4b5ec-f923-11ea-adbc-1bfa2334a755","attributes":{"name":"synthetics_write","display_name":"Synthetics Write","description":"Create, edit, and delete Synthetic tests.","created":"2020-09-17T20:21:14.949140+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"5c6b88e2-f923-11ea-adbc-abf57d079420","attributes":{"name":"synthetics_default_settings_read","display_name":"Synthetics Default Settings Read","description":"View the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:25.794160+00:00","group_name":"Synthetic Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"642eebe6-f923-11ea-adbc-eb617674ea04","attributes":{"name":"synthetics_default_settings_write","display_name":"Synthetics Default Settings Write","description":"Edit the default settings for Synthetic Monitoring.","created":"2020-09-17T20:21:38.818771+00:00","group_name":"Synthetic Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"6ba32d22-0e1a-11eb-ba44-bf9a5aafaa39","attributes":{"name":"logs_write_facets","display_name":"Logs Write Facets","description":"Create or edit Log Facets.","created":"2020-10-14T12:40:20.271908+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"a42e94b2-1476-11eb-bd08-efda28c04248","attributes":{"name":"service_account_write","display_name":"Service Account Write","description":"Create, disable, and use Service Accounts in your organization.","created":"2020-10-22T14:55:35.814239+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"fcac2ad8-2843-11eb-8315-0fe47949d625","attributes":{"name":"integrations_api","display_name":"Integrations API","description":"Deprecated. Use the Integrations APIs to configure integrations. In order to configure integrations from the UI, a user must also have Standard Access.","created":"2020-11-16T19:43:23.198568+00:00","group_name":"Integrations","display_type":"other","restricted":false}},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0","attributes":{"name":"apm_read","display_name":"APM Read","description":"Read and query APM and Trace Analytics.","created":"2020-11-23T20:55:45.006110+00:00","group_name":"APM","display_type":"read","restricted":true}},{"type":"permissions","id":"43fa188e-2dce-11eb-84c0-835ad1fd6287","attributes":{"name":"apm_retention_filter_read","display_name":"APM Retention Filter Read","description":"Read trace retention filters. A user with this permission can view the retention filters page, list of filters, their statistics, and creation info.","created":"2020-11-23T20:55:49.190595+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"465cfe66-2dce-11eb-84c0-6baa888239fa","attributes":{"name":"apm_retention_filter_write","display_name":"APM Retention Filter Write","description":"Create, edit, and delete trace retention filters. A user with this permission can create new retention filters, and update or delete to existing retention filters.","created":"2020-11-23T20:55:53.194236+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"4916eebe-2dce-11eb-84c0-271cb2c672e8","attributes":{"name":"apm_service_ingest_read","display_name":"APM Service Ingest Read","description":"Access service ingestion pages. A user with this permission can view the service ingestion page, list of root services, their statistics, and creation info.","created":"2020-11-23T20:55:57.768261+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"4e3f02b4-2dce-11eb-84c0-2fca946a6efc","attributes":{"name":"apm_service_ingest_write","display_name":"APM Service Ingest Write","description":"Edit service ingestion pages' root services. A user with this permission can edit the root service ingestion and generate a code snippet to increase ingestion per service.","created":"2020-11-23T20:56:06.419518+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"53950c54-2dce-11eb-84c0-a79ae108f6f8","attributes":{"name":"apm_apdex_manage_write","display_name":"APM Apdex Manage Write","description":"Set Apdex T value on any service. A user with this permission can set the T value from the Apdex graph on the service page.","created":"2020-11-23T20:56:15.371926+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"5cbe5f9c-2dce-11eb-84c0-872d3e9f1076","attributes":{"name":"apm_tag_management_write","display_name":"APM Tag Management Write","description":"Edit second primary tag selection. A user with this permission can modify the second primary tag dropdown in the APM settings page.","created":"2020-11-23T20:56:30.742299+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"61765026-2dce-11eb-84c0-833e230d1b8f","attributes":{"name":"apm_primary_operation_write","display_name":"APM Primary Operation Write","description":"Edit the operation name value selection. A user with this permission can modify the operation name list in the APM settings page and the operation name controller on the service page.","created":"2020-11-23T20:56:38.658649+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"04bc1cf2-340a-11eb-873a-43b973c760dd","attributes":{"name":"audit_logs_write","display_name":"Audit Trail Write","description":"Configure Audit Trail in your organization.","created":"2020-12-01T19:18:39.866516+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"8106300a-54f7-11eb-8cbc-7781a434a67b","attributes":{"name":"rum_apps_write","display_name":"RUM Apps Write","description":"Create, edit, and delete RUM Applications.","created":"2021-01-12T16:59:16.324480+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e74-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_write","display_name":"Dynamic Instrumentation Write Configuration","description":"Edit Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.006815+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"edfd5e75-801f-11eb-96d8-da7ad0900002","attributes":{"name":"debugger_read","display_name":"Dynamic Instrumentation Read Configuration","description":"View Dynamic Instrumentation configuration.","created":"2021-03-08T15:06:59.010517+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7c-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_read","display_name":"Data Scanner Read","description":"View Data Scanner configurations.","created":"2021-03-29T16:56:46.394971+00:00","group_name":"Compliance","display_type":"read","restricted":false}},{"type":"permissions","id":"bf0dcf7d-90af-11eb-9b82-da7ad0900002","attributes":{"name":"data_scanner_write","display_name":"Data Scanner Write","description":"Edit Data Scanner configurations.","created":"2021-03-29T16:56:46.398584+00:00","group_name":"Compliance","display_type":"write","restricted":false}},{"type":"permissions","id":"7df222b6-a45c-11eb-a0af-da7ad0900002","attributes":{"name":"org_management","display_name":"Org Management","description":"Edit org configurations, including authentication and certain security preferences such as configuring SAML, renaming an org, configuring allowed login methods, creating child orgs, subscribing & unsubscribing from apps in the marketplace.","created":"2021-04-23T17:51:12.187340+00:00","group_name":"Access Management","display_type":"write","restricted":false}},{"type":"permissions","id":"98b984f4-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_read","display_name":"Security Filters Read","description":"Read Security Filters.","created":"2021-05-10T08:56:23.676833+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"98b984f5-b16d-11eb-a2c6-da7ad0900002","attributes":{"name":"security_monitoring_filters_write","display_name":"Security Filters Write","description":"Create, edit, and delete Security Filters.","created":"2021-05-10T08:56:23.680551+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_read","display_name":"Incident Read","description":"View incidents in Datadog.","created":"2021-06-22T15:11:09.255499+00:00","group_name":"Incidents","display_type":"read","restricted":true}},{"type":"permissions","id":"12efc211-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_write","display_name":"Incident Write","description":"Create, view, and manage incidents in Datadog.","created":"2021-06-22T15:11:09.264369+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"12efc20f-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_read","display_name":"Incidents Settings Read","description":"View Incidents settings.","created":"2021-06-22T15:11:09.259568+00:00","group_name":"Incidents","display_type":"read","restricted":false}},{"type":"permissions","id":"12efc210-d36c-11eb-a9b8-da7ad0900002","attributes":{"name":"incident_settings_write","display_name":"Incidents Settings Write","description":"Configure Incidents settings.","created":"2021-06-22T15:11:09.261986+00:00","group_name":"Incidents","display_type":"write","restricted":false}},{"type":"permissions","id":"97971c1c-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_read","display_name":"Application Security Management Event Rules Read","description":"View Application Security Management Event Rules.","created":"2021-07-19T13:31:15.595771+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"97971c1d-e895-11eb-b13c-da7ad0900002","attributes":{"name":"appsec_event_rule_write","display_name":"Application Security Management Event Rules Write","description":"Edit Application Security Management Event Rules.","created":"2021-07-19T13:31:15.598808+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_apps_read","display_name":"RUM Apps Read","description":"View RUM Applications data.","created":"2021-08-02T09:46:07.671535+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":true}},{"type":"permissions","id":"7605ef25-f376-11eb-b90b-da7ad0900002","attributes":{"name":"rum_session_replay_read","display_name":"RUM Session Replay Read","description":"View Session Replays.","created":"2021-08-02T09:46:07.674640+00:00","group_name":"Real User Monitoring","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b8-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_read","display_name":"Security Notification Rules Read","description":"Read Notification Rules.","created":"2021-09-16T08:26:27.366789+00:00","group_name":"Cloud Security Platform","display_type":"read","restricted":false}},{"type":"permissions","id":"c95412b9-16c7-11ec-85c0-da7ad0900002","attributes":{"name":"security_monitoring_notification_profiles_write","display_name":"Security Notification Rules Write","description":"Create, edit, and delete Notification Rules.","created":"2021-09-16T08:26:27.369359+00:00","group_name":"Cloud Security Platform","display_type":"write","restricted":false}},{"type":"permissions","id":"26c79920-1703-11ec-85d2-da7ad0900002","attributes":{"name":"apm_generate_metrics","display_name":"APM Generate Metrics","description":"Create custom metrics from spans.","created":"2021-09-16T15:31:24.458963+00:00","group_name":"APM","display_type":"other","restricted":false}},{"type":"permissions","id":"020a563c-56a4-11ec-a982-da7ad0900002","attributes":{"name":"apm_pipelines_write","display_name":"APM Pipelines Write","description":"Add and change APM pipeline configurations.","created":"2021-12-06T14:51:35.049129+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"8e4d6b6e-5750-11ec-a9f4-da7ad0900002","attributes":{"name":"apm_pipelines_read","display_name":"APM Pipelines Read","description":"View APM pipeline configurations.","created":"2021-12-07T11:26:43.807269+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb4-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_read","display_name":"Pipeline Configurations Read","description":"View pipeline configurations.","created":"2021-12-09T00:11:38.956827+00:00","group_name":"Observability Pipelines","display_type":"read","restricted":false}},{"type":"permissions","id":"945b3bb5-5884-11ec-aa6d-da7ad0900002","attributes":{"name":"observability_pipelines_write","display_name":"Pipeline Configurations Write","description":"Create, edit, and delete pipeline configurations.","created":"2021-12-09T00:11:38.960833+00:00","group_name":"Observability Pipelines","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a8-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_read","display_name":"Workflows Read","description":"View workflows.","created":"2022-02-03T15:07:12.058412+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917aa-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_write","display_name":"Workflows Write","description":"Create, edit, and delete workflows.","created":"2022-02-03T15:07:12.061765+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"f6e917a9-8502-11ec-bf20-da7ad0900002","attributes":{"name":"workflows_run","display_name":"Workflows Run","description":"Run workflows.","created":"2022-02-03T15:07:12.060079+00:00","group_name":"Workflows","display_type":"other","restricted":false}},{"type":"permissions","id":"f6e917a6-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_read","display_name":"Connections Read","description":"List and view available connections. Connections contain secrets that cannot be revealed.","created":"2022-02-03T15:07:12.053432+00:00","group_name":"Workflows","display_type":"read","restricted":false}},{"type":"permissions","id":"f6e917a7-8502-11ec-bf20-da7ad0900002","attributes":{"name":"connections_write","display_name":"Connections Write","description":"Create and delete connections.","created":"2022-02-03T15:07:12.056590+00:00","group_name":"Workflows","display_type":"write","restricted":false}},{"type":"permissions","id":"7a89ec40-8b69-11ec-812d-da7ad0900002","attributes":{"name":"incidents_private_global_access","display_name":"Private Incidents Global Access","description":"Access all private incidents in Datadog, even when not added as a responder.","created":"2022-02-11T18:36:08.531989+00:00","group_name":"Incidents","display_type":"other","restricted":false}},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_read","display_name":"Notebooks Read","description":"View notebooks.","created":"2022-03-02T18:51:05.040950+00:00","group_name":"Notebooks","display_type":"read","restricted":true}},{"type":"permissions","id":"b6bf9ac7-9a59-11ec-8480-da7ad0900002","attributes":{"name":"notebooks_write","display_name":"Notebooks Write","description":"Create and change notebooks.","created":"2022-03-02T18:51:05.044683+00:00","group_name":"Notebooks","display_type":"write","restricted":false}},{"type":"permissions","id":"e35c06b0-966b-11ec-83c9-da7ad0900002","attributes":{"name":"logs_delete_data","display_name":"Logs Delete Data","description":"Delete data from your Logs, including entire indexes.","created":"2022-02-25T18:51:06.176019+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"2108215e-b9b4-11ec-958e-da7ad0900002","attributes":{"name":"rum_generate_metrics","display_name":"RUM Generate Metrics","description":"Create custom metrics from RUM events.","created":"2022-04-11T16:26:24.106645+00:00","group_name":"Real User Monitoring","display_type":"write","restricted":false}},{"type":"permissions","id":"7b1f5089-c59e-11ec-aa32-da7ad0900002","attributes":{"name":"manage_integrations","display_name":"Integrations Manage","description":"Install, uninstall, and configure integrations.","created":"2022-04-26T20:21:40.285834+00:00","group_name":"Integrations","display_type":"write","restricted":false}},{"type":"permissions","id":"1afff448-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_read","display_name":"Usage Notifications Read","description":"Receive notifications and view currently configured notification settings.","created":"2022-05-17T13:56:09.870985+00:00","group_name":"Billing and Usage","display_type":"read","restricted":false}},{"type":"permissions","id":"1afff449-d5e9-11ec-ae37-da7ad0900002","attributes":{"name":"usage_notifications_write","display_name":"Usage Notifications Write","description":"Receive notifications and configure notification settings.","created":"2022-05-17T13:56:09.876124+00:00","group_name":"Billing and Usage","display_type":"write","restricted":false}},{"type":"permissions","id":"6c87d3da-e5c5-11ec-b1d6-da7ad0900002","attributes":{"name":"generate_dashboard_reports","display_name":"Dashboards Report Write","description":"Schedule custom reports from a dashboard. These reports will display any viewable data regardless of any granular restrictions (restriction queries, scoped indexes) applied to the report's creator.","created":"2022-06-06T18:21:03.378896+00:00","group_name":"Dashboards","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_read","display_name":"SLOs Read","description":"View SLOs and status corrections.","created":"2022-06-08T16:20:55.142591+00:00","group_name":"Service Level Objectives","display_type":"read","restricted":true}},{"type":"permissions","id":"f8e941d0-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_write","display_name":"SLOs Write","description":"Create, edit, and delete SLOs.","created":"2022-06-08T16:20:55.143869+00:00","group_name":"Service Level Objectives","display_type":"write","restricted":false}},{"type":"permissions","id":"f8e941ce-e746-11ec-b22d-da7ad0900002","attributes":{"name":"slos_corrections","display_name":"SLOs Status Corrections","description":"Apply, edit, and delete SLO status corrections. A user with this permission can make status corrections, even if they do not have permission to edit those SLOs.","created":"2022-06-08T16:20:55.139410+00:00","group_name":"Service Level Objectives","display_type":"other","restricted":false}},{"type":"permissions","id":"ee68fba9-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_write","display_name":"Service Catalog Write","description":"Add, modify, and delete service catalog definitions when those definitions are maintained by Datadog.","created":"2022-08-08T16:55:39.377188+00:00","group_name":"APM","display_type":"write","restricted":false}},{"type":"permissions","id":"ee68fba8-173a-11ed-b00b-da7ad0900002","attributes":{"name":"apm_service_catalog_read","display_name":"Service Catalog Read","description":"View service catalog and service definitions.","created":"2022-08-08T16:55:39.374377+00:00","group_name":"APM","display_type":"read","restricted":false}},{"type":"permissions","id":"5b2c3e28-1761-11ed-b018-da7ad0900002","attributes":{"name":"logs_write_forwarding_rules","display_name":"Logs Write Forwarding Rules","description":"Add and edit forwarding destinations and rules for logs.","created":"2022-08-08T21:30:42.723663+00:00","group_name":"Log Management","display_type":"write","restricted":false}},{"type":"permissions","id":"6be119a6-1cd8-11ed-b185-da7ad0900002","attributes":{"name":"watchdog_insights_read","display_name":"Watchdog Insights Read","description":"View Watchdog Insights.","created":"2022-08-15T20:25:36.677197+00:00","group_name":"Watchdog","display_type":"read","restricted":false}},{"type":"permissions","id":"36e2a22e-248a-11ed-b405-da7ad0900002","attributes":{"name":"connections_resolve","display_name":"Connections Resolve","description":"Resolve connections.","created":"2022-08-25T15:25:56.325170+00:00","group_name":"Workflows","display_type":"read","restricted":false}}]} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"description":"a global variable","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668103533","tags":["foo:bar","baz"],"value":{"secure":false,"value":"variable-value"}} form: {} headers: Accept: @@ -14,7 +31,7 @@ interactions: method: POST response: body: | - {"parse_test_options":null,"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"is_totp":null,"value":{"secure":false,"value":"variable-value"},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"ed8d2a13-bc07-4a3b-aadb-0e01fb16630f","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668092156"} + {"parse_test_options":null,"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"is_totp":null,"value":{"secure":false,"value":"variable-value"},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"0330cdb3-bc53-4657-b804-860a7745718a","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668103533"} headers: Content-Type: - application/json @@ -27,11 +44,31 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/ed8d2a13-bc07-4a3b-aadb-0e01fb16630f + url: https://api.datadoghq.com/api/v1/synthetics/variables/0330cdb3-bc53-4657-b804-860a7745718a method: GET response: body: | - {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"ed8d2a13-bc07-4a3b-aadb-0e01fb16630f","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668092156","created_at":"2022-11-10T14:55:57.890524+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:57.890524+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} + {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"0330cdb3-bc53-4657-b804-860a7745718a","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668103533","created_at":"2022-11-10T18:05:35.149394+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:35.149394+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"data":{"attributes":{"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668103533"},"relationships":{},"type":"roles"}} + form: {} + headers: + Accept: + - application/json + Content-Type: + - application/json + url: https://api.datadoghq.com/api/v2/roles + method: POST + response: + body: | + {"data":{"type":"roles","id":"4625d45c-6122-11ed-b3a1-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668103533","created_at":"2022-11-10T18:05:35.201348+00:00","modified_at":"2022-11-10T18:05:35.298648+00:00"},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -44,11 +81,28 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/ed8d2a13-bc07-4a3b-aadb-0e01fb16630f + url: https://api.datadoghq.com/api/v1/synthetics/variables/0330cdb3-bc53-4657-b804-860a7745718a method: GET response: body: | - {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"ed8d2a13-bc07-4a3b-aadb-0e01fb16630f","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668092156","created_at":"2022-11-10T14:55:57.890524+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:57.890524+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} + {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"0330cdb3-bc53-4657-b804-860a7745718a","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668103533","created_at":"2022-11-10T18:05:35.149394+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:35.149394+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v2/roles/4625d45c-6122-11ed-b3a1-da7ad0900002 + method: GET + response: + body: | + {"data":{"type":"roles","id":"4625d45c-6122-11ed-b3a1-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668103533","created_at":"2022-11-10T18:05:35.201348+00:00","modified_at":"2022-11-10T18:05:35.298648+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -57,7 +111,7 @@ interactions: duration: "" - request: body: | - {"config":{"assertions":[],"configVariables":[{"id":"ed8d2a13-bc07-4a3b-aadb-0e01fb16630f","name":"VARIABLE_NAME","type":"global"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[{"field":"content-length","name":"VAR_EXTRACT","parser":{"type":"regex","value":".*"},"type":"http_header"}],"isCritical":false,"name":"First api step","request":{"allow_insecure":true,"basicAuth":{"accessKey":"sigv4-access-key","region":"sigv4-region","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","sessionToken":"sigv4-session-token","type":"sigv4"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"follow_redirects":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Second api step","request":{"allow_insecure":true,"body":"","follow_redirects":true,"method":"GET","timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668092156","options":{"min_location_failed":1,"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"tick_every":900},"status":"paused","subtype":"multi","tags":["multistep"],"type":"api"} + {"config":{"assertions":[],"configVariables":[{"id":"0330cdb3-bc53-4657-b804-860a7745718a","name":"VARIABLE_NAME","type":"global"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[{"field":"content-length","name":"VAR_EXTRACT","parser":{"type":"regex","value":".*"},"type":"http_header"}],"isCritical":false,"name":"First api step","request":{"allow_insecure":true,"basicAuth":{"accessKey":"sigv4-access-key","region":"sigv4-region","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","sessionToken":"sigv4-session-token","type":"sigv4"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"follow_redirects":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Second api step","request":{"allow_insecure":true,"body":"","follow_redirects":true,"method":"GET","timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668103533","options":{"min_location_failed":1,"restricted_roles":["4625d45c-6122-11ed-b3a1-da7ad0900002"],"tick_every":900},"status":"paused","subtype":"multi","tags":["multistep"],"type":"api"} form: {} headers: Accept: @@ -68,7 +122,7 @@ interactions: method: POST response: body: | - {"status":"paused","public_id":"gxf-4yx-uqd","tags":["multistep"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668092156","monitor_id":102642908,"type":"api","created_at":"2022-11-10T14:55:58.362721+00:00","modified_at":"2022-11-10T14:55:58.362721+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"yrc-fgh-tte","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"55r-w3r-dha","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"ed8d2a13-bc07-4a3b-aadb-0e01fb16630f","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"min_location_failed":1,"tick_every":900}} + {"status":"paused","public_id":"4iv-sws-5bb","tags":["multistep"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668103533","monitor_id":102668860,"type":"api","created_at":"2022-11-10T18:05:35.718784+00:00","modified_at":"2022-11-10T18:05:35.718784+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"kri-weq-6i2","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"3cx-nv5-4b3","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"0330cdb3-bc53-4657-b804-860a7745718a","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["4625d45c-6122-11ed-b3a1-da7ad0900002"],"min_location_failed":1,"tick_every":900}} headers: Content-Type: - application/json @@ -81,11 +135,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/gxf-4yx-uqd + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/4iv-sws-5bb method: GET response: body: | - {"status":"paused","public_id":"gxf-4yx-uqd","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668092156","monitor_id":102642908,"type":"api","created_at":"2022-11-10T14:55:58.362721+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:58.362721+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"yrc-fgh-tte","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"55r-w3r-dha","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"ed8d2a13-bc07-4a3b-aadb-0e01fb16630f","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"min_location_failed":1,"tick_every":900}} + {"status":"paused","public_id":"4iv-sws-5bb","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668103533","monitor_id":102668860,"type":"api","created_at":"2022-11-10T18:05:35.718784+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:35.718784+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"kri-weq-6i2","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"3cx-nv5-4b3","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"0330cdb3-bc53-4657-b804-860a7745718a","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["4625d45c-6122-11ed-b3a1-da7ad0900002"],"min_location_failed":1,"tick_every":900}} headers: Content-Type: - application/json @@ -98,11 +152,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/ed8d2a13-bc07-4a3b-aadb-0e01fb16630f + url: https://api.datadoghq.com/api/v1/synthetics/variables/0330cdb3-bc53-4657-b804-860a7745718a method: GET response: body: | - {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"ed8d2a13-bc07-4a3b-aadb-0e01fb16630f","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668092156","created_at":"2022-11-10T14:55:57.890524+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:57.890524+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} + {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"0330cdb3-bc53-4657-b804-860a7745718a","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668103533","created_at":"2022-11-10T18:05:35.149394+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:35.149394+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -115,11 +169,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/gxf-4yx-uqd + url: https://api.datadoghq.com/api/v1/synthetics/tests/4iv-sws-5bb method: GET response: body: | - {"status":"paused","public_id":"gxf-4yx-uqd","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668092156","monitor_id":102642908,"type":"api","created_at":"2022-11-10T14:55:58.362721+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:58.362721+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"yrc-fgh-tte","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"55r-w3r-dha","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"ed8d2a13-bc07-4a3b-aadb-0e01fb16630f","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"min_location_failed":1,"tick_every":900}} + {"status":"paused","public_id":"4iv-sws-5bb","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668103533","monitor_id":102668860,"type":"api","created_at":"2022-11-10T18:05:35.718784+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:35.718784+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"kri-weq-6i2","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"3cx-nv5-4b3","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"0330cdb3-bc53-4657-b804-860a7745718a","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["4625d45c-6122-11ed-b3a1-da7ad0900002"],"min_location_failed":1,"tick_every":900}} headers: Content-Type: - application/json @@ -132,11 +186,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/ed8d2a13-bc07-4a3b-aadb-0e01fb16630f + url: https://api.datadoghq.com/api/v1/synthetics/variables/0330cdb3-bc53-4657-b804-860a7745718a method: GET response: body: | - {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"ed8d2a13-bc07-4a3b-aadb-0e01fb16630f","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668092156","created_at":"2022-11-10T14:55:57.890524+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:57.890524+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} + {"parse_test_extracted_at":null,"description":"a global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"0330cdb3-bc53-4657-b804-860a7745718a","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1668103533","created_at":"2022-11-10T18:05:35.149394+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:35.149394+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"} headers: Content-Type: - application/json @@ -149,11 +203,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/gxf-4yx-uqd + url: https://api.datadoghq.com/api/v2/roles/4625d45c-6122-11ed-b3a1-da7ad0900002 method: GET response: body: | - {"status":"paused","public_id":"gxf-4yx-uqd","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668092156","monitor_id":102642908,"type":"api","created_at":"2022-11-10T14:55:58.362721+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:58.362721+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"yrc-fgh-tte","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"55r-w3r-dha","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"ed8d2a13-bc07-4a3b-aadb-0e01fb16630f","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"min_location_failed":1,"tick_every":900}} + {"data":{"type":"roles","id":"4625d45c-6122-11ed-b3a1-da7ad0900002","attributes":{"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668103533","created_at":"2022-11-10T18:05:35.201348+00:00","modified_at":"2022-11-10T18:05:35.298648+00:00","user_count":0},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} headers: Content-Type: - application/json @@ -166,11 +220,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/gxf-4yx-uqd + url: https://api.datadoghq.com/api/v1/synthetics/tests/4iv-sws-5bb method: GET response: body: | - {"status":"paused","public_id":"gxf-4yx-uqd","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668092156","monitor_id":102642908,"type":"api","created_at":"2022-11-10T14:55:58.362721+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T14:55:58.362721+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"yrc-fgh-tte","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"55r-w3r-dha","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"ed8d2a13-bc07-4a3b-aadb-0e01fb16630f","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["667cbd82-c7d1-11ec-aad8-da7ad0900002"],"min_location_failed":1,"tick_every":900}} + {"status":"paused","public_id":"4iv-sws-5bb","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668103533","monitor_id":102668860,"type":"api","created_at":"2022-11-10T18:05:35.718784+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:35.718784+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"kri-weq-6i2","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"3cx-nv5-4b3","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"0330cdb3-bc53-4657-b804-860a7745718a","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["4625d45c-6122-11ed-b3a1-da7ad0900002"],"min_location_failed":1,"tick_every":900}} headers: Content-Type: - application/json @@ -178,8 +232,25 @@ interactions: code: 200 duration: "" - request: + body: "" + form: {} + headers: + Accept: + - application/json + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/4iv-sws-5bb + method: GET + response: body: | - {"public_ids":["gxf-4yx-uqd"]} + {"status":"paused","public_id":"4iv-sws-5bb","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1668103533","monitor_id":102668860,"type":"api","created_at":"2022-11-10T18:05:35.718784+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-11-10T18:05:35.718784+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"First api step","request":{"body":"this is a body","allow_insecure":true,"certificate":{"cert":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"url":"https://www.datadoghq.com","follow_redirects":true,"basicAuth":{"accessKey":"sigv4-access-key","sessionToken":"sigv4-session-token","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","type":"sigv4","region":"sigv4-region"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"proxy":{"url":"https://proxy.url","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"}},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"kri-weq-6i2","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"3cx-nv5-4b3","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"0330cdb3-bc53-4657-b804-860a7745718a","name":"VARIABLE_NAME"}]},"options":{"restricted_roles":["4625d45c-6122-11ed-b3a1-da7ad0900002"],"min_location_failed":1,"tick_every":900}} + headers: + Content-Type: + - application/json + status: 200 OK + code: 200 + duration: "" +- request: + body: | + {"public_ids":["4iv-sws-5bb"]} form: {} headers: Accept: @@ -190,7 +261,7 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"deleted_at":"2022-11-10T14:56:00.040530+00:00","public_id":"gxf-4yx-uqd"}]} + {"deleted_tests":[{"deleted_at":"2022-11-10T18:05:37.396515+00:00","public_id":"4iv-sws-5bb"}]} headers: Content-Type: - application/json @@ -203,7 +274,7 @@ interactions: headers: Accept: - '*/*' - url: https://api.datadoghq.com/api/v1/synthetics/variables/ed8d2a13-bc07-4a3b-aadb-0e01fb16630f + url: https://api.datadoghq.com/api/v1/synthetics/variables/0330cdb3-bc53-4657-b804-860a7745718a method: DELETE response: body: "" @@ -213,13 +284,29 @@ interactions: status: 200 OK code: 200 duration: "" +- request: + body: "" + form: {} + headers: + Accept: + - '*/*' + url: https://api.datadoghq.com/api/v2/roles/4625d45c-6122-11ed-b3a1-da7ad0900002 + method: DELETE + response: + body: "" + headers: + Content-Type: + - text/html; charset=utf-8 + status: 204 No Content + code: 204 + duration: "" - request: body: "" form: {} headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/variables/ed8d2a13-bc07-4a3b-aadb-0e01fb16630f + url: https://api.datadoghq.com/api/v1/synthetics/variables/0330cdb3-bc53-4657-b804-860a7745718a method: GET response: body: '{"errors":["Synthetics global variable not found"]}' @@ -235,7 +322,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/gxf-4yx-uqd + url: https://api.datadoghq.com/api/v1/synthetics/tests/4iv-sws-5bb method: GET response: body: '{"errors":["Synthetics test not found"]}' diff --git a/datadog/tests/resource_datadog_synthetics_test_test.go b/datadog/tests/resource_datadog_synthetics_test_test.go index b0a809fca2..49d3e9c6cb 100644 --- a/datadog/tests/resource_datadog_synthetics_test_test.go +++ b/datadog/tests/resource_datadog_synthetics_test_test.go @@ -3762,6 +3762,9 @@ func testSyntheticsTestExists(accProvider func() (*schema.Provider, error)) reso auth := providerConf.Auth for _, r := range s.RootModule().Resources { + if r.Type != "datadog_synthetics_test" { + continue + } if _, _, err := apiInstances.GetSyntheticsApiV1().GetTest(auth, r.Primary.ID); err != nil { return fmt.Errorf("received an error retrieving synthetics test %s", err) }