diff --git a/datadog/data_source_datadog_synthetics_test_.go b/datadog/data_source_datadog_synthetics_test_.go index 91e5bd02f..c2b32afd7 100644 --- a/datadog/data_source_datadog_synthetics_test_.go +++ b/datadog/data_source_datadog_synthetics_test_.go @@ -3,8 +3,6 @@ package datadog import ( "context" - "github.com/terraform-providers/terraform-provider-datadog/datadog/internal/utils" - "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" @@ -51,24 +49,22 @@ func dataSourceDatadogSyntheticsTestRead(ctx context.Context, d *schema.Resource apiInstances := providerConf.DatadogApiInstances auth := providerConf.Auth - tests, httpresp, err := apiInstances.GetSyntheticsApiV1().ListTests(auth) - if err != nil { - return utils.TranslateClientErrorDiag(err, httpresp, "error getting synthetic tests") - } - urlRegex := regexp.MustCompile(`https:\/\/(.*)\.(datadoghq|ddog-gov)\.(com|eu)\/synthetics\/details\/`) searchedId := urlRegex.ReplaceAllString(d.Get("test_id").(string), "") - for _, test := range tests.Tests { - if test.GetPublicId() == searchedId { - d.SetId(test.GetPublicId()) - d.Set("name", test.GetName()) - d.Set("tags", test.GetTags()) - d.Set("url", test.GetConfig().Request.GetUrl()) - - return nil - } + if test, _, err := apiInstances.GetSyntheticsApiV1().GetAPITest(auth, searchedId); err == nil { + d.SetId(test.GetPublicId()) + d.Set("name", test.GetName()) + d.Set("tags", test.GetTags()) + d.Set("url", test.Config.Request.GetUrl()) + } else if test, _, err := apiInstances.GetSyntheticsApiV1().GetBrowserTest(auth, searchedId); err == nil { + d.SetId(test.GetPublicId()) + d.Set("name", test.GetName()) + d.Set("tags", test.GetTags()) + d.Set("url", test.Config.Request.GetUrl()) + } else { + return diag.Errorf("Couldn't retrieve synthetic test with id %s", searchedId) } - return diag.Errorf("Couldn't find synthetic test with id %s", searchedId) + return nil } diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsTest.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsTest.freeze index 0f6196e81..0f68df353 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsTest.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsTest.freeze @@ -1 +1 @@ -2023-08-22T16:44:43.052494-04:00 \ No newline at end of file +2023-08-23T13:59:24.944112-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsTest.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsTest.yaml index b5996a134..51fcc78bc 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsTest.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsTest.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"locations":["aws:ap-northeast-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSTEST_LOCAL_1692737083","options":{"min_location_failed":1,"tick_every":900},"status":"live","subtype":"http","tags":["env:prod","foo"],"type":"api"} + {"config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"locations":["aws:ap-northeast-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSTEST_LOCAL_1692813564","options":{"min_location_failed":1,"tick_every":900},"status":"live","subtype":"http","tags":["env:prod","foo"],"type":"api"} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"public_id":"6xd-d2x-r95","name":"TF_TESTACCDATADOGSYNTHETICSTEST_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.058616+00:00","modified_at":"2023-08-22T20:44:45.058616+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","created_by":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"},"deleted_at":null,"monitor_id":130118838,"org_id":321813,"modified_by":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} + {"public_id":"kaa-uep-guh","name":"TF_TESTACCDATADOGSYNTHETICSTEST_LOCAL_1692813564","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-23T17:59:26.755102+00:00","modified_at":"2023-08-23T17:59:26.755102+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","created_by":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"},"deleted_at":null,"monitor_id":130183432,"org_id":321813,"modified_by":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/6xd-d2x-r95 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/kaa-uep-guh method: GET response: body: | - {"public_id":"6xd-d2x-r95","name":"TF_TESTACCDATADOGSYNTHETICSTEST_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.058616+00:00","modified_at":"2023-08-22T20:44:45.058616+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130118838,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} + {"public_id":"kaa-uep-guh","name":"TF_TESTACCDATADOGSYNTHETICSTEST_LOCAL_1692813564","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-23T17:59:26.755102+00:00","modified_at":"2023-08-23T17:59:26.755102+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130183432,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} headers: Content-Type: - application/json @@ -44,11 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/kaa-uep-guh method: GET response: body: | - {"tests":[{"public_id":"888-nvp-kbw","name":"tf-TestAccDatadogSyntheticsTestBrowserMML_Basic-local-1689951468-updated","status":"paused","type":"browser","tags":["foo:bar","baz"],"created_at":"2023-07-21T14:57:51.688079+00:00","modified_at":"2023-07-21T14:58:21.332326+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":126283369,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"i9r-v4f-v3u","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1689951491-updated-rumsettings","status":"live","type":"browser","tags":["foo:bar","buz"],"created_at":"2023-07-21T14:58:17.635359+00:00","modified_at":"2023-08-11T08:12:12.150913+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com"},"setCookie":"","variables":[{"example":"5436","name":"MY_PATTERN_VAR","pattern":"{{numeric(4)}}","secure":false,"type":"text"}]},"message":"Notify @pagerduty","options":{"device_ids":["chrome.laptop_large","chrome.tablet"],"ignoreServerCertificateError":false,"disableCors":false,"disableCsp":false,"noScreenshot":false,"tick_every":1800,"min_failure_duration":10,"min_location_failed":1,"retry":{"count":3,"interval":500},"monitor_options":{"renotify_interval":120},"ci":{"executionRule":"skipped"},"rumSettings":{"isEnabled":false},"enableProfiling":false,"enableSecurityTesting":false},"locations":["aws:eu-central-1"],"monitor_id":126283421,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"r33-n9f-h22","name":"tf-TestAccDatadogSyntheticsTestBrowserUserLocator_Basic-local-1692737083","status":"paused","type":"browser","tags":["foo:bar"],"created_at":"2023-08-22T20:44:44.911989+00:00","modified_at":"2023-08-22T20:44:44.911989+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118835,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"42u-7ez-6b3","name":"tf-TestAccDatadogSyntheticsTestBrowserMML_Basic-local-1692737083","status":"paused","type":"browser","tags":["foo:bar","baz"],"created_at":"2023-08-22T20:44:44.966000+00:00","modified_at":"2023-08-22T20:44:44.966000+00:00","config":{"assertions":[],"configVariables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"monitor_options":{"renotify_interval":120,"on_missing_data":"show_no_data","notify_audit":false,"new_host_delay":300,"include_tags":true},"retry":{"count":2,"interval":300},"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118837,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"by5-mft-52p","name":"TF_TESTACCDATADOGSYNTHETICSTESTWITHURL_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.008227+00:00","modified_at":"2023-08-22T20:44:45.008227+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130118836,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"6xd-d2x-r95","name":"TF_TESTACCDATADOGSYNTHETICSTEST_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.058616+00:00","modified_at":"2023-08-22T20:44:45.058616+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130118838,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"22n-pbu-2w8","name":"tf-TestAccDatadogSyntheticsTestBrowserUserLocator_NoElement-local-1692737083","status":"paused","type":"browser","tags":["foo:bar"],"created_at":"2023-08-22T20:44:45.089993+00:00","modified_at":"2023-08-22T20:44:45.089993+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118839,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}}],"total":7} + {"public_id":"kaa-uep-guh","name":"TF_TESTACCDATADOGSYNTHETICSTEST_LOCAL_1692813564","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-23T17:59:26.755102+00:00","modified_at":"2023-08-23T17:59:26.755102+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130183432,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} headers: Content-Type: - application/json @@ -61,11 +61,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/kaa-uep-guh method: GET response: body: | - {"tests":[{"public_id":"888-nvp-kbw","name":"tf-TestAccDatadogSyntheticsTestBrowserMML_Basic-local-1689951468-updated","status":"paused","type":"browser","tags":["foo:bar","baz"],"created_at":"2023-07-21T14:57:51.688079+00:00","modified_at":"2023-07-21T14:58:21.332326+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":126283369,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"i9r-v4f-v3u","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1689951491-updated-rumsettings","status":"live","type":"browser","tags":["foo:bar","buz"],"created_at":"2023-07-21T14:58:17.635359+00:00","modified_at":"2023-08-11T08:12:12.150913+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com"},"setCookie":"","variables":[{"example":"5436","name":"MY_PATTERN_VAR","pattern":"{{numeric(4)}}","secure":false,"type":"text"}]},"message":"Notify @pagerduty","options":{"device_ids":["chrome.laptop_large","chrome.tablet"],"ignoreServerCertificateError":false,"disableCors":false,"disableCsp":false,"noScreenshot":false,"tick_every":1800,"min_failure_duration":10,"min_location_failed":1,"retry":{"count":3,"interval":500},"monitor_options":{"renotify_interval":120},"ci":{"executionRule":"skipped"},"rumSettings":{"isEnabled":false},"enableProfiling":false,"enableSecurityTesting":false},"locations":["aws:eu-central-1"],"monitor_id":126283421,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"r33-n9f-h22","name":"tf-TestAccDatadogSyntheticsTestBrowserUserLocator_Basic-local-1692737083","status":"paused","type":"browser","tags":["foo:bar"],"created_at":"2023-08-22T20:44:44.911989+00:00","modified_at":"2023-08-22T20:44:44.911989+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118835,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"42u-7ez-6b3","name":"tf-TestAccDatadogSyntheticsTestBrowserMML_Basic-local-1692737083","status":"paused","type":"browser","tags":["foo:bar","baz"],"created_at":"2023-08-22T20:44:44.966000+00:00","modified_at":"2023-08-22T20:44:44.966000+00:00","config":{"assertions":[],"configVariables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"monitor_options":{"renotify_interval":120,"on_missing_data":"show_no_data","notify_audit":false,"new_host_delay":300,"include_tags":true},"retry":{"count":2,"interval":300},"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118837,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"by5-mft-52p","name":"TF_TESTACCDATADOGSYNTHETICSTESTWITHURL_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.008227+00:00","modified_at":"2023-08-22T20:44:45.008227+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130118836,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"6xd-d2x-r95","name":"TF_TESTACCDATADOGSYNTHETICSTEST_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.058616+00:00","modified_at":"2023-08-22T20:44:45.058616+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130118838,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"22n-pbu-2w8","name":"tf-TestAccDatadogSyntheticsTestBrowserUserLocator_NoElement-local-1692737083","status":"paused","type":"browser","tags":["foo:bar"],"created_at":"2023-08-22T20:44:45.089993+00:00","modified_at":"2023-08-22T20:44:45.089993+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118839,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}}],"total":7} + {"public_id":"kaa-uep-guh","name":"TF_TESTACCDATADOGSYNTHETICSTEST_LOCAL_1692813564","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-23T17:59:26.755102+00:00","modified_at":"2023-08-23T17:59:26.755102+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130183432,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} headers: Content-Type: - application/json @@ -78,11 +78,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/6xd-d2x-r95 + url: https://api.datadoghq.com/api/v1/synthetics/tests/kaa-uep-guh method: GET response: body: | - {"public_id":"6xd-d2x-r95","name":"TF_TESTACCDATADOGSYNTHETICSTEST_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.058616+00:00","modified_at":"2023-08-22T20:44:45.058616+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130118838,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} + {"public_id":"kaa-uep-guh","name":"TF_TESTACCDATADOGSYNTHETICSTEST_LOCAL_1692813564","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-23T17:59:26.755102+00:00","modified_at":"2023-08-23T17:59:26.755102+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130183432,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} headers: Content-Type: - application/json @@ -95,11 +95,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/6xd-d2x-r95 + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/kaa-uep-guh method: GET response: body: | - {"public_id":"6xd-d2x-r95","name":"TF_TESTACCDATADOGSYNTHETICSTEST_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.058616+00:00","modified_at":"2023-08-22T20:44:45.058616+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130118838,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} + {"public_id":"kaa-uep-guh","name":"TF_TESTACCDATADOGSYNTHETICSTEST_LOCAL_1692813564","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-23T17:59:26.755102+00:00","modified_at":"2023-08-23T17:59:26.755102+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130183432,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} headers: Content-Type: - application/json @@ -112,11 +112,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/kaa-uep-guh method: GET response: body: | - {"tests":[{"public_id":"888-nvp-kbw","name":"tf-TestAccDatadogSyntheticsTestBrowserMML_Basic-local-1689951468-updated","status":"paused","type":"browser","tags":["foo:bar","baz"],"created_at":"2023-07-21T14:57:51.688079+00:00","modified_at":"2023-07-21T14:58:21.332326+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":126283369,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"i9r-v4f-v3u","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1689951491-updated-rumsettings","status":"live","type":"browser","tags":["foo:bar","buz"],"created_at":"2023-07-21T14:58:17.635359+00:00","modified_at":"2023-08-11T08:12:12.150913+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com"},"setCookie":"","variables":[{"example":"5436","name":"MY_PATTERN_VAR","pattern":"{{numeric(4)}}","secure":false,"type":"text"}]},"message":"Notify @pagerduty","options":{"device_ids":["chrome.laptop_large","chrome.tablet"],"ignoreServerCertificateError":false,"disableCors":false,"disableCsp":false,"noScreenshot":false,"tick_every":1800,"min_failure_duration":10,"min_location_failed":1,"retry":{"count":3,"interval":500},"monitor_options":{"renotify_interval":120},"ci":{"executionRule":"skipped"},"rumSettings":{"isEnabled":false},"enableProfiling":false,"enableSecurityTesting":false},"locations":["aws:eu-central-1"],"monitor_id":126283421,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"r33-n9f-h22","name":"tf-TestAccDatadogSyntheticsTestBrowserUserLocator_Basic-local-1692737083","status":"paused","type":"browser","tags":["foo:bar"],"created_at":"2023-08-22T20:44:44.911989+00:00","modified_at":"2023-08-22T20:44:44.911989+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118835,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"42u-7ez-6b3","name":"tf-TestAccDatadogSyntheticsTestBrowserMML_Basic-local-1692737083","status":"paused","type":"browser","tags":["foo:bar","baz"],"created_at":"2023-08-22T20:44:44.966000+00:00","modified_at":"2023-08-22T20:44:44.966000+00:00","config":{"assertions":[],"configVariables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"monitor_options":{"renotify_interval":120,"on_missing_data":"show_no_data","notify_audit":false,"new_host_delay":300,"include_tags":true},"retry":{"count":2,"interval":300},"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118837,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"by5-mft-52p","name":"TF_TESTACCDATADOGSYNTHETICSTESTWITHURL_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.008227+00:00","modified_at":"2023-08-22T20:44:45.008227+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130118836,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"6xd-d2x-r95","name":"TF_TESTACCDATADOGSYNTHETICSTEST_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.058616+00:00","modified_at":"2023-08-22T20:44:45.058616+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130118838,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"22n-pbu-2w8","name":"tf-TestAccDatadogSyntheticsTestBrowserUserLocator_NoElement-local-1692737083","status":"paused","type":"browser","tags":["foo:bar"],"created_at":"2023-08-22T20:44:45.089993+00:00","modified_at":"2023-08-22T20:44:45.089993+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118839,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"8hg-yuz-94j","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1692737083","status":"paused","type":"api","tags":["multistep"],"created_at":"2023-08-22T20:44:45.621195+00:00","modified_at":"2023-08-22T20:44:45.621195+00:00","config":{"assertions":[],"configVariables":[{"id":"08b9e330-8c4c-4c5a-ad78-e08d408a6865","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":".*"},"secure":true,"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":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"follow_redirects":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","persistCookies":false,"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","id":"iif-ni5-mii"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Second api step","request":{"allow_insecure":true,"basicAuth":{"accessTokenUrl":"https://token.datadoghq.com","audience":"audience","clientId":"client-id","clientSecret":"client-secret","scope":"scope","tokenApiAuthentication":"header","type":"oauth-client"},"body":"","follow_redirects":true,"method":"GET","persistCookies":false,"timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http","id":"w5b-7ut-x7y"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Third api step","request":{"allow_insecure":true,"basicAuth":{"accessTokenUrl":"https://token.datadoghq.com","audience":"audience","clientId":"client-id","clientSecret":"client-secret","password":"password","resource":"resource","scope":"scope","tokenApiAuthentication":"body","type":"oauth-rop","username":"username"},"body":"","follow_redirects":true,"method":"GET","persistCookies":false,"timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http","id":"rp6-z7u-ys4"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Fourth api step","request":{"allow_insecure":true,"basicAuth":{"password":"password","type":"digest","username":"username"},"body":"","follow_redirects":true,"method":"GET","persistCookies":false,"timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http","id":"cpy-baj-ivf"}]},"message":"Notify @datadog.user","options":{"min_location_failed":1,"restricted_roles":["b9fb018c-412c-11ee-a939-da7ad0900002"],"tick_every":900},"locations":["aws:eu-central-1"],"subtype":"multi","monitor_id":130118840,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}}],"total":8} + {"public_id":"kaa-uep-guh","name":"TF_TESTACCDATADOGSYNTHETICSTEST_LOCAL_1692813564","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-23T17:59:26.755102+00:00","modified_at":"2023-08-23T17:59:26.755102+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130183432,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} headers: Content-Type: - application/json @@ -129,11 +129,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/kaa-uep-guh method: GET response: body: | - {"tests":[{"public_id":"888-nvp-kbw","name":"tf-TestAccDatadogSyntheticsTestBrowserMML_Basic-local-1689951468-updated","status":"paused","type":"browser","tags":["foo:bar","baz"],"created_at":"2023-07-21T14:57:51.688079+00:00","modified_at":"2023-07-21T14:58:21.332326+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":126283369,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"i9r-v4f-v3u","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1689951491-updated-rumsettings","status":"live","type":"browser","tags":["foo:bar","buz"],"created_at":"2023-07-21T14:58:17.635359+00:00","modified_at":"2023-08-11T08:12:12.150913+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com"},"setCookie":"","variables":[{"example":"5436","name":"MY_PATTERN_VAR","pattern":"{{numeric(4)}}","secure":false,"type":"text"}]},"message":"Notify @pagerduty","options":{"device_ids":["chrome.laptop_large","chrome.tablet"],"ignoreServerCertificateError":false,"disableCors":false,"disableCsp":false,"noScreenshot":false,"tick_every":1800,"min_failure_duration":10,"min_location_failed":1,"retry":{"count":3,"interval":500},"monitor_options":{"renotify_interval":120},"ci":{"executionRule":"skipped"},"rumSettings":{"isEnabled":false},"enableProfiling":false,"enableSecurityTesting":false},"locations":["aws:eu-central-1"],"monitor_id":126283421,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"r33-n9f-h22","name":"tf-TestAccDatadogSyntheticsTestBrowserUserLocator_Basic-local-1692737083","status":"paused","type":"browser","tags":["foo:bar"],"created_at":"2023-08-22T20:44:44.911989+00:00","modified_at":"2023-08-22T20:44:44.911989+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118835,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"42u-7ez-6b3","name":"tf-TestAccDatadogSyntheticsTestBrowserMML_Basic-local-1692737083","status":"paused","type":"browser","tags":["foo:bar","baz"],"created_at":"2023-08-22T20:44:44.966000+00:00","modified_at":"2023-08-22T20:44:44.966000+00:00","config":{"assertions":[],"configVariables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"monitor_options":{"renotify_interval":120,"on_missing_data":"show_no_data","notify_audit":false,"new_host_delay":300,"include_tags":true},"retry":{"count":2,"interval":300},"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118837,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"by5-mft-52p","name":"TF_TESTACCDATADOGSYNTHETICSTESTWITHURL_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.008227+00:00","modified_at":"2023-08-22T20:44:45.008227+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130118836,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"6xd-d2x-r95","name":"TF_TESTACCDATADOGSYNTHETICSTEST_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.058616+00:00","modified_at":"2023-08-22T20:44:45.058616+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130118838,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"22n-pbu-2w8","name":"tf-TestAccDatadogSyntheticsTestBrowserUserLocator_NoElement-local-1692737083","status":"paused","type":"browser","tags":["foo:bar"],"created_at":"2023-08-22T20:44:45.089993+00:00","modified_at":"2023-08-22T20:44:45.089993+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118839,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"8hg-yuz-94j","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1692737083","status":"paused","type":"api","tags":["multistep"],"created_at":"2023-08-22T20:44:45.621195+00:00","modified_at":"2023-08-22T20:44:45.621195+00:00","config":{"assertions":[],"configVariables":[{"id":"08b9e330-8c4c-4c5a-ad78-e08d408a6865","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":".*"},"secure":true,"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":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"follow_redirects":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","persistCookies":false,"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","id":"iif-ni5-mii"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Second api step","request":{"allow_insecure":true,"basicAuth":{"accessTokenUrl":"https://token.datadoghq.com","audience":"audience","clientId":"client-id","clientSecret":"client-secret","scope":"scope","tokenApiAuthentication":"header","type":"oauth-client"},"body":"","follow_redirects":true,"method":"GET","persistCookies":false,"timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http","id":"w5b-7ut-x7y"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Third api step","request":{"allow_insecure":true,"basicAuth":{"accessTokenUrl":"https://token.datadoghq.com","audience":"audience","clientId":"client-id","clientSecret":"client-secret","password":"password","resource":"resource","scope":"scope","tokenApiAuthentication":"body","type":"oauth-rop","username":"username"},"body":"","follow_redirects":true,"method":"GET","persistCookies":false,"timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http","id":"rp6-z7u-ys4"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Fourth api step","request":{"allow_insecure":true,"basicAuth":{"password":"password","type":"digest","username":"username"},"body":"","follow_redirects":true,"method":"GET","persistCookies":false,"timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http","id":"cpy-baj-ivf"}]},"message":"Notify @datadog.user","options":{"min_location_failed":1,"restricted_roles":["b9fb018c-412c-11ee-a939-da7ad0900002"],"tick_every":900},"locations":["aws:eu-central-1"],"subtype":"multi","monitor_id":130118840,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}}],"total":8} + {"public_id":"kaa-uep-guh","name":"TF_TESTACCDATADOGSYNTHETICSTEST_LOCAL_1692813564","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-23T17:59:26.755102+00:00","modified_at":"2023-08-23T17:59:26.755102+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130183432,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} headers: Content-Type: - application/json @@ -142,7 +142,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["6xd-d2x-r95"]} + {"public_ids":["kaa-uep-guh"]} form: {} headers: Accept: @@ -153,7 +153,7 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"public_id":"6xd-d2x-r95","deleted_at":"2023-08-22T20:44:46.839538+00:00"}]} + {"deleted_tests":[{"public_id":"kaa-uep-guh","deleted_at":"2023-08-23T17:59:28.894394+00:00"}]} headers: Content-Type: - application/json @@ -166,7 +166,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/6xd-d2x-r95 + url: https://api.datadoghq.com/api/v1/synthetics/tests/kaa-uep-guh method: GET response: body: '{"errors":["Synthetics test not found"]}' @@ -182,7 +182,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/6xd-d2x-r95 + url: https://api.datadoghq.com/api/v1/synthetics/tests/kaa-uep-guh method: GET response: body: '{"errors":["Synthetics test not found"]}' diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestWithUrl.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestWithUrl.freeze index 46a73f033..259530d77 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestWithUrl.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestWithUrl.freeze @@ -1 +1 @@ -2023-08-22T16:44:43.051061-04:00 \ No newline at end of file +2023-08-23T13:59:24.941214-04:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestWithUrl.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestWithUrl.yaml index 40bcfa135..c7d8eec63 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestWithUrl.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestWithUrl.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"locations":["aws:ap-northeast-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSTESTWITHURL_LOCAL_1692737083","options":{"min_location_failed":1,"tick_every":900},"status":"live","subtype":"http","tags":["env:prod","foo"],"type":"api"} + {"config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"locations":["aws:ap-northeast-1"],"message":"","name":"TF_TESTACCDATADOGSYNTHETICSTESTWITHURL_LOCAL_1692813564","options":{"min_location_failed":1,"tick_every":900},"status":"live","subtype":"http","tags":["env:prod","foo"],"type":"api"} form: {} headers: Accept: @@ -14,7 +14,7 @@ interactions: method: POST response: body: | - {"public_id":"by5-mft-52p","name":"TF_TESTACCDATADOGSYNTHETICSTESTWITHURL_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.008227+00:00","modified_at":"2023-08-22T20:44:45.008227+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","created_by":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"},"deleted_at":null,"monitor_id":130118836,"org_id":321813,"modified_by":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} + {"public_id":"fzv-7iu-dem","name":"TF_TESTACCDATADOGSYNTHETICSTESTWITHURL_LOCAL_1692813564","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-23T17:59:26.949770+00:00","modified_at":"2023-08-23T17:59:26.949770+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","created_by":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"},"deleted_at":null,"monitor_id":130183436,"org_id":321813,"modified_by":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} headers: Content-Type: - application/json @@ -27,11 +27,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/by5-mft-52p + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/fzv-7iu-dem method: GET response: body: | - {"public_id":"by5-mft-52p","name":"TF_TESTACCDATADOGSYNTHETICSTESTWITHURL_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.008227+00:00","modified_at":"2023-08-22T20:44:45.008227+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130118836,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} + {"public_id":"fzv-7iu-dem","name":"TF_TESTACCDATADOGSYNTHETICSTESTWITHURL_LOCAL_1692813564","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-23T17:59:26.949770+00:00","modified_at":"2023-08-23T17:59:26.949770+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130183436,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} headers: Content-Type: - application/json @@ -44,11 +44,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/fzv-7iu-dem method: GET response: body: | - {"tests":[{"public_id":"888-nvp-kbw","name":"tf-TestAccDatadogSyntheticsTestBrowserMML_Basic-local-1689951468-updated","status":"paused","type":"browser","tags":["foo:bar","baz"],"created_at":"2023-07-21T14:57:51.688079+00:00","modified_at":"2023-07-21T14:58:21.332326+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":126283369,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"i9r-v4f-v3u","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1689951491-updated-rumsettings","status":"live","type":"browser","tags":["foo:bar","buz"],"created_at":"2023-07-21T14:58:17.635359+00:00","modified_at":"2023-08-11T08:12:12.150913+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com"},"setCookie":"","variables":[{"example":"5436","name":"MY_PATTERN_VAR","pattern":"{{numeric(4)}}","secure":false,"type":"text"}]},"message":"Notify @pagerduty","options":{"device_ids":["chrome.laptop_large","chrome.tablet"],"ignoreServerCertificateError":false,"disableCors":false,"disableCsp":false,"noScreenshot":false,"tick_every":1800,"min_failure_duration":10,"min_location_failed":1,"retry":{"count":3,"interval":500},"monitor_options":{"renotify_interval":120},"ci":{"executionRule":"skipped"},"rumSettings":{"isEnabled":false},"enableProfiling":false,"enableSecurityTesting":false},"locations":["aws:eu-central-1"],"monitor_id":126283421,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"r33-n9f-h22","name":"tf-TestAccDatadogSyntheticsTestBrowserUserLocator_Basic-local-1692737083","status":"paused","type":"browser","tags":["foo:bar"],"created_at":"2023-08-22T20:44:44.911989+00:00","modified_at":"2023-08-22T20:44:44.911989+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118835,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"42u-7ez-6b3","name":"tf-TestAccDatadogSyntheticsTestBrowserMML_Basic-local-1692737083","status":"paused","type":"browser","tags":["foo:bar","baz"],"created_at":"2023-08-22T20:44:44.966000+00:00","modified_at":"2023-08-22T20:44:44.966000+00:00","config":{"assertions":[],"configVariables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"monitor_options":{"renotify_interval":120,"on_missing_data":"show_no_data","notify_audit":false,"new_host_delay":300,"include_tags":true},"retry":{"count":2,"interval":300},"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118837,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"by5-mft-52p","name":"TF_TESTACCDATADOGSYNTHETICSTESTWITHURL_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.008227+00:00","modified_at":"2023-08-22T20:44:45.008227+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130118836,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"6xd-d2x-r95","name":"TF_TESTACCDATADOGSYNTHETICSTEST_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.058616+00:00","modified_at":"2023-08-22T20:44:45.058616+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130118838,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"22n-pbu-2w8","name":"tf-TestAccDatadogSyntheticsTestBrowserUserLocator_NoElement-local-1692737083","status":"paused","type":"browser","tags":["foo:bar"],"created_at":"2023-08-22T20:44:45.089993+00:00","modified_at":"2023-08-22T20:44:45.089993+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118839,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}}],"total":7} + {"public_id":"fzv-7iu-dem","name":"TF_TESTACCDATADOGSYNTHETICSTESTWITHURL_LOCAL_1692813564","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-23T17:59:26.949770+00:00","modified_at":"2023-08-23T17:59:26.949770+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130183436,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} headers: Content-Type: - application/json @@ -61,11 +61,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/fzv-7iu-dem method: GET response: body: | - {"tests":[{"public_id":"888-nvp-kbw","name":"tf-TestAccDatadogSyntheticsTestBrowserMML_Basic-local-1689951468-updated","status":"paused","type":"browser","tags":["foo:bar","baz"],"created_at":"2023-07-21T14:57:51.688079+00:00","modified_at":"2023-07-21T14:58:21.332326+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":126283369,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"i9r-v4f-v3u","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1689951491-updated-rumsettings","status":"live","type":"browser","tags":["foo:bar","buz"],"created_at":"2023-07-21T14:58:17.635359+00:00","modified_at":"2023-08-11T08:12:12.150913+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com"},"setCookie":"","variables":[{"example":"5436","name":"MY_PATTERN_VAR","pattern":"{{numeric(4)}}","secure":false,"type":"text"}]},"message":"Notify @pagerduty","options":{"device_ids":["chrome.laptop_large","chrome.tablet"],"ignoreServerCertificateError":false,"disableCors":false,"disableCsp":false,"noScreenshot":false,"tick_every":1800,"min_failure_duration":10,"min_location_failed":1,"retry":{"count":3,"interval":500},"monitor_options":{"renotify_interval":120},"ci":{"executionRule":"skipped"},"rumSettings":{"isEnabled":false},"enableProfiling":false,"enableSecurityTesting":false},"locations":["aws:eu-central-1"],"monitor_id":126283421,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"r33-n9f-h22","name":"tf-TestAccDatadogSyntheticsTestBrowserUserLocator_Basic-local-1692737083","status":"paused","type":"browser","tags":["foo:bar"],"created_at":"2023-08-22T20:44:44.911989+00:00","modified_at":"2023-08-22T20:44:44.911989+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118835,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"42u-7ez-6b3","name":"tf-TestAccDatadogSyntheticsTestBrowserMML_Basic-local-1692737083","status":"paused","type":"browser","tags":["foo:bar","baz"],"created_at":"2023-08-22T20:44:44.966000+00:00","modified_at":"2023-08-22T20:44:44.966000+00:00","config":{"assertions":[],"configVariables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"monitor_options":{"renotify_interval":120,"on_missing_data":"show_no_data","notify_audit":false,"new_host_delay":300,"include_tags":true},"retry":{"count":2,"interval":300},"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118837,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"by5-mft-52p","name":"TF_TESTACCDATADOGSYNTHETICSTESTWITHURL_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.008227+00:00","modified_at":"2023-08-22T20:44:45.008227+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130118836,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"6xd-d2x-r95","name":"TF_TESTACCDATADOGSYNTHETICSTEST_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.058616+00:00","modified_at":"2023-08-22T20:44:45.058616+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130118838,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"22n-pbu-2w8","name":"tf-TestAccDatadogSyntheticsTestBrowserUserLocator_NoElement-local-1692737083","status":"paused","type":"browser","tags":["foo:bar"],"created_at":"2023-08-22T20:44:45.089993+00:00","modified_at":"2023-08-22T20:44:45.089993+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118839,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}}],"total":7} + {"public_id":"fzv-7iu-dem","name":"TF_TESTACCDATADOGSYNTHETICSTESTWITHURL_LOCAL_1692813564","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-23T17:59:26.949770+00:00","modified_at":"2023-08-23T17:59:26.949770+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130183436,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} headers: Content-Type: - application/json @@ -78,11 +78,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/by5-mft-52p + url: https://api.datadoghq.com/api/v1/synthetics/tests/fzv-7iu-dem method: GET response: body: | - {"public_id":"by5-mft-52p","name":"TF_TESTACCDATADOGSYNTHETICSTESTWITHURL_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.008227+00:00","modified_at":"2023-08-22T20:44:45.008227+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130118836,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} + {"public_id":"fzv-7iu-dem","name":"TF_TESTACCDATADOGSYNTHETICSTESTWITHURL_LOCAL_1692813564","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-23T17:59:26.949770+00:00","modified_at":"2023-08-23T17:59:26.949770+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130183436,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} headers: Content-Type: - application/json @@ -95,11 +95,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/by5-mft-52p + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/fzv-7iu-dem method: GET response: body: | - {"public_id":"by5-mft-52p","name":"TF_TESTACCDATADOGSYNTHETICSTESTWITHURL_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.008227+00:00","modified_at":"2023-08-22T20:44:45.008227+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130118836,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} + {"public_id":"fzv-7iu-dem","name":"TF_TESTACCDATADOGSYNTHETICSTESTWITHURL_LOCAL_1692813564","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-23T17:59:26.949770+00:00","modified_at":"2023-08-23T17:59:26.949770+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130183436,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} headers: Content-Type: - application/json @@ -112,11 +112,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/fzv-7iu-dem method: GET response: body: | - {"tests":[{"public_id":"888-nvp-kbw","name":"tf-TestAccDatadogSyntheticsTestBrowserMML_Basic-local-1689951468-updated","status":"paused","type":"browser","tags":["foo:bar","baz"],"created_at":"2023-07-21T14:57:51.688079+00:00","modified_at":"2023-07-21T14:58:21.332326+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":126283369,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"i9r-v4f-v3u","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1689951491-updated-rumsettings","status":"live","type":"browser","tags":["foo:bar","buz"],"created_at":"2023-07-21T14:58:17.635359+00:00","modified_at":"2023-08-11T08:12:12.150913+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com"},"setCookie":"","variables":[{"example":"5436","name":"MY_PATTERN_VAR","pattern":"{{numeric(4)}}","secure":false,"type":"text"}]},"message":"Notify @pagerduty","options":{"device_ids":["chrome.laptop_large","chrome.tablet"],"ignoreServerCertificateError":false,"disableCors":false,"disableCsp":false,"noScreenshot":false,"tick_every":1800,"min_failure_duration":10,"min_location_failed":1,"retry":{"count":3,"interval":500},"monitor_options":{"renotify_interval":120},"ci":{"executionRule":"skipped"},"rumSettings":{"isEnabled":false},"enableProfiling":false,"enableSecurityTesting":false},"locations":["aws:eu-central-1"],"monitor_id":126283421,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"r33-n9f-h22","name":"tf-TestAccDatadogSyntheticsTestBrowserUserLocator_Basic-local-1692737083","status":"paused","type":"browser","tags":["foo:bar"],"created_at":"2023-08-22T20:44:44.911989+00:00","modified_at":"2023-08-22T20:44:44.911989+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118835,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"42u-7ez-6b3","name":"tf-TestAccDatadogSyntheticsTestBrowserMML_Basic-local-1692737083","status":"paused","type":"browser","tags":["foo:bar","baz"],"created_at":"2023-08-22T20:44:44.966000+00:00","modified_at":"2023-08-22T20:44:44.966000+00:00","config":{"assertions":[],"configVariables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"monitor_options":{"renotify_interval":120,"on_missing_data":"show_no_data","notify_audit":false,"new_host_delay":300,"include_tags":true},"retry":{"count":2,"interval":300},"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118837,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"by5-mft-52p","name":"TF_TESTACCDATADOGSYNTHETICSTESTWITHURL_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.008227+00:00","modified_at":"2023-08-22T20:44:45.008227+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130118836,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"6xd-d2x-r95","name":"TF_TESTACCDATADOGSYNTHETICSTEST_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.058616+00:00","modified_at":"2023-08-22T20:44:45.058616+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130118838,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"22n-pbu-2w8","name":"tf-TestAccDatadogSyntheticsTestBrowserUserLocator_NoElement-local-1692737083","status":"paused","type":"browser","tags":["foo:bar"],"created_at":"2023-08-22T20:44:45.089993+00:00","modified_at":"2023-08-22T20:44:45.089993+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118839,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"8hg-yuz-94j","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1692737083","status":"paused","type":"api","tags":["multistep"],"created_at":"2023-08-22T20:44:45.621195+00:00","modified_at":"2023-08-22T20:44:45.621195+00:00","config":{"assertions":[],"configVariables":[{"id":"08b9e330-8c4c-4c5a-ad78-e08d408a6865","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":".*"},"secure":true,"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":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"follow_redirects":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","persistCookies":false,"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","id":"iif-ni5-mii"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Second api step","request":{"allow_insecure":true,"basicAuth":{"accessTokenUrl":"https://token.datadoghq.com","audience":"audience","clientId":"client-id","clientSecret":"client-secret","scope":"scope","tokenApiAuthentication":"header","type":"oauth-client"},"body":"","follow_redirects":true,"method":"GET","persistCookies":false,"timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http","id":"w5b-7ut-x7y"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Third api step","request":{"allow_insecure":true,"basicAuth":{"accessTokenUrl":"https://token.datadoghq.com","audience":"audience","clientId":"client-id","clientSecret":"client-secret","password":"password","resource":"resource","scope":"scope","tokenApiAuthentication":"body","type":"oauth-rop","username":"username"},"body":"","follow_redirects":true,"method":"GET","persistCookies":false,"timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http","id":"rp6-z7u-ys4"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Fourth api step","request":{"allow_insecure":true,"basicAuth":{"password":"password","type":"digest","username":"username"},"body":"","follow_redirects":true,"method":"GET","persistCookies":false,"timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http","id":"cpy-baj-ivf"}]},"message":"Notify @datadog.user","options":{"min_location_failed":1,"restricted_roles":["b9fb018c-412c-11ee-a939-da7ad0900002"],"tick_every":900},"locations":["aws:eu-central-1"],"subtype":"multi","monitor_id":130118840,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}}],"total":8} + {"public_id":"fzv-7iu-dem","name":"TF_TESTACCDATADOGSYNTHETICSTESTWITHURL_LOCAL_1692813564","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-23T17:59:26.949770+00:00","modified_at":"2023-08-23T17:59:26.949770+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130183436,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} headers: Content-Type: - application/json @@ -129,11 +129,11 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/fzv-7iu-dem method: GET response: body: | - {"tests":[{"public_id":"888-nvp-kbw","name":"tf-TestAccDatadogSyntheticsTestBrowserMML_Basic-local-1689951468-updated","status":"paused","type":"browser","tags":["foo:bar","baz"],"created_at":"2023-07-21T14:57:51.688079+00:00","modified_at":"2023-07-21T14:58:21.332326+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":126283369,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"i9r-v4f-v3u","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated_RumSettings-local-1689951491-updated-rumsettings","status":"live","type":"browser","tags":["foo:bar","buz"],"created_at":"2023-07-21T14:58:17.635359+00:00","modified_at":"2023-08-11T08:12:12.150913+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","headers":{"Accept":"application/xml","X-Datadog-Trace-ID":"987654321"},"url":"https://docs.datadoghq.com"},"setCookie":"","variables":[{"example":"5436","name":"MY_PATTERN_VAR","pattern":"{{numeric(4)}}","secure":false,"type":"text"}]},"message":"Notify @pagerduty","options":{"device_ids":["chrome.laptop_large","chrome.tablet"],"ignoreServerCertificateError":false,"disableCors":false,"disableCsp":false,"noScreenshot":false,"tick_every":1800,"min_failure_duration":10,"min_location_failed":1,"retry":{"count":3,"interval":500},"monitor_options":{"renotify_interval":120},"ci":{"executionRule":"skipped"},"rumSettings":{"isEnabled":false},"enableProfiling":false,"enableSecurityTesting":false},"locations":["aws:eu-central-1"],"monitor_id":126283421,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"r33-n9f-h22","name":"tf-TestAccDatadogSyntheticsTestBrowserUserLocator_Basic-local-1692737083","status":"paused","type":"browser","tags":["foo:bar"],"created_at":"2023-08-22T20:44:44.911989+00:00","modified_at":"2023-08-22T20:44:44.911989+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118835,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"42u-7ez-6b3","name":"tf-TestAccDatadogSyntheticsTestBrowserMML_Basic-local-1692737083","status":"paused","type":"browser","tags":["foo:bar","baz"],"created_at":"2023-08-22T20:44:44.966000+00:00","modified_at":"2023-08-22T20:44:44.966000+00:00","config":{"assertions":[],"configVariables":[],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"monitor_options":{"renotify_interval":120,"on_missing_data":"show_no_data","notify_audit":false,"new_host_delay":300,"include_tags":true},"retry":{"count":2,"interval":300},"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118837,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"by5-mft-52p","name":"TF_TESTACCDATADOGSYNTHETICSTESTWITHURL_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.008227+00:00","modified_at":"2023-08-22T20:44:45.008227+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130118836,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"6xd-d2x-r95","name":"TF_TESTACCDATADOGSYNTHETICSTEST_LOCAL_1692737083","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-22T20:44:45.058616+00:00","modified_at":"2023-08-22T20:44:45.058616+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130118838,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"22n-pbu-2w8","name":"tf-TestAccDatadogSyntheticsTestBrowserUserLocator_NoElement-local-1692737083","status":"paused","type":"browser","tags":["foo:bar"],"created_at":"2023-08-22T20:44:45.089993+00:00","modified_at":"2023-08-22T20:44:45.089993+00:00","config":{"assertions":[],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.datadoghq.com"},"variables":[]},"message":"Notify @datadog.user","options":{"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900},"locations":["aws:eu-central-1"],"monitor_id":130118839,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}},{"public_id":"8hg-yuz-94j","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1692737083","status":"paused","type":"api","tags":["multistep"],"created_at":"2023-08-22T20:44:45.621195+00:00","modified_at":"2023-08-22T20:44:45.621195+00:00","config":{"assertions":[],"configVariables":[{"id":"08b9e330-8c4c-4c5a-ad78-e08d408a6865","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":".*"},"secure":true,"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":{"filename":"Provided in Terraform config"},"key":{"filename":"key"}},"follow_redirects":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","persistCookies":false,"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","id":"iif-ni5-mii"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Second api step","request":{"allow_insecure":true,"basicAuth":{"accessTokenUrl":"https://token.datadoghq.com","audience":"audience","clientId":"client-id","clientSecret":"client-secret","scope":"scope","tokenApiAuthentication":"header","type":"oauth-client"},"body":"","follow_redirects":true,"method":"GET","persistCookies":false,"timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http","id":"w5b-7ut-x7y"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Third api step","request":{"allow_insecure":true,"basicAuth":{"accessTokenUrl":"https://token.datadoghq.com","audience":"audience","clientId":"client-id","clientSecret":"client-secret","password":"password","resource":"resource","scope":"scope","tokenApiAuthentication":"body","type":"oauth-rop","username":"username"},"body":"","follow_redirects":true,"method":"GET","persistCookies":false,"timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http","id":"rp6-z7u-ys4"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Fourth api step","request":{"allow_insecure":true,"basicAuth":{"password":"password","type":"digest","username":"username"},"body":"","follow_redirects":true,"method":"GET","persistCookies":false,"timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http","id":"cpy-baj-ivf"}]},"message":"Notify @datadog.user","options":{"min_location_failed":1,"restricted_roles":["b9fb018c-412c-11ee-a939-da7ad0900002"],"tick_every":900},"locations":["aws:eu-central-1"],"subtype":"multi","monitor_id":130118840,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}}],"total":8} + {"public_id":"fzv-7iu-dem","name":"TF_TESTACCDATADOGSYNTHETICSTESTWITHURL_LOCAL_1692813564","status":"live","type":"api","tags":["env:prod","foo"],"created_at":"2023-08-23T17:59:26.949770+00:00","modified_at":"2023-08-23T17:59:26.949770+00:00","config":{"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://www.example.com"}},"message":"","options":{"min_location_failed":1,"tick_every":900},"locations":["aws:ap-northeast-1"],"subtype":"http","monitor_id":130183436,"creator":{"name":null,"handle":"frog@datadoghq.com","email":"frog@datadoghq.com"}} headers: Content-Type: - application/json @@ -142,7 +142,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["by5-mft-52p"]} + {"public_ids":["fzv-7iu-dem"]} form: {} headers: Accept: @@ -153,7 +153,7 @@ interactions: method: POST response: body: | - {"deleted_tests":[{"public_id":"by5-mft-52p","deleted_at":"2023-08-22T20:44:46.760226+00:00"}]} + {"deleted_tests":[{"public_id":"fzv-7iu-dem","deleted_at":"2023-08-23T17:59:28.716267+00:00"}]} headers: Content-Type: - application/json @@ -166,7 +166,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/by5-mft-52p + url: https://api.datadoghq.com/api/v1/synthetics/tests/fzv-7iu-dem method: GET response: body: '{"errors":["Synthetics test not found"]}' @@ -182,7 +182,7 @@ interactions: headers: Accept: - application/json - url: https://api.datadoghq.com/api/v1/synthetics/tests/by5-mft-52p + url: https://api.datadoghq.com/api/v1/synthetics/tests/fzv-7iu-dem method: GET response: body: '{"errors":["Synthetics test not found"]}'