From 7c927536955b97f0a3e43591bb77a0cd193d741b Mon Sep 17 00:00:00 2001 From: Romain Berger Date: Tue, 18 Jan 2022 10:30:39 +0100 Subject: [PATCH 1/7] Update go client --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index e4fffa30d0..d1ee4b27ed 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 v1.7.1-0.20220105102058-9648bb618bb3 + github.com/DataDog/datadog-api-client-go v1.7.1-0.20220117181002-a063366b1322 github.com/DataDog/datadog-go v4.8.3+incompatible // indirect github.com/DataDog/dd-sdk-go-testing v0.0.0-20211116174033-1cd082e322ad github.com/DataDog/sketches-go v1.2.1 // indirect diff --git a/go.sum b/go.sum index 95f23abf34..b78c2c40b9 100644 --- a/go.sum +++ b/go.sum @@ -34,8 +34,8 @@ cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9 dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/DataDog/datadog-api-client-go v1.7.1-0.20220105102058-9648bb618bb3 h1:VVj/ga7dq4EZNJgrLw9iUbw34whZgPwfEm2SqFx+H0g= -github.com/DataDog/datadog-api-client-go v1.7.1-0.20220105102058-9648bb618bb3/go.mod h1:QzaQF1cDO1/BIQG1fz14VrY+6RECUGkiwzDCtVbfP5c= +github.com/DataDog/datadog-api-client-go v1.7.1-0.20220117181002-a063366b1322 h1:GmTtIz+LTcwikkbzdfNxfqI9mNWVSmTbQaqbHyAkunE= +github.com/DataDog/datadog-api-client-go v1.7.1-0.20220117181002-a063366b1322/go.mod h1:QzaQF1cDO1/BIQG1fz14VrY+6RECUGkiwzDCtVbfP5c= 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 56ee2566b42ee8930fc63c51eb2ad32dc7f55039 Mon Sep 17 00:00:00 2001 From: Romain Berger Date: Fri, 21 Jan 2022 15:10:24 +0100 Subject: [PATCH 2/7] [Synthetics] Add support for new authentication --- datadog/resource_datadog_synthetics_test_.go | 134 +++++++++++-- ...stAccDatadogSyntheticsAPITest_Basic.freeze | 2 +- ...TestAccDatadogSyntheticsAPITest_Basic.yaml | 100 ++++++---- ...csAPITest_BasicNewAssertionsOptions.freeze | 2 +- ...ticsAPITest_BasicNewAssertionsOptions.yaml | 80 ++++---- ...AccDatadogSyntheticsAPITest_Updated.freeze | 2 +- ...stAccDatadogSyntheticsAPITest_Updated.yaml | 186 ++++++++++------- ...APITest_UpdatedNewAssertionsOptions.freeze | 2 +- ...csAPITest_UpdatedNewAssertionsOptions.yaml | 158 +++++++-------- ...atadogSyntheticsAPITest_importBasic.freeze | 2 +- ...cDatadogSyntheticsAPITest_importBasic.yaml | 112 +++++++---- ...csBrowserTestBrowserVariables_Basic.freeze | 2 +- ...ticsBrowserTestBrowserVariables_Basic.yaml | 100 ++++++---- ...cDatadogSyntheticsBrowserTest_Basic.freeze | 2 +- ...AccDatadogSyntheticsBrowserTest_Basic.yaml | 102 ++++++---- ...atadogSyntheticsBrowserTest_Updated.freeze | 2 +- ...cDatadogSyntheticsBrowserTest_Updated.yaml | 188 +++++++++++------- ...ogSyntheticsBrowserTest_importBasic.freeze | 2 +- ...adogSyntheticsBrowserTest_importBasic.yaml | 116 ++++++----- ...theticsGlobalVariableSecure_Updated.freeze | 2 +- ...yntheticsGlobalVariableSecure_Updated.yaml | 168 +++++++++------- ...dogSyntheticsTestMultistepApi_Basic.freeze | 2 +- ...tadogSyntheticsTestMultistepApi_Basic.yaml | 172 ++++++++-------- .../resource_datadog_synthetics_test_test.go | 75 ++++++- 24 files changed, 1046 insertions(+), 667 deletions(-) diff --git a/datadog/resource_datadog_synthetics_test_.go b/datadog/resource_datadog_synthetics_test_.go index cd9b938c72..2ebf6b1b03 100644 --- a/datadog/resource_datadog_synthetics_test_.go +++ b/datadog/resource_datadog_synthetics_test_.go @@ -222,17 +222,59 @@ func syntheticsTestRequestBasicAuth() *schema.Schema { MaxItems: 1, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ + "type": { + Description: "The type of basic authentication to use when performing the test.", + Type: schema.TypeString, + Optional: true, + Default: "web", + ValidateFunc: validation.StringInSlice([]string{"web", "sigv4", "ntlm"}, false), + }, "username": { Description: "Username for authentication.", Type: schema.TypeString, - Required: true, + Optional: true, }, "password": { Description: "Password for authentication.", Type: schema.TypeString, - Required: true, + Optional: true, Sensitive: true, }, + "access_key": { + Type: schema.TypeString, + Description: "Access key for the `SIGV4` authentication.", + Optional: true, + }, + "secret_key": { + Type: schema.TypeString, + Description: "Secret key for the `SIGV4` authentication.", + Optional: true, + }, + "region": { + Type: schema.TypeString, + Description: "Region for the `SIGV4` authentication.", + Optional: true, + }, + "service_name": { + Type: schema.TypeString, + Description: "Service name for the `SIGV4` authentication.", + Optional: true, + }, + "session_token": { + Type: schema.TypeString, + Description: "Session token for the `SIGV4` authentication.", + Optional: true, + }, + "domain": { + Type: schema.TypeString, + Description: "Domain for the `ntlm` authentication.", + Optional: true, + }, + "workstation": { + Type: schema.TypeString, + Description: "workstation for the `ntlm` authentication.", + Optional: true, + }, }, }, } @@ -1270,9 +1312,30 @@ func completeSyntheticsTestRequest(request datadogV1.SyntheticsTestRequest, requ if len(basicAuth) > 0 { if requestBasicAuth, ok := basicAuth[0].(map[string]interface{}); ok { - if requestBasicAuth["username"] != "" && requestBasicAuth["password"] != "" { - basicAuth := datadogV1.NewSyntheticsBasicAuth(requestBasicAuth["password"].(string), requestBasicAuth["username"].(string)) - request.SetBasicAuth(*basicAuth) + if requestBasicAuth["type"] == "web" && requestBasicAuth["username"] != "" && requestBasicAuth["password"] != "" { + basicAuth := datadogV1.NewSyntheticsBasicAuthWeb(requestBasicAuth["password"].(string), datadogV1.SYNTHETICSBASICAUTHWEBTYPE_WEB, requestBasicAuth["username"].(string)) + request.SetBasicAuth(datadogV1.SyntheticsBasicAuthWebAsSyntheticsBasicAuth(basicAuth)) + } + + if requestBasicAuth["type"] == "sigv4" && requestBasicAuth["access_key"] != "" && requestBasicAuth["secret_key"] != "" { + basicAuth := datadogV1.NewSyntheticsBasicAuthSigv4(requestBasicAuth["access_key"].(string), requestBasicAuth["secret_key"].(string), datadogV1.SYNTHETICSBASICAUTHSIGV4TYPE_SIGV4) + + basicAuth.SetRegion(requestBasicAuth["region"].(string)) + basicAuth.SetServiceName(requestBasicAuth["service_name"].(string)) + basicAuth.SetSessionToken(requestBasicAuth["session_token"].(string)) + + request.SetBasicAuth(datadogV1.SyntheticsBasicAuthSigv4AsSyntheticsBasicAuth(basicAuth)) + } + + if requestBasicAuth["type"] == "ntlm" { + basicAuth := datadogV1.NewSyntheticsBasicAuthNTLM(datadogV1.SYNTHETICSBASICAUTHNTLMTYPE_NTLM) + + basicAuth.SetUsername(requestBasicAuth["username"].(string)) + basicAuth.SetPassword(requestBasicAuth["password"].(string)) + basicAuth.SetDomain(requestBasicAuth["domain"].(string)) + basicAuth.SetWorkstation(requestBasicAuth["workstation"].(string)) + + request.SetBasicAuth(datadogV1.SyntheticsBasicAuthNTLMAsSyntheticsBasicAuth(basicAuth)) } } } @@ -1417,12 +1480,17 @@ func buildSyntheticsBrowserTestStruct(d *schema.ResourceData) *datadogV1.Synthet } } - if username, ok := d.GetOk("request_basicauth.0.username"); ok { - if password, ok := d.GetOk("request_basicauth.0.password"); ok { - basicAuth := datadogV1.NewSyntheticsBasicAuth(password.(string), username.(string)) - request.SetBasicAuth(*basicAuth) + if basicAuthType, ok := d.GetOk("request_basicauth.0.type"); ok { + if basicAuthType == "web" { + if username, ok := d.GetOk("request_basicauth.0.username"); ok { + if password, ok := d.GetOk("request_basicauth.0.password"); ok { + basicAuth := datadogV1.NewSyntheticsBasicAuthWeb(password.(string), datadogV1.SYNTHETICSBASICAUTHWEBTYPE_WEB, username.(string)) + request.SetBasicAuth(datadogV1.SyntheticsBasicAuthWebAsSyntheticsBasicAuth(basicAuth)) + } + } } } + if attr, ok := d.GetOk("request_headers"); ok { headers := attr.(map[string]interface{}) if len(headers) > 0 { @@ -1746,6 +1814,39 @@ func buildLocalAssertions(actualAssertions []datadogV1.SyntheticsAssertion) (loc return localAssertions, nil } +func buildLocalBasicAuth(basicAuth *datadogV1.SyntheticsBasicAuth) map[string]string { + localAuth := make(map[string]string) + + if basicAuth.SyntheticsBasicAuthWeb != nil { + basicAuthWeb := basicAuth.SyntheticsBasicAuthWeb + + localAuth["username"] = basicAuthWeb.Username + localAuth["password"] = basicAuthWeb.Password + localAuth["type"] = "web" + } + + if basicAuth.SyntheticsBasicAuthSigv4 != nil { + basicAuthSigv4 := basicAuth.SyntheticsBasicAuthSigv4 + localAuth["access_key"] = basicAuthSigv4.AccessKey + localAuth["secret_key"] = basicAuthSigv4.SecretKey + localAuth["region"] = *basicAuthSigv4.Region + localAuth["session_token"] = *basicAuthSigv4.SessionToken + localAuth["service_name"] = *basicAuthSigv4.ServiceName + localAuth["type"] = "sigv4" + } + + if basicAuth.SyntheticsBasicAuthNTLM != nil { + basicAuthNtlm := basicAuth.SyntheticsBasicAuthNTLM + localAuth["username"] = *basicAuthNtlm.Username + localAuth["password"] = *basicAuthNtlm.Password + localAuth["domain"] = *basicAuthNtlm.Domain + localAuth["workstation"] = *basicAuthNtlm.Workstation + localAuth["type"] = "ntlm" + } + + return localAuth +} + func buildExtractedValues(stepExtractedValues []interface{}) []datadogV1.SyntheticsParsingOptions { values := make([]datadogV1.SyntheticsParsingOptions, len(stepExtractedValues)) @@ -1817,9 +1918,8 @@ func updateSyntheticsBrowserTestLocalState(d *schema.ResourceData, syntheticsTes return diag.FromErr(err) } if basicAuth, ok := actualRequest.GetBasicAuthOk(); ok { - localAuth := make(map[string]string) - localAuth["username"] = basicAuth.Username - localAuth["password"] = basicAuth.Password + localAuth := buildLocalBasicAuth(basicAuth) + if err := d.Set("request_basicauth", []map[string]string{localAuth}); err != nil { return diag.FromErr(err) } @@ -2064,10 +2164,10 @@ func updateSyntheticsAPITestLocalState(d *schema.ResourceData, syntheticsTest *d if err := d.Set("request_query", actualRequest.GetQuery()); err != nil { return diag.FromErr(err) } + if basicAuth, ok := actualRequest.GetBasicAuthOk(); ok { - localAuth := make(map[string]string) - localAuth["username"] = basicAuth.Username - localAuth["password"] = basicAuth.Password + localAuth := buildLocalBasicAuth(basicAuth) + if err := d.Set("request_basicauth", []map[string]string{localAuth}); err != nil { return diag.FromErr(err) } @@ -2165,9 +2265,7 @@ func updateSyntheticsAPITestLocalState(d *schema.ResourceData, syntheticsTest *d localStep["request_query"] = stepRequest.GetQuery() if basicAuth, ok := stepRequest.GetBasicAuthOk(); ok { - localAuth := make(map[string]string) - localAuth["username"] = basicAuth.Username - localAuth["password"] = basicAuth.Password + localAuth := buildLocalBasicAuth(basicAuth) localStep["request_basicauth"] = []map[string]string{localAuth} } diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze index f3264247fe..19efd8d660 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze @@ -1 +1 @@ -2021-12-20T13:23:08.635939-05:00 \ No newline at end of file +2022-01-21T12:01:57.394416+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml index 649d65e983..7e705ebeef 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml @@ -3,23 +3,23 @@ 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":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","noSavingResponseBody":true,"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1640024588","options":{"allow_insecure":true,"follow_redirects":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1640024588-monitor","monitor_priority":5,"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":"1234566789"},"method":"GET","noSavingResponseBody":true,"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917","options":{"allow_insecure":true,"follow_redirects":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917-monitor","monitor_priority":5,"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: - application/json Content-Length: - - "1043" + - "1181" Content-Type: - application/json Dd-Operation-Id: - CreateSyntheticsAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/api method: POST response: - body: '{"status":"paused","public_id":"yce-xdt-siz","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1640024588","monitor_id":58556690,"type":"api","created_at":"2021-12-20T18:23:11.691248+00:00","modified_at":"2021-12-20T18:23:11.691248+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1640024588-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"xv5-qf3-uye","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917","monitor_id":61770516,"type":"api","created_at":"2022-01-21T11:01:59.444205+00:00","modified_at":"2022-01-21T11:01:59.444205+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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -30,7 +30,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:11 GMT + - Fri, 21 Jan 2022 11:01:59 GMT Pragma: - no-cache Strict-Transport-Security: @@ -43,12 +43,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_create_test X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - "11996" X-Ratelimit-Reset: - - "50" + - "1" status: 200 OK code: 200 duration: "" @@ -61,11 +63,11 @@ interactions: Dd-Operation-Id: - GetAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/yce-xdt-siz + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/xv5-qf3-uye method: GET response: - body: '{"status":"paused","public_id":"yce-xdt-siz","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1640024588","monitor_id":58556690,"type":"api","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1640024588-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"xv5-qf3-uye","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917","monitor_id":61770516,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -76,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:11 GMT + - Fri, 21 Jan 2022 11:01:59 GMT Pragma: - no-cache Strict-Transport-Security: @@ -89,12 +91,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "952" + - "990" X-Ratelimit-Reset: - - "49" + - "1" status: 200 OK code: 200 duration: "" @@ -107,11 +111,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/yce-xdt-siz + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/xv5-qf3-uye method: GET response: - body: '{"status":"paused","public_id":"yce-xdt-siz","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1640024588","monitor_id":58556690,"type":"api","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1640024588-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"xv5-qf3-uye","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917","monitor_id":61770516,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -122,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:12 GMT + - Fri, 21 Jan 2022 11:02:00 GMT Pragma: - no-cache Strict-Transport-Security: @@ -135,12 +139,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "950" + - "988" X-Ratelimit-Reset: - - "48" + - "1" status: 200 OK code: 200 duration: "" @@ -153,11 +159,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli ) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/yce-xdt-siz + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/xv5-qf3-uye method: GET response: - body: '{"status":"paused","public_id":"yce-xdt-siz","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1640024588","monitor_id":58556690,"type":"api","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1640024588-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"xv5-qf3-uye","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917","monitor_id":61770516,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -168,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:13 GMT + - Fri, 21 Jan 2022 11:02:00 GMT Pragma: - no-cache Strict-Transport-Security: @@ -181,12 +187,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "944" + - "999" X-Ratelimit-Reset: - - "47" + - "60" status: 200 OK code: 200 duration: "" @@ -199,11 +207,11 @@ interactions: Dd-Operation-Id: - GetAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli ) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/yce-xdt-siz + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/xv5-qf3-uye method: GET response: - body: '{"status":"paused","public_id":"yce-xdt-siz","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1640024588","monitor_id":58556690,"type":"api","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1640024588-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"xv5-qf3-uye","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917","monitor_id":61770516,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -214,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:13 GMT + - Fri, 21 Jan 2022 11:02:01 GMT Pragma: - no-cache Strict-Transport-Security: @@ -227,18 +235,20 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "943" + - "997" X-Ratelimit-Reset: - - "47" + - "60" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["yce-xdt-siz"]} + {"public_ids":["xv5-qf3-uye"]} form: {} headers: Accept: @@ -250,11 +260,11 @@ interactions: Dd-Operation-Id: - DeleteTests User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2021-12-20T18:23:15.105149+00:00","public_id":"yce-xdt-siz"}]}' + body: '{"deleted_tests":[{"deleted_at":"2022-01-21T11:02:02.310826+00:00","public_id":"xv5-qf3-uye"}]}' headers: Cache-Control: - no-cache @@ -265,7 +275,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:15 GMT + - Fri, 21 Jan 2022 11:02:02 GMT Pragma: - no-cache Strict-Transport-Security: @@ -278,12 +288,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_delete_tests X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11991" + - "11998" X-Ratelimit-Reset: - - "45" + - "58" status: 200 OK code: 200 duration: "" @@ -296,8 +308,8 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/yce-xdt-siz + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/xv5-qf3-uye method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -311,7 +323,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:15 GMT + - Fri, 21 Jan 2022 11:02:03 GMT Pragma: - no-cache Strict-Transport-Security: @@ -322,6 +334,16 @@ interactions: - nosniff X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "1000" + X-Ratelimit-Name: + - synthetics_export + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "994" + X-Ratelimit-Reset: + - "57" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze index 3c55b3d2e2..61878cf362 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze @@ -1 +1 @@ -2022-01-10T15:48:08.352431+01:00 \ No newline at end of file +2022-01-21T12:01:57.394428+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml index 5157f340ae..bc42d95aa6 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml @@ -3,23 +3,23 @@ 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 }}"},"type":"body"}],"configVariables":[{"example":"1234","name":"TEST","pattern":"{{ numeric(4) }}","type":"text"}],"request":{"basicAuth":{"password":"secret","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":"1234566789"},"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-1641826088","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":100},"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 }}"},"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":"1234566789"},"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-1642762917","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":100},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: - application/json Content-Length: - - "1553" + - "1566" Content-Type: - application/json Dd-Operation-Id: - CreateSyntheticsAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 1.0.4) datadog-api-client-go/1.7.1+dev (go go1.17.2; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/api method: POST response: - body: '{"status":"paused","public_id":"mjk-9cf-gr8","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1641826088","monitor_id":60338359,"type":"api","created_at":"2022-01-10T14:48:28.225361+00:00","modified_at":"2022-01-10T14:48:28.225361+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"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"n4s-b48-mmd","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1642762917","monitor_id":61770515,"type":"api","created_at":"2022-01-21T11:01:59.380629+00:00","modified_at":"2022-01-21T11:01:59.380629+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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -30,7 +30,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 10 Jan 2022 14:48:28 GMT + - Fri, 21 Jan 2022 11:01:59 GMT Pragma: - no-cache Strict-Transport-Security: @@ -48,9 +48,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11999" + - "11997" X-Ratelimit-Reset: - - "32" + - "1" status: 200 OK code: 200 duration: "" @@ -63,11 +63,11 @@ interactions: Dd-Operation-Id: - GetAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 1.0.4) datadog-api-client-go/1.7.1+dev (go go1.17.2; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/mjk-9cf-gr8 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/n4s-b48-mmd method: GET response: - body: '{"status":"paused","public_id":"mjk-9cf-gr8","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1641826088","monitor_id":60338359,"type":"api","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"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"n4s-b48-mmd","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1642762917","monitor_id":61770515,"type":"api","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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -78,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 10 Jan 2022 14:48:28 GMT + - Fri, 21 Jan 2022 11:01:59 GMT Pragma: - no-cache Strict-Transport-Security: @@ -96,9 +96,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "999" + - "991" X-Ratelimit-Reset: - - "32" + - "1" status: 200 OK code: 200 duration: "" @@ -111,11 +111,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 1.0.4) datadog-api-client-go/1.7.1+dev (go go1.17.2; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/mjk-9cf-gr8 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/n4s-b48-mmd method: GET response: - body: '{"status":"paused","public_id":"mjk-9cf-gr8","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1641826088","monitor_id":60338359,"type":"api","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"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"n4s-b48-mmd","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1642762917","monitor_id":61770515,"type":"api","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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -126,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 10 Jan 2022 14:48:33 GMT + - Fri, 21 Jan 2022 11:02:00 GMT Pragma: - no-cache Strict-Transport-Security: @@ -144,9 +144,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "998" + - "989" X-Ratelimit-Reset: - - "28" + - "1" status: 200 OK code: 200 duration: "" @@ -159,11 +159,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 1.0.4) datadog-api-client-go/1.7.1+dev (go go1.17.2; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/mjk-9cf-gr8 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/n4s-b48-mmd method: GET response: - body: '{"status":"paused","public_id":"mjk-9cf-gr8","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1641826088","monitor_id":60338359,"type":"api","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"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"n4s-b48-mmd","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1642762917","monitor_id":61770515,"type":"api","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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -174,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 10 Jan 2022 14:48:44 GMT + - Fri, 21 Jan 2022 11:02:00 GMT Pragma: - no-cache Strict-Transport-Security: @@ -192,9 +192,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "997" + - "998" X-Ratelimit-Reset: - - "16" + - "60" status: 200 OK code: 200 duration: "" @@ -207,11 +207,11 @@ interactions: Dd-Operation-Id: - GetAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 1.0.4) datadog-api-client-go/1.7.1+dev (go go1.17.2; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/mjk-9cf-gr8 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/n4s-b48-mmd method: GET response: - body: '{"status":"paused","public_id":"mjk-9cf-gr8","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1641826088","monitor_id":60338359,"type":"api","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"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"n4s-b48-mmd","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1642762917","monitor_id":61770515,"type":"api","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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -222,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 10 Jan 2022 14:48:44 GMT + - Fri, 21 Jan 2022 11:02:00 GMT Pragma: - no-cache Strict-Transport-Security: @@ -242,13 +242,13 @@ interactions: X-Ratelimit-Remaining: - "996" X-Ratelimit-Reset: - - "16" + - "60" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["mjk-9cf-gr8"]} + {"public_ids":["n4s-b48-mmd"]} form: {} headers: Accept: @@ -260,11 +260,11 @@ interactions: Dd-Operation-Id: - DeleteTests User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 1.0.4) datadog-api-client-go/1.7.1+dev (go go1.17.2; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-01-10T14:49:02.196739+00:00","public_id":"mjk-9cf-gr8"}]}' + body: '{"deleted_tests":[{"deleted_at":"2022-01-21T11:02:01.738123+00:00","public_id":"n4s-b48-mmd"}]}' headers: Cache-Control: - no-cache @@ -275,7 +275,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 10 Jan 2022 14:49:03 GMT + - Fri, 21 Jan 2022 11:02:01 GMT Pragma: - no-cache Strict-Transport-Security: @@ -295,7 +295,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "58" + - "59" status: 200 OK code: 200 duration: "" @@ -308,8 +308,8 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 1.0.4) datadog-api-client-go/1.7.1+dev (go go1.17.2; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/mjk-9cf-gr8 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/n4s-b48-mmd method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -323,7 +323,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 10 Jan 2022 14:49:03 GMT + - Fri, 21 Jan 2022 11:02:02 GMT Pragma: - no-cache Strict-Transport-Security: @@ -341,9 +341,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "999" + - "995" X-Ratelimit-Reset: - - "57" + - "58" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze index ac6e56b4b0..9a9e2f6faf 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze @@ -1 +1 @@ -2021-12-20T13:23:05.439941-05:00 \ No newline at end of file +2022-01-21T14:35:17.777255+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml index 46111fb85d..bd8c166fc8 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml @@ -3,23 +3,23 @@ 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":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","noSavingResponseBody":true,"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1640024585","options":{"allow_insecure":true,"follow_redirects":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1640024585-monitor","monitor_priority":5,"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":"1234566789"},"method":"GET","noSavingResponseBody":true,"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117","options":{"allow_insecure":true,"follow_redirects":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117-monitor","monitor_priority":5,"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: - application/json Content-Length: - - "1047" + - "1185" Content-Type: - application/json Dd-Operation-Id: - CreateSyntheticsAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/api method: POST response: - body: '{"status":"paused","public_id":"vxk-k8b-f8m","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1640024585","monitor_id":58556624,"type":"api","created_at":"2021-12-20T18:23:07.791343+00:00","modified_at":"2021-12-20T18:23:07.791343+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1640024585-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"tky-yj3-q3b","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117","monitor_id":61780360,"type":"api","created_at":"2022-01-21T13:35:19.534552+00:00","modified_at":"2022-01-21T13:35:19.534552+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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -30,7 +30,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:07 GMT + - Fri, 21 Jan 2022 13:35:19 GMT Pragma: - no-cache Strict-Transport-Security: @@ -43,12 +43,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_create_test X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - "11997" X-Ratelimit-Reset: - - "53" + - "41" status: 200 OK code: 200 duration: "" @@ -61,11 +63,11 @@ interactions: Dd-Operation-Id: - GetAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/vxk-k8b-f8m + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/tky-yj3-q3b method: GET response: - body: '{"status":"paused","public_id":"vxk-k8b-f8m","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1640024585","monitor_id":58556624,"type":"api","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1640024585-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"tky-yj3-q3b","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117","monitor_id":61780360,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -76,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:07 GMT + - Fri, 21 Jan 2022 13:35:19 GMT Pragma: - no-cache Strict-Transport-Security: @@ -89,12 +91,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "967" + - "990" X-Ratelimit-Reset: - - "53" + - "41" status: 200 OK code: 200 duration: "" @@ -107,11 +111,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/vxk-k8b-f8m + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/tky-yj3-q3b method: GET response: - body: '{"status":"paused","public_id":"vxk-k8b-f8m","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1640024585","monitor_id":58556624,"type":"api","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1640024585-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"tky-yj3-q3b","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117","monitor_id":61780360,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -122,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:08 GMT + - Fri, 21 Jan 2022 13:35:20 GMT Pragma: - no-cache Strict-Transport-Security: @@ -135,12 +139,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "966" + - "988" X-Ratelimit-Reset: - - "52" + - "40" status: 200 OK code: 200 duration: "" @@ -153,11 +159,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli ) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/vxk-k8b-f8m + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/tky-yj3-q3b method: GET response: - body: '{"status":"paused","public_id":"vxk-k8b-f8m","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1640024585","monitor_id":58556624,"type":"api","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1640024585-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"tky-yj3-q3b","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117","monitor_id":61780360,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -168,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:09 GMT + - Fri, 21 Jan 2022 13:35:20 GMT Pragma: - no-cache Strict-Transport-Security: @@ -181,12 +187,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "960" + - "987" X-Ratelimit-Reset: - - "51" + - "40" status: 200 OK code: 200 duration: "" @@ -199,11 +207,11 @@ interactions: Dd-Operation-Id: - GetAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli ) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/vxk-k8b-f8m + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/tky-yj3-q3b method: GET response: - body: '{"status":"paused","public_id":"vxk-k8b-f8m","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1640024585","monitor_id":58556624,"type":"api","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1640024585-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"tky-yj3-q3b","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117","monitor_id":61780360,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -214,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:09 GMT + - Fri, 21 Jan 2022 13:35:20 GMT Pragma: - no-cache Strict-Transport-Security: @@ -227,12 +235,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "959" + - "985" X-Ratelimit-Reset: - - "51" + - "40" status: 200 OK code: 200 duration: "" @@ -245,11 +255,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/vxk-k8b-f8m + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/tky-yj3-q3b method: GET response: - body: '{"status":"paused","public_id":"vxk-k8b-f8m","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1640024585","monitor_id":58556624,"type":"api","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1640024585-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"tky-yj3-q3b","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117","monitor_id":61780360,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -260,7 +270,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:12 GMT + - Fri, 21 Jan 2022 13:35:21 GMT Pragma: - no-cache Strict-Transport-Security: @@ -273,12 +283,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "954" + - "982" X-Ratelimit-Reset: - - "49" + - "39" status: 200 OK code: 200 duration: "" @@ -291,11 +303,11 @@ interactions: Dd-Operation-Id: - GetAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/vxk-k8b-f8m + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/tky-yj3-q3b method: GET response: - body: '{"status":"paused","public_id":"vxk-k8b-f8m","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1640024585","monitor_id":58556624,"type":"api","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1640024585-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"tky-yj3-q3b","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117","monitor_id":61780360,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -306,7 +318,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:12 GMT + - Fri, 21 Jan 2022 13:35:21 GMT Pragma: - no-cache Strict-Transport-Security: @@ -319,18 +331,20 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "948" + - "981" X-Ratelimit-Reset: - - "48" + - "39" status: 200 OK code: 200 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-1640024585-updated","options":{"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":100},"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-1642772117-updated","options":{"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":100},"retry":{"count":3,"interval":500},"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} form: {} headers: Accept: @@ -342,11 +356,11 @@ interactions: Dd-Operation-Id: - UpdateAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli ) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/vxk-k8b-f8m + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/tky-yj3-q3b method: PUT response: - body: '{"status":"live","public_id":"vxk-k8b-f8m","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-1640024585-updated","monitor_id":58556624,"type":"api","created_at":"2021-12-20T18:23:07.791343+00:00","modified_at":"2021-12-20T18:23:13.616571+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"retry":{"count":3,"interval":500},"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' + body: '{"status":"live","public_id":"tky-yj3-q3b","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-1642772117-updated","monitor_id":61780360,"type":"api","created_at":"2022-01-21T13:35:19.534552+00:00","modified_at":"2022-01-21T13:35:22.529475+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"retry":{"count":3,"interval":500},"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' headers: Cache-Control: - no-cache @@ -357,7 +371,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:13 GMT + - Fri, 21 Jan 2022 13:35:22 GMT Pragma: - no-cache Strict-Transport-Security: @@ -370,12 +384,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "500" + X-Ratelimit-Name: + - synthetics_edit_test X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "498" + - "499" X-Ratelimit-Reset: - - "47" + - "38" status: 200 OK code: 200 duration: "" @@ -388,11 +404,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli ) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/vxk-k8b-f8m + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/tky-yj3-q3b method: GET response: - body: '{"status":"live","public_id":"vxk-k8b-f8m","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1640024585-updated","monitor_id":58556624,"type":"api","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":100},"retry":{"count":3,"interval":500},"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' + body: '{"status":"live","public_id":"tky-yj3-q3b","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117-updated","monitor_id":61780360,"type":"api","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":100},"retry":{"count":3,"interval":500},"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' headers: Cache-Control: - no-cache @@ -403,7 +419,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:14 GMT + - Fri, 21 Jan 2022 13:35:22 GMT Pragma: - no-cache Strict-Transport-Security: @@ -416,12 +432,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "941" + - "978" X-Ratelimit-Reset: - - "46" + - "38" status: 200 OK code: 200 duration: "" @@ -434,11 +452,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/vxk-k8b-f8m + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/tky-yj3-q3b method: GET response: - body: '{"status":"live","public_id":"vxk-k8b-f8m","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1640024585-updated","monitor_id":58556624,"type":"api","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":100},"retry":{"count":3,"interval":500},"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' + body: '{"status":"live","public_id":"tky-yj3-q3b","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117-updated","monitor_id":61780360,"type":"api","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":100},"retry":{"count":3,"interval":500},"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' headers: Cache-Control: - no-cache @@ -449,7 +467,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:15 GMT + - Fri, 21 Jan 2022 13:35:23 GMT Pragma: - no-cache Strict-Transport-Security: @@ -462,12 +480,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "936" + - "977" X-Ratelimit-Reset: - - "45" + - "37" status: 200 OK code: 200 duration: "" @@ -480,11 +500,11 @@ interactions: Dd-Operation-Id: - GetAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/vxk-k8b-f8m + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/tky-yj3-q3b method: GET response: - body: '{"status":"live","public_id":"vxk-k8b-f8m","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1640024585-updated","monitor_id":58556624,"type":"api","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":100},"retry":{"count":3,"interval":500},"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' + body: '{"status":"live","public_id":"tky-yj3-q3b","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117-updated","monitor_id":61780360,"type":"api","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":100},"retry":{"count":3,"interval":500},"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' headers: Cache-Control: - no-cache @@ -495,7 +515,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:15 GMT + - Fri, 21 Jan 2022 13:35:23 GMT Pragma: - no-cache Strict-Transport-Security: @@ -508,18 +528,20 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "932" + - "975" X-Ratelimit-Reset: - - "45" + - "37" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["vxk-k8b-f8m"]} + {"public_ids":["tky-yj3-q3b"]} form: {} headers: Accept: @@ -531,11 +553,11 @@ interactions: Dd-Operation-Id: - DeleteTests User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2021-12-20T18:23:17.273801+00:00","public_id":"vxk-k8b-f8m"}]}' + body: '{"deleted_tests":[{"deleted_at":"2022-01-21T13:35:24.473112+00:00","public_id":"tky-yj3-q3b"}]}' headers: Cache-Control: - no-cache @@ -546,7 +568,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:17 GMT + - Fri, 21 Jan 2022 13:35:24 GMT Pragma: - no-cache Strict-Transport-Security: @@ -559,12 +581,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_delete_tests X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11990" + - "11997" X-Ratelimit-Reset: - - "43" + - "36" status: 200 OK code: 200 duration: "" @@ -577,8 +601,8 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/vxk-k8b-f8m + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/tky-yj3-q3b method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -592,7 +616,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:17 GMT + - Fri, 21 Jan 2022 13:35:25 GMT Pragma: - no-cache Strict-Transport-Security: @@ -603,6 +627,16 @@ interactions: - nosniff X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "1000" + X-Ratelimit-Name: + - synthetics_export + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "972" + X-Ratelimit-Reset: + - "36" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze index 7e62dfd239..18cec0dd34 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze @@ -1 +1 @@ -2022-01-12T15:01:42.35495+01:00 \ No newline at end of file +2022-01-21T14:35:17.77727+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml index b871061e1f..ac7968b019 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml @@ -3,23 +3,23 @@ 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 }}"},"type":"body"}],"configVariables":[{"example":"1234","name":"TEST","pattern":"{{ numeric(4) }}","type":"text"}],"request":{"basicAuth":{"password":"secret","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":"1234566789"},"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-1641996102","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":100},"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 }}"},"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":"1234566789"},"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-1642772117","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":100},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: - application/json Content-Length: - - "1555" + - "1568" Content-Type: - application/json Dd-Operation-Id: - CreateSyntheticsAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 1.0.4) datadog-api-client-go/1.7.1+dev (go go1.17.2; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/api method: POST response: - body: '{"status":"paused","public_id":"by7-q7a-kzf","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1641996102","monitor_id":60692427,"type":"api","created_at":"2022-01-12T14:01:57.842948+00:00","modified_at":"2022-01-12T14:01:57.842948+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"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"9y2-r7y-qnu","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642772117","monitor_id":61780361,"type":"api","created_at":"2022-01-21T13:35:19.654963+00:00","modified_at":"2022-01-21T13:35:19.654963+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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -30,7 +30,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 12 Jan 2022 14:01:57 GMT + - Fri, 21 Jan 2022 13:35:19 GMT Pragma: - no-cache Strict-Transport-Security: @@ -48,9 +48,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11999" + - "11996" X-Ratelimit-Reset: - - "3" + - "41" status: 200 OK code: 200 duration: "" @@ -63,11 +63,11 @@ interactions: Dd-Operation-Id: - GetAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 1.0.4) datadog-api-client-go/1.7.1+dev (go go1.17.2; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/by7-q7a-kzf + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/9y2-r7y-qnu method: GET response: - body: '{"status":"paused","public_id":"by7-q7a-kzf","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1641996102","monitor_id":60692427,"type":"api","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"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"9y2-r7y-qnu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642772117","monitor_id":61780361,"type":"api","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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -78,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 12 Jan 2022 14:01:58 GMT + - Fri, 21 Jan 2022 13:35:20 GMT Pragma: - no-cache Strict-Transport-Security: @@ -96,9 +96,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "999" + - "989" X-Ratelimit-Reset: - - "2" + - "41" status: 200 OK code: 200 duration: "" @@ -111,11 +111,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 1.0.4) datadog-api-client-go/1.7.1+dev (go go1.17.2; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/by7-q7a-kzf + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/9y2-r7y-qnu method: GET response: - body: '{"status":"paused","public_id":"by7-q7a-kzf","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1641996102","monitor_id":60692427,"type":"api","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"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"9y2-r7y-qnu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642772117","monitor_id":61780361,"type":"api","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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -126,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 12 Jan 2022 14:02:00 GMT + - Fri, 21 Jan 2022 13:35:20 GMT Pragma: - no-cache Strict-Transport-Security: @@ -144,9 +144,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "999" + - "986" X-Ratelimit-Reset: - - "60" + - "40" status: 200 OK code: 200 duration: "" @@ -159,11 +159,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 1.0.4) datadog-api-client-go/1.7.1+dev (go go1.17.2; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/by7-q7a-kzf + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/9y2-r7y-qnu method: GET response: - body: '{"status":"paused","public_id":"by7-q7a-kzf","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1641996102","monitor_id":60692427,"type":"api","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"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"9y2-r7y-qnu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642772117","monitor_id":61780361,"type":"api","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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -174,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 12 Jan 2022 14:02:07 GMT + - Fri, 21 Jan 2022 13:35:21 GMT Pragma: - no-cache Strict-Transport-Security: @@ -192,9 +192,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "998" + - "984" X-Ratelimit-Reset: - - "53" + - "39" status: 200 OK code: 200 duration: "" @@ -207,11 +207,11 @@ interactions: Dd-Operation-Id: - GetAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 1.0.4) datadog-api-client-go/1.7.1+dev (go go1.17.2; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/by7-q7a-kzf + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/9y2-r7y-qnu method: GET response: - body: '{"status":"paused","public_id":"by7-q7a-kzf","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1641996102","monitor_id":60692427,"type":"api","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"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"9y2-r7y-qnu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642772117","monitor_id":61780361,"type":"api","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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -222,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 12 Jan 2022 14:02:08 GMT + - Fri, 21 Jan 2022 13:35:21 GMT Pragma: - no-cache Strict-Transport-Security: @@ -240,9 +240,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "997" + - "983" X-Ratelimit-Reset: - - "53" + - "39" status: 200 OK code: 200 duration: "" @@ -255,11 +255,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 1.0.4) datadog-api-client-go/1.7.1+dev (go go1.17.2; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/by7-q7a-kzf + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/9y2-r7y-qnu method: GET response: - body: '{"status":"paused","public_id":"by7-q7a-kzf","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1641996102","monitor_id":60692427,"type":"api","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"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"9y2-r7y-qnu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642772117","monitor_id":61780361,"type":"api","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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -270,7 +270,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 12 Jan 2022 14:02:18 GMT + - Fri, 21 Jan 2022 13:35:22 GMT Pragma: - no-cache Strict-Transport-Security: @@ -288,9 +288,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "996" + - "980" X-Ratelimit-Reset: - - "42" + - "38" status: 200 OK code: 200 duration: "" @@ -303,11 +303,11 @@ interactions: Dd-Operation-Id: - GetAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 1.0.4) datadog-api-client-go/1.7.1+dev (go go1.17.2; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/by7-q7a-kzf + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/9y2-r7y-qnu method: GET response: - body: '{"status":"paused","public_id":"by7-q7a-kzf","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1641996102","monitor_id":60692427,"type":"api","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"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"9y2-r7y-qnu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642772117","monitor_id":61780361,"type":"api","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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -318,7 +318,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 12 Jan 2022 14:02:18 GMT + - Fri, 21 Jan 2022 13:35:22 GMT Pragma: - no-cache Strict-Transport-Security: @@ -336,15 +336,15 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "995" + - "979" X-Ratelimit-Reset: - - "42" + - "38" status: 200 OK code: 200 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-1641996102updated","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-1642772117updated","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: @@ -356,11 +356,11 @@ interactions: Dd-Operation-Id: - UpdateAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 1.0.4) datadog-api-client-go/1.7.1+dev (go go1.17.2; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/by7-q7a-kzf + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/9y2-r7y-qnu method: PUT response: - body: '{"status":"live","public_id":"by7-q7a-kzf","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-1641996102updated","monitor_id":60692427,"type":"api","created_at":"2022-01-12T14:01:57.842948+00:00","modified_at":"2022-01-12T14:02:25.583825+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,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}}' + body: '{"status":"live","public_id":"9y2-r7y-qnu","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-1642772117updated","monitor_id":61780361,"type":"api","created_at":"2022-01-21T13:35:19.654963+00:00","modified_at":"2022-01-21T13:35:23.089491+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,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}}' headers: Cache-Control: - no-cache @@ -371,7 +371,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 12 Jan 2022 14:02:25 GMT + - Fri, 21 Jan 2022 13:35:23 GMT Pragma: - no-cache Strict-Transport-Security: @@ -389,9 +389,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "499" + - "498" X-Ratelimit-Reset: - - "35" + - "38" status: 200 OK code: 200 duration: "" @@ -404,11 +404,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 1.0.4) datadog-api-client-go/1.7.1+dev (go go1.17.2; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/by7-q7a-kzf + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/9y2-r7y-qnu method: GET response: - body: '{"status":"live","public_id":"by7-q7a-kzf","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1641996102updated","monitor_id":60692427,"type":"api","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}}' + body: '{"status":"live","public_id":"9y2-r7y-qnu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642772117updated","monitor_id":61780361,"type":"api","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: Cache-Control: - no-cache @@ -419,7 +419,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 12 Jan 2022 14:02:28 GMT + - Fri, 21 Jan 2022 13:35:23 GMT Pragma: - no-cache Strict-Transport-Security: @@ -437,9 +437,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "994" + - "976" X-Ratelimit-Reset: - - "32" + - "37" status: 200 OK code: 200 duration: "" @@ -452,11 +452,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 1.0.4) datadog-api-client-go/1.7.1+dev (go go1.17.2; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/by7-q7a-kzf + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/9y2-r7y-qnu method: GET response: - body: '{"status":"live","public_id":"by7-q7a-kzf","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1641996102updated","monitor_id":60692427,"type":"api","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}}' + body: '{"status":"live","public_id":"9y2-r7y-qnu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642772117updated","monitor_id":61780361,"type":"api","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: Cache-Control: - no-cache @@ -467,7 +467,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 12 Jan 2022 14:02:35 GMT + - Fri, 21 Jan 2022 13:35:24 GMT Pragma: - no-cache Strict-Transport-Security: @@ -485,9 +485,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "993" + - "974" X-Ratelimit-Reset: - - "26" + - "37" status: 200 OK code: 200 duration: "" @@ -500,11 +500,11 @@ interactions: Dd-Operation-Id: - GetAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 1.0.4) datadog-api-client-go/1.7.1+dev (go go1.17.2; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/by7-q7a-kzf + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/9y2-r7y-qnu method: GET response: - body: '{"status":"live","public_id":"by7-q7a-kzf","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1641996102updated","monitor_id":60692427,"type":"api","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}}' + body: '{"status":"live","public_id":"9y2-r7y-qnu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642772117updated","monitor_id":61780361,"type":"api","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: Cache-Control: - no-cache @@ -515,7 +515,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 12 Jan 2022 14:02:35 GMT + - Fri, 21 Jan 2022 13:35:24 GMT Pragma: - no-cache Strict-Transport-Security: @@ -533,15 +533,15 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "992" + - "973" X-Ratelimit-Reset: - - "25" + - "36" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["by7-q7a-kzf"]} + {"public_ids":["9y2-r7y-qnu"]} form: {} headers: Accept: @@ -553,11 +553,11 @@ interactions: Dd-Operation-Id: - DeleteTests User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 1.0.4) datadog-api-client-go/1.7.1+dev (go go1.17.2; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-01-12T14:02:45.546877+00:00","public_id":"by7-q7a-kzf"}]}' + body: '{"deleted_tests":[{"deleted_at":"2022-01-21T13:35:24.967403+00:00","public_id":"9y2-r7y-qnu"}]}' headers: Cache-Control: - no-cache @@ -568,7 +568,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 12 Jan 2022 14:02:45 GMT + - Fri, 21 Jan 2022 13:35:26 GMT Pragma: - no-cache Strict-Transport-Security: @@ -586,9 +586,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11999" + - "11996" X-Ratelimit-Reset: - - "15" + - "36" status: 200 OK code: 200 duration: "" @@ -601,8 +601,8 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 1.0.4) datadog-api-client-go/1.7.1+dev (go go1.17.2; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/by7-q7a-kzf + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/9y2-r7y-qnu method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -616,7 +616,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 12 Jan 2022 14:02:45 GMT + - Fri, 21 Jan 2022 13:35:26 GMT Pragma: - no-cache Strict-Transport-Security: @@ -634,9 +634,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "991" + - "971" X-Ratelimit-Reset: - - "15" + - "34" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze index cfde194bd2..e284ab7c45 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze @@ -1 +1 @@ -2021-12-20T13:22:57.346462-05:00 \ No newline at end of file +2022-01-21T14:34:53.343279+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml index ec16056d83..1aebcd47a7 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml @@ -3,23 +3,23 @@ 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":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","noSavingResponseBody":true,"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1640024577","options":{"allow_insecure":true,"follow_redirects":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1640024577-monitor","monitor_priority":5,"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":"1234566789"},"method":"GET","noSavingResponseBody":true,"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093","options":{"allow_insecure":true,"follow_redirects":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093-monitor","monitor_priority":5,"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: - application/json Content-Length: - - "1055" + - "1193" Content-Type: - application/json Dd-Operation-Id: - CreateSyntheticsAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/api method: POST response: - body: '{"status":"paused","public_id":"ue6-e8u-bb5","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1640024577","monitor_id":58556493,"type":"api","created_at":"2021-12-20T18:22:59.855988+00:00","modified_at":"2021-12-20T18:22:59.855988+00:00","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1640024577-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"fg2-pub-4av","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093","monitor_id":61780309,"type":"api","created_at":"2022-01-21T13:34:55.169616+00:00","modified_at":"2022-01-21T13:34:55.169616+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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -30,7 +30,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:22:59 GMT + - Fri, 21 Jan 2022 13:34:55 GMT Pragma: - no-cache Strict-Transport-Security: @@ -43,12 +43,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_create_test X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "1" + - "5" status: 200 OK code: 200 duration: "" @@ -61,11 +63,11 @@ interactions: Dd-Operation-Id: - GetAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/ue6-e8u-bb5 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/fg2-pub-4av method: GET response: - body: '{"status":"paused","public_id":"ue6-e8u-bb5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1640024577","monitor_id":58556493,"type":"api","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1640024577-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"fg2-pub-4av","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093","monitor_id":61780309,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -76,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:00 GMT + - Fri, 21 Jan 2022 13:34:55 GMT Pragma: - no-cache Strict-Transport-Security: @@ -89,12 +91,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - "999" X-Ratelimit-Reset: - - "1" + - "5" status: 200 OK code: 200 duration: "" @@ -107,11 +111,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/ue6-e8u-bb5 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/fg2-pub-4av method: GET response: - body: '{"status":"paused","public_id":"ue6-e8u-bb5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1640024577","monitor_id":58556493,"type":"api","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1640024577-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"fg2-pub-4av","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093","monitor_id":61780309,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -122,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:01 GMT + - Fri, 21 Jan 2022 13:34:56 GMT Pragma: - no-cache Strict-Transport-Security: @@ -135,12 +139,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "992" + - "998" X-Ratelimit-Reset: - - "59" + - "4" status: 200 OK code: 200 duration: "" @@ -153,11 +159,11 @@ interactions: Dd-Operation-Id: - GetAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/ue6-e8u-bb5 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/fg2-pub-4av method: GET response: - body: '{"status":"paused","public_id":"ue6-e8u-bb5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1640024577","monitor_id":58556493,"type":"api","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1640024577-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"fg2-pub-4av","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093","monitor_id":61780309,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -168,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:02 GMT + - Fri, 21 Jan 2022 13:34:56 GMT Pragma: - no-cache Strict-Transport-Security: @@ -181,12 +187,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "990" + - "997" X-Ratelimit-Reset: - - "59" + - "4" status: 200 OK code: 200 duration: "" @@ -199,11 +207,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/ue6-e8u-bb5 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/fg2-pub-4av method: GET response: - body: '{"status":"paused","public_id":"ue6-e8u-bb5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1640024577","monitor_id":58556493,"type":"api","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1640024577-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"fg2-pub-4av","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093","monitor_id":61780309,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -214,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:03 GMT + - Fri, 21 Jan 2022 13:34:56 GMT Pragma: - no-cache Strict-Transport-Security: @@ -227,12 +235,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "982" + - "996" X-Ratelimit-Reset: - - "57" + - "4" status: 200 OK code: 200 duration: "" @@ -245,11 +255,11 @@ interactions: Dd-Operation-Id: - GetAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/ue6-e8u-bb5 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/fg2-pub-4av method: GET response: - body: '{"status":"paused","public_id":"ue6-e8u-bb5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1640024577","monitor_id":58556493,"type":"api","subtype":"http","config":{"request":{"body":"this is a body","url":"https://www.datadoghq.com","noSavingResponseBody":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1640024577-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"fg2-pub-4av","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093","monitor_id":61780309,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -260,7 +270,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:03 GMT + - Fri, 21 Jan 2022 13:34:57 GMT Pragma: - no-cache Strict-Transport-Security: @@ -273,18 +283,20 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "981" + - "995" X-Ratelimit-Reset: - - "57" + - "3" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["ue6-e8u-bb5"]} + {"public_ids":["fg2-pub-4av"]} form: {} headers: Accept: @@ -296,11 +308,11 @@ interactions: Dd-Operation-Id: - DeleteTests User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2021-12-20T18:23:04.881055+00:00","public_id":"ue6-e8u-bb5"}]}' + body: '{"deleted_tests":[{"deleted_at":"2022-01-21T13:34:57.770786+00:00","public_id":"fg2-pub-4av"}]}' headers: Cache-Control: - no-cache @@ -311,7 +323,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:04 GMT + - Fri, 21 Jan 2022 13:34:57 GMT Pragma: - no-cache Strict-Transport-Security: @@ -324,12 +336,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_delete_tests X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11997" + - "11999" X-Ratelimit-Reset: - - "56" + - "3" status: 200 OK code: 200 duration: "" @@ -342,8 +356,8 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/ue6-e8u-bb5 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/fg2-pub-4av method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -357,7 +371,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:05 GMT + - Fri, 21 Jan 2022 13:34:58 GMT Pragma: - no-cache Strict-Transport-Security: @@ -368,6 +382,16 @@ interactions: - nosniff X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "1000" + X-Ratelimit-Name: + - synthetics_export + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "994" + X-Ratelimit-Reset: + - "2" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic.freeze index 1a92eb9c64..1d2c79ad8d 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic.freeze @@ -1 +1 @@ -2021-12-20T13:23:12.824542-05:00 \ No newline at end of file +2022-01-24T14:31:09.373135+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic.yaml index c376d38d58..66b6289d0f 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[],"configVariables":[],"request":{"method":"GET","url":"https://www.datadoghq.com"},"variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1640024592","options":{"device_ids":["laptop_large"],"min_location_failed":1,"retry":{"count":2,"interval":300},"tick_every":900},"status":"paused","steps":[{"allowFailure":false,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar"],"type":"browser"} + {"config":{"assertions":[],"configVariables":[],"request":{"method":"GET","url":"https://www.datadoghq.com"},"variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1643031069","options":{"device_ids":["laptop_large"],"min_location_failed":1,"retry":{"count":2,"interval":300},"tick_every":900},"status":"paused","steps":[{"allowFailure":false,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar"],"type":"browser"} form: {} headers: Accept: @@ -15,11 +15,11 @@ interactions: Dd-Operation-Id: - CreateSyntheticsBrowserTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/browser method: POST response: - body: '{"status":"paused","public_id":"gb2-ie5-gm6","tags":["foo:bar"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1640024592","monitor_id":58556742,"type":"browser","created_at":"2021-12-20T18:23:14.800987+00:00","modified_at":"2021-12-20T18:23:14.800987+00:00","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"request":{"url":"https://www.datadoghq.com","method":"GET"},"assertions":[],"configVariables":[]},"options":{"retry":{"count":2,"interval":300},"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"z86-hru-xkd","tags":["foo:bar"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1643031069","monitor_id":61930972,"type":"browser","created_at":"2022-01-24T13:31:11.220123+00:00","modified_at":"2022-01-24T13:31:11.220123+00:00","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"request":{"url":"https://www.datadoghq.com","method":"GET"},"assertions":[],"configVariables":[]},"options":{"retry":{"count":2,"interval":300},"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -30,7 +30,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:14 GMT + - Mon, 24 Jan 2022 13:31:11 GMT Pragma: - no-cache Strict-Transport-Security: @@ -43,12 +43,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_create_test X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11991" + - "11999" X-Ratelimit-Reset: - - "46" + - "49" status: 200 OK code: 200 duration: "" @@ -61,11 +63,11 @@ interactions: Dd-Operation-Id: - GetBrowserTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/gb2-ie5-gm6 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/z86-hru-xkd method: GET response: - body: '{"status":"paused","public_id":"gb2-ie5-gm6","tags":["foo:bar"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1640024592","monitor_id":58556742,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"request":{"url":"https://www.datadoghq.com","method":"GET"},"assertions":[],"configVariables":[]},"options":{"retry":{"count":2,"interval":300},"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"z86-hru-xkd","tags":["foo:bar"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1643031069","monitor_id":61930972,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"request":{"url":"https://www.datadoghq.com","method":"GET"},"assertions":[],"configVariables":[]},"options":{"retry":{"count":2,"interval":300},"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -76,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:15 GMT + - Mon, 24 Jan 2022 13:31:11 GMT Pragma: - no-cache Strict-Transport-Security: @@ -89,12 +91,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "937" + - "999" X-Ratelimit-Reset: - - "46" + - "49" status: 200 OK code: 200 duration: "" @@ -107,11 +111,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/gb2-ie5-gm6 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/z86-hru-xkd method: GET response: - body: '{"status":"paused","public_id":"gb2-ie5-gm6","tags":["foo:bar"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1640024592","monitor_id":58556742,"type":"browser","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"request":{"url":"https://www.datadoghq.com","method":"GET"},"assertions":[],"configVariables":[]},"options":{"retry":{"count":2,"interval":300},"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"z86-hru-xkd","tags":["foo:bar"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1643031069","monitor_id":61930972,"type":"browser","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"request":{"url":"https://www.datadoghq.com","method":"GET"},"assertions":[],"configVariables":[]},"options":{"retry":{"count":2,"interval":300},"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -122,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:15 GMT + - Mon, 24 Jan 2022 13:31:11 GMT Pragma: - no-cache Strict-Transport-Security: @@ -135,12 +139,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "933" + - "998" X-Ratelimit-Reset: - - "45" + - "49" status: 200 OK code: 200 duration: "" @@ -153,11 +159,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli ) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/gb2-ie5-gm6 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/z86-hru-xkd method: GET response: - body: '{"status":"paused","public_id":"gb2-ie5-gm6","tags":["foo:bar"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1640024592","monitor_id":58556742,"type":"browser","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"request":{"url":"https://www.datadoghq.com","method":"GET"},"assertions":[],"configVariables":[]},"options":{"retry":{"count":2,"interval":300},"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"z86-hru-xkd","tags":["foo:bar"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1643031069","monitor_id":61930972,"type":"browser","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"request":{"url":"https://www.datadoghq.com","method":"GET"},"assertions":[],"configVariables":[]},"options":{"retry":{"count":2,"interval":300},"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -168,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:16 GMT + - Mon, 24 Jan 2022 13:31:12 GMT Pragma: - no-cache Strict-Transport-Security: @@ -181,12 +187,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "924" + - "997" X-Ratelimit-Reset: - - "44" + - "48" status: 200 OK code: 200 duration: "" @@ -199,11 +207,11 @@ interactions: Dd-Operation-Id: - GetBrowserTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli ) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/gb2-ie5-gm6 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/z86-hru-xkd method: GET response: - body: '{"status":"paused","public_id":"gb2-ie5-gm6","tags":["foo:bar"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1640024592","monitor_id":58556742,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"request":{"url":"https://www.datadoghq.com","method":"GET"},"assertions":[],"configVariables":[]},"options":{"retry":{"count":2,"interval":300},"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"z86-hru-xkd","tags":["foo:bar"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1643031069","monitor_id":61930972,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"request":{"url":"https://www.datadoghq.com","method":"GET"},"assertions":[],"configVariables":[]},"options":{"retry":{"count":2,"interval":300},"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -214,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:16 GMT + - Mon, 24 Jan 2022 13:31:12 GMT Pragma: - no-cache Strict-Transport-Security: @@ -227,18 +235,20 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "922" + - "996" X-Ratelimit-Reset: - - "44" + - "48" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["gb2-ie5-gm6"]} + {"public_ids":["z86-hru-xkd"]} form: {} headers: Accept: @@ -250,11 +260,11 @@ interactions: Dd-Operation-Id: - DeleteTests User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli ) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2021-12-20T18:23:18.426781+00:00","public_id":"gb2-ie5-gm6"}]}' + body: '{"deleted_tests":[{"deleted_at":"2022-01-24T13:31:13.362600+00:00","public_id":"z86-hru-xkd"}]}' headers: Cache-Control: - no-cache @@ -265,7 +275,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:18 GMT + - Mon, 24 Jan 2022 13:31:13 GMT Pragma: - no-cache Strict-Transport-Security: @@ -278,12 +288,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_delete_tests X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11988" + - "11999" X-Ratelimit-Reset: - - "42" + - "47" status: 200 OK code: 200 duration: "" @@ -296,8 +308,8 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli ) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/gb2-ie5-gm6 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/z86-hru-xkd method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -311,7 +323,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:18 GMT + - Mon, 24 Jan 2022 13:31:13 GMT Pragma: - no-cache Strict-Transport-Security: @@ -322,6 +334,16 @@ interactions: - nosniff X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "1000" + X-Ratelimit-Name: + - synthetics_export + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "995" + X-Ratelimit-Reset: + - "47" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.freeze index 7d509f73eb..2e6039d034 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.freeze @@ -1 +1 @@ -2021-12-20T13:23:15.464896-05:00 \ No newline at end of file +2022-01-24T10:58:00.151851+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml index 0421d45a46..df377d91c5 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml @@ -3,23 +3,23 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","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-1640024595","options":{"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1640024595-monitor","monitor_options":{"renotify_interval":100},"monitor_priority":5,"noScreenshot":true,"retry":{"count":2,"interval":300},"tick_every":900},"status":"paused","steps":[{"allowFailure":false,"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","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","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-1643018280","options":{"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643018280-monitor","monitor_options":{"renotify_interval":100},"monitor_priority":5,"noScreenshot":true,"retry":{"count":2,"interval":300},"tick_every":900},"status":"paused","steps":[{"allowFailure":false,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} form: {} headers: Accept: - application/json Content-Length: - - "1065" + - "1136" Content-Type: - application/json Dd-Operation-Id: - CreateSyntheticsBrowserTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/browser method: POST response: - body: '{"status":"paused","public_id":"78n-ns7-5jq","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1640024595","monitor_id":58556797,"type":"browser","created_at":"2021-12-20T18:23:17.738232+00:00","modified_at":"2021-12-20T18:23:17.738232+00:00","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1640024595-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"gss-m3g-46p","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643018280","monitor_id":61918575,"type":"browser","created_at":"2022-01-24T09:58:01.801357+00:00","modified_at":"2022-01-24T09:58:01.801357+00:00","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643018280-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -30,7 +30,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:17 GMT + - Mon, 24 Jan 2022 09:58:01 GMT Pragma: - no-cache Strict-Transport-Security: @@ -43,12 +43,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_create_test X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11988" + - "11999" X-Ratelimit-Reset: - - "43" + - "59" status: 200 OK code: 200 duration: "" @@ -61,11 +63,11 @@ interactions: Dd-Operation-Id: - GetBrowserTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/78n-ns7-5jq + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/gss-m3g-46p method: GET response: - body: '{"status":"paused","public_id":"78n-ns7-5jq","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1640024595","monitor_id":58556797,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1640024595-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"gss-m3g-46p","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643018280","monitor_id":61918575,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643018280-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -76,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:17 GMT + - Mon, 24 Jan 2022 09:58:02 GMT Pragma: - no-cache Strict-Transport-Security: @@ -89,12 +91,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "915" + - "999" X-Ratelimit-Reset: - - "43" + - "59" status: 200 OK code: 200 duration: "" @@ -107,11 +111,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/78n-ns7-5jq + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/gss-m3g-46p method: GET response: - body: '{"status":"paused","public_id":"78n-ns7-5jq","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1640024595","monitor_id":58556797,"type":"browser","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1640024595-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"gss-m3g-46p","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643018280","monitor_id":61918575,"type":"browser","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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643018280-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -122,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:18 GMT + - Mon, 24 Jan 2022 09:58:02 GMT Pragma: - no-cache Strict-Transport-Security: @@ -135,12 +139,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "911" + - "998" X-Ratelimit-Reset: - - "42" + - "58" status: 200 OK code: 200 duration: "" @@ -153,11 +159,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli ) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/78n-ns7-5jq + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/gss-m3g-46p method: GET response: - body: '{"status":"paused","public_id":"78n-ns7-5jq","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1640024595","monitor_id":58556797,"type":"browser","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1640024595-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"gss-m3g-46p","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643018280","monitor_id":61918575,"type":"browser","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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643018280-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -168,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:19 GMT + - Mon, 24 Jan 2022 09:58:03 GMT Pragma: - no-cache Strict-Transport-Security: @@ -181,12 +187,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "904" + - "997" X-Ratelimit-Reset: - - "41" + - "58" status: 200 OK code: 200 duration: "" @@ -199,11 +207,11 @@ interactions: Dd-Operation-Id: - GetBrowserTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli ) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/78n-ns7-5jq + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/gss-m3g-46p method: GET response: - body: '{"status":"paused","public_id":"78n-ns7-5jq","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1640024595","monitor_id":58556797,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1640024595-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"gss-m3g-46p","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643018280","monitor_id":61918575,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643018280-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -214,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:19 GMT + - Mon, 24 Jan 2022 09:58:03 GMT Pragma: - no-cache Strict-Transport-Security: @@ -227,18 +235,20 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "903" + - "996" X-Ratelimit-Reset: - - "41" + - "57" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["78n-ns7-5jq"]} + {"public_ids":["gss-m3g-46p"]} form: {} headers: Accept: @@ -250,11 +260,11 @@ interactions: Dd-Operation-Id: - DeleteTests User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli ) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2021-12-20T18:23:21.187195+00:00","public_id":"78n-ns7-5jq"}]}' + body: '{"deleted_tests":[{"deleted_at":"2022-01-24T09:58:03.945655+00:00","public_id":"gss-m3g-46p"}]}' headers: Cache-Control: - no-cache @@ -265,7 +275,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:21 GMT + - Mon, 24 Jan 2022 09:58:04 GMT Pragma: - no-cache Strict-Transport-Security: @@ -278,12 +288,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_delete_tests X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11985" + - "11999" X-Ratelimit-Reset: - - "39" + - "57" status: 200 OK code: 200 duration: "" @@ -296,8 +308,8 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli ) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/78n-ns7-5jq + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/gss-m3g-46p method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -311,7 +323,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:21 GMT + - Mon, 24 Jan 2022 09:58:04 GMT Pragma: - no-cache Strict-Transport-Security: @@ -322,6 +334,16 @@ interactions: - nosniff X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "1000" + X-Ratelimit-Name: + - synthetics_export + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "995" + X-Ratelimit-Reset: + - "56" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.freeze index 1c705a4ea8..ebd540a61c 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.freeze @@ -1 +1 @@ -2021-12-20T13:23:15.393612-05:00 \ No newline at end of file +2022-01-24T14:30:35.736921+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml index d47d698a93..18b98024e5 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml @@ -3,23 +3,23 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","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-1640024595","options":{"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1640024595-monitor","monitor_options":{"renotify_interval":100},"monitor_priority":5,"noScreenshot":true,"retry":{"count":2,"interval":300},"tick_every":900},"status":"paused","steps":[{"allowFailure":false,"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","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","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-1643031035","options":{"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-monitor","monitor_options":{"renotify_interval":100},"monitor_priority":5,"noScreenshot":true,"retry":{"count":2,"interval":300},"tick_every":900},"status":"paused","steps":[{"allowFailure":false,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} form: {} headers: Accept: - application/json Content-Length: - - "1069" + - "1140" Content-Type: - application/json Dd-Operation-Id: - CreateSyntheticsBrowserTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/browser method: POST response: - body: '{"status":"paused","public_id":"bsn-bau-ei7","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1640024595","monitor_id":58556793,"type":"browser","created_at":"2021-12-20T18:23:17.540377+00:00","modified_at":"2021-12-20T18:23:17.540377+00:00","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1640024595-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"2ra-p6k-knw","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035","monitor_id":61930939,"type":"browser","created_at":"2022-01-24T13:30:37.768429+00:00","modified_at":"2022-01-24T13:30:37.768429+00:00","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -30,7 +30,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:17 GMT + - Mon, 24 Jan 2022 13:30:37 GMT Pragma: - no-cache Strict-Transport-Security: @@ -43,12 +43,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_create_test X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11989" + - "11999" X-Ratelimit-Reset: - - "43" + - "23" status: 200 OK code: 200 duration: "" @@ -61,11 +63,11 @@ interactions: Dd-Operation-Id: - GetBrowserTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bsn-bau-ei7 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/2ra-p6k-knw method: GET response: - body: '{"status":"paused","public_id":"bsn-bau-ei7","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1640024595","monitor_id":58556793,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1640024595-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"2ra-p6k-knw","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035","monitor_id":61930939,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -76,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:17 GMT + - Mon, 24 Jan 2022 13:30:37 GMT Pragma: - no-cache Strict-Transport-Security: @@ -89,12 +91,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "918" + - "999" X-Ratelimit-Reset: - - "43" + - "23" status: 200 OK code: 200 duration: "" @@ -107,11 +111,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/bsn-bau-ei7 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/2ra-p6k-knw method: GET response: - body: '{"status":"paused","public_id":"bsn-bau-ei7","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1640024595","monitor_id":58556793,"type":"browser","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1640024595-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"2ra-p6k-knw","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035","monitor_id":61930939,"type":"browser","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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -122,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:18 GMT + - Mon, 24 Jan 2022 13:30:38 GMT Pragma: - no-cache Strict-Transport-Security: @@ -135,12 +139,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "914" + - "998" X-Ratelimit-Reset: - - "42" + - "22" status: 200 OK code: 200 duration: "" @@ -153,11 +159,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli ) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/bsn-bau-ei7 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/2ra-p6k-knw method: GET response: - body: '{"status":"paused","public_id":"bsn-bau-ei7","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1640024595","monitor_id":58556793,"type":"browser","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1640024595-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"2ra-p6k-knw","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035","monitor_id":61930939,"type":"browser","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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -168,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:19 GMT + - Mon, 24 Jan 2022 13:30:38 GMT Pragma: - no-cache Strict-Transport-Security: @@ -181,12 +187,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "906" + - "997" X-Ratelimit-Reset: - - "41" + - "22" status: 200 OK code: 200 duration: "" @@ -199,11 +207,11 @@ interactions: Dd-Operation-Id: - GetBrowserTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli ) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bsn-bau-ei7 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/2ra-p6k-knw method: GET response: - body: '{"status":"paused","public_id":"bsn-bau-ei7","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1640024595","monitor_id":58556793,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1640024595-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"2ra-p6k-knw","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035","monitor_id":61930939,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -214,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:19 GMT + - Mon, 24 Jan 2022 13:30:39 GMT Pragma: - no-cache Strict-Transport-Security: @@ -227,12 +235,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "905" + - "996" X-Ratelimit-Reset: - - "41" + - "21" status: 200 OK code: 200 duration: "" @@ -245,11 +255,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli ) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/bsn-bau-ei7 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/2ra-p6k-knw method: GET response: - body: '{"status":"paused","public_id":"bsn-bau-ei7","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1640024595","monitor_id":58556793,"type":"browser","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1640024595-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"2ra-p6k-knw","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035","monitor_id":61930939,"type":"browser","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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -260,7 +270,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:21 GMT + - Mon, 24 Jan 2022 13:30:39 GMT Pragma: - no-cache Strict-Transport-Security: @@ -273,12 +283,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "895" + - "995" X-Ratelimit-Reset: - - "39" + - "21" status: 200 OK code: 200 duration: "" @@ -291,11 +303,11 @@ interactions: Dd-Operation-Id: - GetBrowserTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli ) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bsn-bau-ei7 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/2ra-p6k-knw method: GET response: - body: '{"status":"paused","public_id":"bsn-bau-ei7","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1640024595","monitor_id":58556793,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1640024595-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"2ra-p6k-knw","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035","monitor_id":61930939,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -306,7 +318,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:21 GMT + - Mon, 24 Jan 2022 13:30:40 GMT Pragma: - no-cache Strict-Transport-Security: @@ -319,18 +331,20 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "894" + - "994" X-Ratelimit-Reset: - - "39" + - "20" status: 200 OK code: 200 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-1640024595-updated","options":{"device_ids":["laptop_large","tablet"],"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"tick_every":1800},"status":"live","steps":[{"allowFailure":false,"name":"first step updated","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"allowFailure":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-1643031035-updated","options":{"device_ids":["laptop_large","tablet"],"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"tick_every":1800},"status":"live","steps":[{"allowFailure":false,"name":"first step updated","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"allowFailure":false,"name":"press key step","params":{"modifiers":[],"value":"1"},"timeout":0,"type":"pressKey"}],"tags":["foo:bar","buz"],"type":"browser"} form: {} headers: Accept: @@ -342,11 +356,11 @@ interactions: Dd-Operation-Id: - UpdateBrowserTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli ) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bsn-bau-ei7 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/2ra-p6k-knw method: PUT response: - body: '{"status":"live","public_id":"bsn-bau-ei7","tags":["foo:bar","buz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1640024595-updated","monitor_id":58556793,"type":"browser","created_at":"2021-12-20T18:23:17.540377+00:00","modified_at":"2021-12-20T18:23:22.708455+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"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":{"retry":{"count":3,"interval":500},"min_location_failed":1,"min_failure_duration":10,"tick_every":1800,"device_ids":["laptop_large","tablet"],"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":120}}}' + body: '{"status":"live","public_id":"2ra-p6k-knw","tags":["foo:bar","buz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-updated","monitor_id":61930939,"type":"browser","created_at":"2022-01-24T13:30:37.768429+00:00","modified_at":"2022-01-24T13:30:40.670379+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"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":{"retry":{"count":3,"interval":500},"min_location_failed":1,"min_failure_duration":10,"tick_every":1800,"device_ids":["laptop_large","tablet"],"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":120}}}' headers: Cache-Control: - no-cache @@ -357,7 +371,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:22 GMT + - Mon, 24 Jan 2022 13:30:40 GMT Pragma: - no-cache Strict-Transport-Security: @@ -370,12 +384,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "500" + X-Ratelimit-Name: + - synthetics_edit_test X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "496" + - "499" X-Ratelimit-Reset: - - "38" + - "20" status: 200 OK code: 200 duration: "" @@ -388,11 +404,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli ) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/bsn-bau-ei7 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/2ra-p6k-knw method: GET response: - body: '{"status":"live","public_id":"bsn-bau-ei7","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1640024595-updated","monitor_id":58556793,"type":"browser","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":{"retry":{"count":3,"interval":500},"min_location_failed":1,"min_failure_duration":10,"tick_every":1800,"device_ids":["laptop_large","tablet"],"monitor_options":{"renotify_interval":120}}}' + body: '{"status":"live","public_id":"2ra-p6k-knw","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-updated","monitor_id":61930939,"type":"browser","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":{"retry":{"count":3,"interval":500},"min_location_failed":1,"min_failure_duration":10,"tick_every":1800,"device_ids":["laptop_large","tablet"],"monitor_options":{"renotify_interval":120}}}' headers: Cache-Control: - no-cache @@ -403,7 +419,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:23 GMT + - Mon, 24 Jan 2022 13:30:41 GMT Pragma: - no-cache Strict-Transport-Security: @@ -416,12 +432,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "885" + - "993" X-Ratelimit-Reset: - - "37" + - "19" status: 200 OK code: 200 duration: "" @@ -434,11 +452,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/bsn-bau-ei7 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/2ra-p6k-knw method: GET response: - body: '{"status":"live","public_id":"bsn-bau-ei7","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1640024595-updated","monitor_id":58556793,"type":"browser","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":{"retry":{"count":3,"interval":500},"min_location_failed":1,"min_failure_duration":10,"tick_every":1800,"device_ids":["laptop_large","tablet"],"monitor_options":{"renotify_interval":120}}}' + body: '{"status":"live","public_id":"2ra-p6k-knw","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-updated","monitor_id":61930939,"type":"browser","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":{"retry":{"count":3,"interval":500},"min_location_failed":1,"min_failure_duration":10,"tick_every":1800,"device_ids":["laptop_large","tablet"],"monitor_options":{"renotify_interval":120}}}' headers: Cache-Control: - no-cache @@ -449,7 +467,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:24 GMT + - Mon, 24 Jan 2022 13:30:42 GMT Pragma: - no-cache Strict-Transport-Security: @@ -462,12 +480,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "878" + - "992" X-Ratelimit-Reset: - - "36" + - "18" status: 200 OK code: 200 duration: "" @@ -480,11 +500,11 @@ interactions: Dd-Operation-Id: - GetBrowserTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bsn-bau-ei7 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/2ra-p6k-knw method: GET response: - body: '{"status":"live","public_id":"bsn-bau-ei7","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1640024595-updated","monitor_id":58556793,"type":"browser","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"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":{"retry":{"count":3,"interval":500},"min_location_failed":1,"min_failure_duration":10,"tick_every":1800,"device_ids":["laptop_large","tablet"],"monitor_options":{"renotify_interval":120}}}' + body: '{"status":"live","public_id":"2ra-p6k-knw","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-updated","monitor_id":61930939,"type":"browser","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"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":{"retry":{"count":3,"interval":500},"min_location_failed":1,"min_failure_duration":10,"tick_every":1800,"device_ids":["laptop_large","tablet"],"monitor_options":{"renotify_interval":120}}}' headers: Cache-Control: - no-cache @@ -495,7 +515,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:24 GMT + - Mon, 24 Jan 2022 13:30:42 GMT Pragma: - no-cache Strict-Transport-Security: @@ -508,18 +528,20 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "877" + - "991" X-Ratelimit-Reset: - - "36" + - "18" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["bsn-bau-ei7"]} + {"public_ids":["2ra-p6k-knw"]} form: {} headers: Accept: @@ -531,11 +553,11 @@ interactions: Dd-Operation-Id: - DeleteTests User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2021-12-20T18:23:25.829995+00:00","public_id":"bsn-bau-ei7"}]}' + body: '{"deleted_tests":[{"deleted_at":"2022-01-24T13:30:43.351906+00:00","public_id":"2ra-p6k-knw"}]}' headers: Cache-Control: - no-cache @@ -546,7 +568,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:25 GMT + - Mon, 24 Jan 2022 13:30:43 GMT Pragma: - no-cache Strict-Transport-Security: @@ -559,12 +581,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_delete_tests X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11982" + - "11999" X-Ratelimit-Reset: - - "35" + - "17" status: 200 OK code: 200 duration: "" @@ -577,8 +601,8 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/bsn-bau-ei7 + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/2ra-p6k-knw method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -592,7 +616,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:26 GMT + - Mon, 24 Jan 2022 13:30:43 GMT Pragma: - no-cache Strict-Transport-Security: @@ -603,6 +627,16 @@ interactions: - nosniff X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "1000" + X-Ratelimit-Name: + - synthetics_export + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "990" + X-Ratelimit-Reset: + - "17" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.freeze index fcfad73541..c1992d8140 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.freeze @@ -1 +1 @@ -2021-12-20T13:22:57.340862-05:00 \ No newline at end of file +2022-01-21T14:35:08.199731+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml index 0b50d98a1e..6744586b05 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml @@ -3,23 +3,23 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[],"configVariables":[{"example":"123","name":"VARIABLE_NAME","pattern":"{{numeric(3)}}","type":"text"}],"request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","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-1640024577","options":{"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1640024577-monitor","monitor_options":{"renotify_interval":100},"monitor_priority":5,"noScreenshot":true,"retry":{"count":2,"interval":300},"tick_every":900},"status":"paused","steps":[{"allowFailure":false,"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","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","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-1642772108","options":{"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108-monitor","monitor_options":{"renotify_interval":100},"monitor_priority":5,"noScreenshot":true,"retry":{"count":2,"interval":300},"tick_every":900},"status":"paused","steps":[{"allowFailure":false,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} form: {} headers: Accept: - application/json Content-Length: - - "1077" + - "1148" Content-Type: - application/json Dd-Operation-Id: - CreateSyntheticsBrowserTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/browser method: POST response: - body: '{"status":"paused","public_id":"8g5-siy-xws","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1640024577","monitor_id":58556496,"type":"browser","created_at":"2021-12-20T18:23:00.004365+00:00","modified_at":"2021-12-20T18:23:00.004365+00:00","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1640024577-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"gzw-fut-3uk","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108","monitor_id":61780341,"type":"browser","created_at":"2022-01-21T13:35:10.967340+00:00","modified_at":"2022-01-21T13:35:10.967340+00:00","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -30,7 +30,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:00 GMT + - Fri, 21 Jan 2022 13:35:11 GMT Pragma: - no-cache Strict-Transport-Security: @@ -43,12 +43,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_create_test X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11996" + - "11998" X-Ratelimit-Reset: - - "1" + - "50" status: 200 OK code: 200 duration: "" @@ -61,11 +63,11 @@ interactions: Dd-Operation-Id: - GetBrowserTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/8g5-siy-xws + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/gzw-fut-3uk method: GET response: - body: '{"status":"paused","public_id":"8g5-siy-xws","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1640024577","monitor_id":58556496,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1640024577-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"gzw-fut-3uk","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108","monitor_id":61780341,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -76,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:00 GMT + - Fri, 21 Jan 2022 13:35:11 GMT Pragma: - no-cache Strict-Transport-Security: @@ -89,12 +91,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "998" + - "996" X-Ratelimit-Reset: - - "60" + - "49" status: 200 OK code: 200 duration: "" @@ -107,11 +111,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/8g5-siy-xws + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/gzw-fut-3uk method: GET response: - body: '{"status":"paused","public_id":"8g5-siy-xws","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1640024577","monitor_id":58556496,"type":"browser","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1640024577-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"gzw-fut-3uk","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108","monitor_id":61780341,"type":"browser","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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -122,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:01 GMT + - Fri, 21 Jan 2022 13:35:12 GMT Pragma: - no-cache Strict-Transport-Security: @@ -135,12 +139,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "991" + - "995" X-Ratelimit-Reset: - - "59" + - "48" status: 200 OK code: 200 duration: "" @@ -153,11 +159,11 @@ interactions: Dd-Operation-Id: - GetBrowserTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/8g5-siy-xws + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/gzw-fut-3uk method: GET response: - body: '{"status":"paused","public_id":"8g5-siy-xws","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1640024577","monitor_id":58556496,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1640024577-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"gzw-fut-3uk","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108","monitor_id":61780341,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -168,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:01 GMT + - Fri, 21 Jan 2022 13:35:12 GMT Pragma: - no-cache Strict-Transport-Security: @@ -181,12 +187,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "989" + - "994" X-Ratelimit-Reset: - - "59" + - "48" status: 200 OK code: 200 duration: "" @@ -199,11 +207,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/8g5-siy-xws + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/gzw-fut-3uk method: GET response: - body: '{"status":"paused","public_id":"8g5-siy-xws","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1640024577","monitor_id":58556496,"type":"browser","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1640024577-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"gzw-fut-3uk","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108","monitor_id":61780341,"type":"browser","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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -214,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:04 GMT + - Fri, 21 Jan 2022 13:35:13 GMT Pragma: - no-cache Strict-Transport-Security: @@ -227,12 +235,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "980" + - "993" X-Ratelimit-Reset: - - "57" + - "47" status: 200 OK code: 200 duration: "" @@ -245,11 +255,11 @@ interactions: Dd-Operation-Id: - GetBrowserTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/8g5-siy-xws + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/gzw-fut-3uk method: GET response: - body: '{"status":"paused","public_id":"8g5-siy-xws","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1640024577","monitor_id":58556496,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"setCookie":"name=value","request":{"body":"this is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://www.datadoghq.com","timeout":30,"method":"GET"},"assertions":[],"configVariables":[{"pattern":"{{numeric(3)}}","type":"text","example":"123","name":"VARIABLE_NAME"}]},"options":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1640024577-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"gzw-fut-3uk","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108","monitor_id":61780341,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -260,7 +270,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:04 GMT + - Fri, 21 Jan 2022 13:35:14 GMT Pragma: - no-cache Strict-Transport-Security: @@ -273,18 +283,20 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "1000" + X-Ratelimit-Name: + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "979" + - "992" X-Ratelimit-Reset: - - "56" + - "47" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["8g5-siy-xws"]} + {"public_ids":["gzw-fut-3uk"]} form: {} headers: Accept: @@ -296,11 +308,11 @@ interactions: Dd-Operation-Id: - DeleteTests User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2021-12-20T18:23:04.968043+00:00","public_id":"8g5-siy-xws"}]}' + body: '{"deleted_tests":[{"deleted_at":"2022-01-21T13:35:14.578756+00:00","public_id":"gzw-fut-3uk"}]}' headers: Cache-Control: - no-cache @@ -311,7 +323,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:05 GMT + - Fri, 21 Jan 2022 13:35:14 GMT Pragma: - no-cache Strict-Transport-Security: @@ -324,12 +336,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_delete_tests X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11996" + - "11998" X-Ratelimit-Reset: - - "56" + - "46" status: 200 OK code: 200 duration: "" @@ -342,8 +356,8 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/8g5-siy-xws + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/gzw-fut-3uk method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -357,7 +371,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:05 GMT + - Fri, 21 Jan 2022 13:35:14 GMT Pragma: - no-cache Strict-Transport-Security: @@ -368,6 +382,16 @@ interactions: - nosniff X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "1000" + X-Ratelimit-Name: + - synthetics_export + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "991" + X-Ratelimit-Reset: + - "46" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Updated.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Updated.freeze index 0eb6aa8a8b..3b425290c7 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Updated.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Updated.freeze @@ -1 +1 @@ -2021-12-20T13:22:57.338358-05:00 \ No newline at end of file +2022-01-21T14:35:29.104191+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Updated.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Updated.yaml index 60570c68f6..4805c72667 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Updated.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsGlobalVariableSecure_Updated.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"description":"a secure global variable","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1640024577","tags":["foo:bar","baz"],"value":{"secure":true,"value":"variable-secure-value"}} + {"description":"a secure global variable","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129","tags":["foo:bar","baz"],"value":{"secure":true,"value":"variable-secure-value"}} form: {} headers: Accept: @@ -15,11 +15,11 @@ interactions: Dd-Operation-Id: - CreateGlobalVariable User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/variables method: POST response: - body: '{"parse_test_options":null,"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"is_totp":null,"value":{"secure":true},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"000d9c65-fd1c-442e-8714-5ccbf3ff288f","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1640024577"}' + body: '{"parse_test_options":null,"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"is_totp":null,"value":{"secure":true},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"09529f3c-1a7c-4b85-aba0-a9a2d6ad27de","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129"}' headers: Cache-Control: - no-cache @@ -30,7 +30,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:22:59 GMT + - Fri, 21 Jan 2022 13:35:30 GMT Pragma: - no-cache Strict-Transport-Security: @@ -43,12 +43,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_create_variable X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11999" + - "11998" X-Ratelimit-Reset: - - "1" + - "30" status: 200 OK code: 200 duration: "" @@ -61,11 +63,11 @@ interactions: Dd-Operation-Id: - GetGlobalVariable User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/000d9c65-fd1c-442e-8714-5ccbf3ff288f + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/variables/09529f3c-1a7c-4b85-aba0-a9a2d6ad27de method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"000d9c65-fd1c-442e-8714-5ccbf3ff288f","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1640024577","created_at":"2021-12-20T18:22:59.895677+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2021-12-20T18:22:59.895677+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' + body: '{"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"09529f3c-1a7c-4b85-aba0-a9a2d6ad27de","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129","created_at":"2022-01-21T13:35:30.724225+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:35:30.724225+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' headers: Cache-Control: - no-cache @@ -76,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:22:59 GMT + - Fri, 21 Jan 2022 13:35:30 GMT Pragma: - no-cache Strict-Transport-Security: @@ -89,12 +91,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_get_variable X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11999" + - "11995" X-Ratelimit-Reset: - - "1" + - "30" status: 200 OK code: 200 duration: "" @@ -107,11 +111,11 @@ interactions: Dd-Operation-Id: - GetGlobalVariable User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/000d9c65-fd1c-442e-8714-5ccbf3ff288f + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/variables/09529f3c-1a7c-4b85-aba0-a9a2d6ad27de method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"000d9c65-fd1c-442e-8714-5ccbf3ff288f","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1640024577","created_at":"2021-12-20T18:22:59.895677+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2021-12-20T18:22:59.895677+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' + body: '{"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"09529f3c-1a7c-4b85-aba0-a9a2d6ad27de","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129","created_at":"2022-01-21T13:35:30.724225+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:35:30.724225+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' headers: Cache-Control: - no-cache @@ -122,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:00 GMT + - Fri, 21 Jan 2022 13:35:31 GMT Pragma: - no-cache Strict-Transport-Security: @@ -135,12 +139,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_get_variable X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11999" + - "11994" X-Ratelimit-Reset: - - "60" + - "29" status: 200 OK code: 200 duration: "" @@ -153,11 +159,11 @@ interactions: Dd-Operation-Id: - GetGlobalVariable User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/000d9c65-fd1c-442e-8714-5ccbf3ff288f + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/variables/09529f3c-1a7c-4b85-aba0-a9a2d6ad27de method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"000d9c65-fd1c-442e-8714-5ccbf3ff288f","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1640024577","created_at":"2021-12-20T18:22:59.895677+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2021-12-20T18:22:59.895677+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' + body: '{"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"09529f3c-1a7c-4b85-aba0-a9a2d6ad27de","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129","created_at":"2022-01-21T13:35:30.724225+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:35:30.724225+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' headers: Cache-Control: - no-cache @@ -168,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:00 GMT + - Fri, 21 Jan 2022 13:35:31 GMT Pragma: - no-cache Strict-Transport-Security: @@ -181,12 +187,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_get_variable X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11992" + - "11993" X-Ratelimit-Reset: - - "60" + - "29" status: 200 OK code: 200 duration: "" @@ -199,11 +207,11 @@ interactions: Dd-Operation-Id: - GetGlobalVariable User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/000d9c65-fd1c-442e-8714-5ccbf3ff288f + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/variables/09529f3c-1a7c-4b85-aba0-a9a2d6ad27de method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"000d9c65-fd1c-442e-8714-5ccbf3ff288f","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1640024577","created_at":"2021-12-20T18:22:59.895677+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2021-12-20T18:22:59.895677+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' + body: '{"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"09529f3c-1a7c-4b85-aba0-a9a2d6ad27de","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129","created_at":"2022-01-21T13:35:30.724225+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:35:30.724225+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' headers: Cache-Control: - no-cache @@ -214,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:01 GMT + - Fri, 21 Jan 2022 13:35:31 GMT Pragma: - no-cache Strict-Transport-Security: @@ -227,12 +235,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_get_variable X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11989" + - "11992" X-Ratelimit-Reset: - - "59" + - "29" status: 200 OK code: 200 duration: "" @@ -245,11 +255,11 @@ interactions: Dd-Operation-Id: - GetGlobalVariable User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/000d9c65-fd1c-442e-8714-5ccbf3ff288f + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/variables/09529f3c-1a7c-4b85-aba0-a9a2d6ad27de method: GET response: - body: '{"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"000d9c65-fd1c-442e-8714-5ccbf3ff288f","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1640024577","created_at":"2021-12-20T18:22:59.895677+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2021-12-20T18:22:59.895677+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' + body: '{"parse_test_extracted_at":null,"description":"a secure global variable","tags":["foo:bar","baz"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"09529f3c-1a7c-4b85-aba0-a9a2d6ad27de","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129","created_at":"2022-01-21T13:35:30.724225+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:35:30.724225+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' headers: Cache-Control: - no-cache @@ -260,7 +270,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:03 GMT + - Fri, 21 Jan 2022 13:35:32 GMT Pragma: - no-cache Strict-Transport-Security: @@ -273,18 +283,20 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_get_variable X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11984" + - "11991" X-Ratelimit-Reset: - - "57" + - "28" status: 200 OK code: 200 duration: "" - request: body: | - {"description":"an updated secure global variable","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1640024577_UPDATED","tags":["foo:bar","baz","env:test"],"value":{"secure":true,"value":"variable-secure-value-updated"}} + {"description":"an updated secure global variable","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129_UPDATED","tags":["foo:bar","baz","env:test"],"value":{"secure":true,"value":"variable-secure-value-updated"}} form: {} headers: Accept: @@ -296,11 +308,11 @@ interactions: Dd-Operation-Id: - EditGlobalVariable User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/000d9c65-fd1c-442e-8714-5ccbf3ff288f + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/variables/09529f3c-1a7c-4b85-aba0-a9a2d6ad27de method: PUT response: - body: '{"parse_test_options":null,"parse_test_extracted_at":null,"description":"an updated secure global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"is_totp":null,"value":{"secure":true},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"000d9c65-fd1c-442e-8714-5ccbf3ff288f","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1640024577_UPDATED"}' + body: '{"parse_test_options":null,"parse_test_extracted_at":null,"description":"an updated secure global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"is_totp":null,"value":{"secure":true},"parse_test_public_id":null,"parse_test_name":null,"type":"variable","id":"09529f3c-1a7c-4b85-aba0-a9a2d6ad27de","name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129_UPDATED"}' headers: Cache-Control: - no-cache @@ -311,7 +323,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:05 GMT + - Fri, 21 Jan 2022 13:35:33 GMT Pragma: - no-cache Strict-Transport-Security: @@ -324,12 +336,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_edit_variable X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "56" + - "28" status: 200 OK code: 200 duration: "" @@ -342,11 +356,11 @@ interactions: Dd-Operation-Id: - GetGlobalVariable User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/000d9c65-fd1c-442e-8714-5ccbf3ff288f + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/variables/09529f3c-1a7c-4b85-aba0-a9a2d6ad27de method: GET response: - body: '{"parse_test_extracted_at":null,"description":"an updated secure global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"000d9c65-fd1c-442e-8714-5ccbf3ff288f","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1640024577_UPDATED","created_at":"2021-12-20T18:22:59.895677+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2021-12-20T18:23:05.032356+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' + body: '{"parse_test_extracted_at":null,"description":"an updated secure global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"09529f3c-1a7c-4b85-aba0-a9a2d6ad27de","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129_UPDATED","created_at":"2022-01-21T13:35:30.724225+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:35:33.072594+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' headers: Cache-Control: - no-cache @@ -357,7 +371,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:05 GMT + - Fri, 21 Jan 2022 13:35:33 GMT Pragma: - no-cache Strict-Transport-Security: @@ -370,12 +384,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_get_variable X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11980" + - "11990" X-Ratelimit-Reset: - - "55" + - "27" status: 200 OK code: 200 duration: "" @@ -388,11 +404,11 @@ interactions: Dd-Operation-Id: - GetGlobalVariable User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/000d9c65-fd1c-442e-8714-5ccbf3ff288f + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/variables/09529f3c-1a7c-4b85-aba0-a9a2d6ad27de method: GET response: - body: '{"parse_test_extracted_at":null,"description":"an updated secure global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"000d9c65-fd1c-442e-8714-5ccbf3ff288f","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1640024577_UPDATED","created_at":"2021-12-20T18:22:59.895677+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2021-12-20T18:23:05.032356+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' + body: '{"parse_test_extracted_at":null,"description":"an updated secure global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"09529f3c-1a7c-4b85-aba0-a9a2d6ad27de","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129_UPDATED","created_at":"2022-01-21T13:35:30.724225+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:35:33.072594+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' headers: Cache-Control: - no-cache @@ -403,7 +419,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:05 GMT + - Fri, 21 Jan 2022 13:35:33 GMT Pragma: - no-cache Strict-Transport-Security: @@ -416,12 +432,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_get_variable X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11978" + - "11989" X-Ratelimit-Reset: - - "55" + - "27" status: 200 OK code: 200 duration: "" @@ -434,11 +452,11 @@ interactions: Dd-Operation-Id: - GetGlobalVariable User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/000d9c65-fd1c-442e-8714-5ccbf3ff288f + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/variables/09529f3c-1a7c-4b85-aba0-a9a2d6ad27de method: GET response: - body: '{"parse_test_extracted_at":null,"description":"an updated secure global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"000d9c65-fd1c-442e-8714-5ccbf3ff288f","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1640024577_UPDATED","created_at":"2021-12-20T18:22:59.895677+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2021-12-20T18:23:05.032356+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' + body: '{"parse_test_extracted_at":null,"description":"an updated secure global variable","tags":["foo:bar","baz","env:test"],"last_error":null,"parse_test_public_id":null,"is_totp":null,"id":"09529f3c-1a7c-4b85-aba0-a9a2d6ad27de","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSGLOBALVARIABLESECURE_UPDATED_LOCAL_1642772129_UPDATED","created_at":"2022-01-21T13:35:30.724225+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:35:33.072594+00:00","value":{"secure":true},"parse_test_name":null,"type":"variable"}' headers: Cache-Control: - no-cache @@ -449,7 +467,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:06 GMT + - Fri, 21 Jan 2022 13:35:34 GMT Pragma: - no-cache Strict-Transport-Security: @@ -462,12 +480,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_get_variable X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11976" + - "11988" X-Ratelimit-Reset: - - "54" + - "26" status: 200 OK code: 200 duration: "" @@ -480,8 +500,8 @@ interactions: Dd-Operation-Id: - DeleteGlobalVariable User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/000d9c65-fd1c-442e-8714-5ccbf3ff288f + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/variables/09529f3c-1a7c-4b85-aba0-a9a2d6ad27de method: DELETE response: body: '{}' @@ -497,7 +517,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:08 GMT + - Fri, 21 Jan 2022 13:35:34 GMT Pragma: - no-cache Strict-Transport-Security: @@ -508,12 +528,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - synthetics_delete_variable X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11997" + - "11998" X-Ratelimit-Reset: - - "52" + - "26" status: 200 OK code: 200 duration: "" @@ -526,8 +548,8 @@ interactions: Dd-Operation-Id: - GetGlobalVariable User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.14.7) datadog-api-client-go/1.7.0 (go go1.17; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/000d9c65-fd1c-442e-8714-5ccbf3ff288f + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/variables/09529f3c-1a7c-4b85-aba0-a9a2d6ad27de method: GET response: body: '{"errors": ["Synthetics global variable not found"]}' @@ -541,7 +563,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:08 GMT + - Fri, 21 Jan 2022 13:35:35 GMT Pragma: - no-cache Strict-Transport-Security: @@ -552,6 +574,16 @@ interactions: - nosniff X-Frame-Options: - SAMEORIGIN + X-Ratelimit-Limit: + - "12000" + X-Ratelimit-Name: + - synthetics_get_variable + X-Ratelimit-Period: + - "60" + X-Ratelimit-Remaining: + - "11987" + X-Ratelimit-Reset: + - "25" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze index 00ea026c2f..48e3019753 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze @@ -1 +1 @@ -2022-01-04T18:22:11.40064+01:00 \ No newline at end of file +2022-01-21T14:53:12.654582+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml index 23690a64f8..1e60978b76 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_1641316931","tags":["foo:bar","baz"],"value":{"secure":false,"value":"variable-value"}} + {"description":"a global variable","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1642773192","tags":["foo:bar","baz"],"value":{"secure":false,"value":"variable-value"}} form: {} headers: Accept: @@ -15,11 +15,11 @@ interactions: Dd-Operation-Id: - CreateGlobalVariable User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.15.4) datadog-api-client-go/1.7.1+dev (go go1.17.3; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) 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":"df391781-7976-470e-8c43-251482dd87ec","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1641316931"}' + 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":"c7e9947e-ff15-413d-a203-da16bfb896a4","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1642773192"}' headers: Cache-Control: - no-cache @@ -30,7 +30,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 04 Jan 2022 17:22:32 GMT + - Fri, 21 Jan 2022 13:53:14 GMT Pragma: - no-cache Strict-Transport-Security: @@ -50,7 +50,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "28" + - "46" status: 200 OK code: 200 duration: "" @@ -63,11 +63,11 @@ interactions: Dd-Operation-Id: - GetGlobalVariable User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.15.4) datadog-api-client-go/1.7.1+dev (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/df391781-7976-470e-8c43-251482dd87ec + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/variables/c7e9947e-ff15-413d-a203-da16bfb896a4 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":"df391781-7976-470e-8c43-251482dd87ec","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1641316931","created_at":"2022-01-04T17:22:32.588862+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-04T17:22:32.588862+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":"c7e9947e-ff15-413d-a203-da16bfb896a4","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1642773192","created_at":"2022-01-21T13:53:14.539750+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:53:14.539750+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' headers: Cache-Control: - no-cache @@ -78,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 04 Jan 2022 17:22:32 GMT + - Fri, 21 Jan 2022 13:53:14 GMT Pragma: - no-cache Strict-Transport-Security: @@ -98,7 +98,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "28" + - "46" status: 200 OK code: 200 duration: "" @@ -111,11 +111,11 @@ interactions: Dd-Operation-Id: - GetGlobalVariable User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.15.4) datadog-api-client-go/1.7.1+dev (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/df391781-7976-470e-8c43-251482dd87ec + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/variables/c7e9947e-ff15-413d-a203-da16bfb896a4 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":"df391781-7976-470e-8c43-251482dd87ec","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1641316931","created_at":"2022-01-04T17:22:32.588862+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-04T17:22:32.588862+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":"c7e9947e-ff15-413d-a203-da16bfb896a4","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1642773192","created_at":"2022-01-21T13:53:14.539750+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:53:14.539750+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' headers: Cache-Control: - no-cache @@ -126,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 04 Jan 2022 17:22:32 GMT + - Fri, 21 Jan 2022 13:53:14 GMT Pragma: - no-cache Strict-Transport-Security: @@ -146,29 +146,29 @@ interactions: X-Ratelimit-Remaining: - "11998" X-Ratelimit-Reset: - - "28" + - "46" status: 200 OK code: 200 duration: "" - request: body: | - {"config":{"assertions":[],"configVariables":[{"id":"df391781-7976-470e-8c43-251482dd87ec","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":{"password":"secret","username":"admin"},"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","query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1641316931","options":{"min_location_failed":1,"tick_every":900},"status":"paused","subtype":"multi","tags":["multistep"],"type":"api"} + {"config":{"assertions":[],"configVariables":[{"id":"c7e9947e-ff15-413d-a203-da16bfb896a4","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","query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1642773192","options":{"min_location_failed":1,"tick_every":900},"status":"paused","subtype":"multi","tags":["multistep"],"type":"api"} form: {} headers: Accept: - application/json Content-Length: - - "1161" + - "1295" Content-Type: - application/json Dd-Operation-Id: - CreateSyntheticsAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.15.4) datadog-api-client-go/1.7.1+dev (go go1.17.3; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/api method: POST response: - body: '{"status":"paused","public_id":"f64-cqq-hsc","tags":["multistep"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1641316931","monitor_id":59443375,"type":"api","created_at":"2022-01-04T17:22:33.396290+00:00","modified_at":"2022-01-04T17:22:33.396290+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":{"username":"admin","password":"secret"},"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":"7x4-vuq-wrj","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]}],"assertions":[],"configVariables":[{"type":"global","id":"df391781-7976-470e-8c43-251482dd87ec","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"6gq-waj-6eg","tags":["multistep"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1642773192","monitor_id":61781250,"type":"api","created_at":"2022-01-21T13:53:15.227196+00:00","modified_at":"2022-01-21T13:53:15.227196+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"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"zwv-y4k-i34","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]}],"assertions":[],"configVariables":[{"type":"global","id":"c7e9947e-ff15-413d-a203-da16bfb896a4","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -179,7 +179,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 04 Jan 2022 17:22:33 GMT + - Fri, 21 Jan 2022 13:53:15 GMT Pragma: - no-cache Strict-Transport-Security: @@ -199,7 +199,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "27" + - "45" status: 200 OK code: 200 duration: "" @@ -212,11 +212,11 @@ interactions: Dd-Operation-Id: - GetAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.15.4) datadog-api-client-go/1.7.1+dev (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/f64-cqq-hsc + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/6gq-waj-6eg method: GET response: - body: '{"status":"paused","public_id":"f64-cqq-hsc","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1641316931","monitor_id":59443375,"type":"api","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":{"username":"admin","password":"secret"},"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":"7x4-vuq-wrj","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]}],"assertions":[],"configVariables":[{"type":"global","id":"df391781-7976-470e-8c43-251482dd87ec","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"6gq-waj-6eg","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1642773192","monitor_id":61781250,"type":"api","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"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"zwv-y4k-i34","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]}],"assertions":[],"configVariables":[{"type":"global","id":"c7e9947e-ff15-413d-a203-da16bfb896a4","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -227,7 +227,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 04 Jan 2022 17:22:33 GMT + - Fri, 21 Jan 2022 13:53:15 GMT Pragma: - no-cache Strict-Transport-Security: @@ -247,7 +247,7 @@ interactions: X-Ratelimit-Remaining: - "999" X-Ratelimit-Reset: - - "27" + - "45" status: 200 OK code: 200 duration: "" @@ -258,13 +258,13 @@ interactions: Accept: - application/json Dd-Operation-Id: - - GetTest + - GetGlobalVariable User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.15.4) datadog-api-client-go/1.7.1+dev (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/f64-cqq-hsc + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/variables/c7e9947e-ff15-413d-a203-da16bfb896a4 method: GET response: - body: '{"status":"paused","public_id":"f64-cqq-hsc","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1641316931","monitor_id":59443375,"type":"api","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":{"username":"admin","password":"secret"},"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":"7x4-vuq-wrj","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]}],"assertions":[],"configVariables":[{"type":"global","id":"df391781-7976-470e-8c43-251482dd87ec","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' + 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":"c7e9947e-ff15-413d-a203-da16bfb896a4","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1642773192","created_at":"2022-01-21T13:53:14.539750+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:53:14.539750+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' headers: Cache-Control: - no-cache @@ -275,7 +275,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 04 Jan 2022 17:22:35 GMT + - Fri, 21 Jan 2022 13:53:15 GMT Pragma: - no-cache Strict-Transport-Security: @@ -287,15 +287,15 @@ interactions: X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "1000" + - "12000" X-Ratelimit-Name: - - synthetics_export + - synthetics_get_variable X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "998" + - "11997" X-Ratelimit-Reset: - - "25" + - "45" status: 200 OK code: 200 duration: "" @@ -306,13 +306,13 @@ interactions: Accept: - application/json Dd-Operation-Id: - - GetGlobalVariable + - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.15.4) datadog-api-client-go/1.7.1+dev (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/df391781-7976-470e-8c43-251482dd87ec + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/6gq-waj-6eg 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":"df391781-7976-470e-8c43-251482dd87ec","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1641316931","created_at":"2022-01-04T17:22:32.588862+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-04T17:22:32.588862+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' + body: '{"status":"paused","public_id":"6gq-waj-6eg","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1642773192","monitor_id":61781250,"type":"api","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"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"zwv-y4k-i34","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]}],"assertions":[],"configVariables":[{"type":"global","id":"c7e9947e-ff15-413d-a203-da16bfb896a4","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -323,7 +323,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 04 Jan 2022 17:22:35 GMT + - Fri, 21 Jan 2022 13:53:15 GMT Pragma: - no-cache Strict-Transport-Security: @@ -335,15 +335,15 @@ interactions: X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "12000" + - "1000" X-Ratelimit-Name: - - synthetics_get_variable + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11997" + - "998" X-Ratelimit-Reset: - - "25" + - "45" status: 200 OK code: 200 duration: "" @@ -356,11 +356,11 @@ interactions: Dd-Operation-Id: - GetGlobalVariable User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.15.4) datadog-api-client-go/1.7.1+dev (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/df391781-7976-470e-8c43-251482dd87ec + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/variables/c7e9947e-ff15-413d-a203-da16bfb896a4 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":"df391781-7976-470e-8c43-251482dd87ec","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1641316931","created_at":"2022-01-04T17:22:32.588862+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-04T17:22:32.588862+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":"c7e9947e-ff15-413d-a203-da16bfb896a4","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1642773192","created_at":"2022-01-21T13:53:14.539750+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:53:14.539750+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' headers: Cache-Control: - no-cache @@ -371,7 +371,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 04 Jan 2022 17:22:42 GMT + - Fri, 21 Jan 2022 13:53:16 GMT Pragma: - no-cache Strict-Transport-Security: @@ -391,7 +391,7 @@ interactions: X-Ratelimit-Remaining: - "11996" X-Ratelimit-Reset: - - "18" + - "44" status: 200 OK code: 200 duration: "" @@ -404,11 +404,11 @@ interactions: Dd-Operation-Id: - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.15.4) datadog-api-client-go/1.7.1+dev (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/f64-cqq-hsc + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/6gq-waj-6eg method: GET response: - body: '{"status":"paused","public_id":"f64-cqq-hsc","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1641316931","monitor_id":59443375,"type":"api","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":{"username":"admin","password":"secret"},"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":"7x4-vuq-wrj","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]}],"assertions":[],"configVariables":[{"type":"global","id":"df391781-7976-470e-8c43-251482dd87ec","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"6gq-waj-6eg","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1642773192","monitor_id":61781250,"type":"api","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"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"zwv-y4k-i34","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]}],"assertions":[],"configVariables":[{"type":"global","id":"c7e9947e-ff15-413d-a203-da16bfb896a4","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -419,7 +419,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 04 Jan 2022 17:22:43 GMT + - Fri, 21 Jan 2022 13:53:16 GMT Pragma: - no-cache Strict-Transport-Security: @@ -439,7 +439,7 @@ interactions: X-Ratelimit-Remaining: - "997" X-Ratelimit-Reset: - - "17" + - "44" status: 200 OK code: 200 duration: "" @@ -452,11 +452,11 @@ interactions: Dd-Operation-Id: - GetAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.15.4) datadog-api-client-go/1.7.1+dev (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/f64-cqq-hsc + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/6gq-waj-6eg method: GET response: - body: '{"status":"paused","public_id":"f64-cqq-hsc","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1641316931","monitor_id":59443375,"type":"api","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":{"username":"admin","password":"secret"},"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":"7x4-vuq-wrj","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]}],"assertions":[],"configVariables":[{"type":"global","id":"df391781-7976-470e-8c43-251482dd87ec","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"6gq-waj-6eg","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1642773192","monitor_id":61781250,"type":"api","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"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"zwv-y4k-i34","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]}],"assertions":[],"configVariables":[{"type":"global","id":"c7e9947e-ff15-413d-a203-da16bfb896a4","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -467,7 +467,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 04 Jan 2022 17:22:43 GMT + - Fri, 21 Jan 2022 13:53:16 GMT Pragma: - no-cache Strict-Transport-Security: @@ -487,13 +487,13 @@ interactions: X-Ratelimit-Remaining: - "996" X-Ratelimit-Reset: - - "17" + - "44" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["f64-cqq-hsc"]} + {"public_ids":["6gq-waj-6eg"]} form: {} headers: Accept: @@ -505,11 +505,11 @@ interactions: Dd-Operation-Id: - DeleteTests User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.15.4) datadog-api-client-go/1.7.1+dev (go go1.17.3; os darwin; arch amd64) + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-01-04T17:22:57.155507+00:00","public_id":"f64-cqq-hsc"}]}' + body: '{"deleted_tests":[{"deleted_at":"2022-01-21T13:53:17.700039+00:00","public_id":"6gq-waj-6eg"}]}' headers: Cache-Control: - no-cache @@ -520,7 +520,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 04 Jan 2022 17:22:57 GMT + - Fri, 21 Jan 2022 13:53:17 GMT Pragma: - no-cache Strict-Transport-Security: @@ -540,7 +540,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "3" + - "43" status: 200 OK code: 200 duration: "" @@ -553,8 +553,8 @@ interactions: Dd-Operation-Id: - DeleteGlobalVariable User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.15.4) datadog-api-client-go/1.7.1+dev (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/df391781-7976-470e-8c43-251482dd87ec + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/variables/c7e9947e-ff15-413d-a203-da16bfb896a4 method: DELETE response: body: '{}' @@ -570,7 +570,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 04 Jan 2022 17:22:57 GMT + - Fri, 21 Jan 2022 13:53:18 GMT Pragma: - no-cache Strict-Transport-Security: @@ -588,7 +588,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "3" + - "43" status: 200 OK code: 200 duration: "" @@ -599,13 +599,13 @@ interactions: Accept: - application/json Dd-Operation-Id: - - GetTest + - GetGlobalVariable User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.15.4) datadog-api-client-go/1.7.1+dev (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/f64-cqq-hsc + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/variables/c7e9947e-ff15-413d-a203-da16bfb896a4 method: GET response: - body: '{"errors": ["Synthetics test not found"]}' + body: '{"errors": ["Synthetics global variable not found"]}' headers: Cache-Control: - no-cache @@ -616,7 +616,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 04 Jan 2022 17:22:57 GMT + - Fri, 21 Jan 2022 13:53:18 GMT Pragma: - no-cache Strict-Transport-Security: @@ -628,15 +628,15 @@ interactions: X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "1000" + - "12000" X-Ratelimit-Name: - - synthetics_export + - synthetics_get_variable X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "995" + - "11995" X-Ratelimit-Reset: - - "3" + - "42" status: 404 Not Found code: 404 duration: "" @@ -647,13 +647,13 @@ interactions: Accept: - application/json Dd-Operation-Id: - - GetGlobalVariable + - GetTest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.15.4) datadog-api-client-go/1.7.1+dev (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/df391781-7976-470e-8c43-251482dd87ec + - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/6gq-waj-6eg method: GET response: - body: '{"errors": ["Synthetics global variable not found"]}' + body: '{"errors": ["Synthetics test not found"]}' headers: Cache-Control: - no-cache @@ -664,7 +664,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 04 Jan 2022 17:22:57 GMT + - Fri, 21 Jan 2022 13:53:18 GMT Pragma: - no-cache Strict-Transport-Security: @@ -676,15 +676,15 @@ interactions: X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: - - "12000" + - "1000" X-Ratelimit-Name: - - synthetics_get_variable + - synthetics_export X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11995" + - "995" X-Ratelimit-Reset: - - "3" + - "42" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/tests/resource_datadog_synthetics_test_test.go b/datadog/tests/resource_datadog_synthetics_test_test.go index 1d833d68aa..8cc3fed08c 100644 --- a/datadog/tests/resource_datadog_synthetics_test_test.go +++ b/datadog/tests/resource_datadog_synthetics_test_test.go @@ -462,6 +462,18 @@ func createSyntheticsAPITestStep(ctx context.Context, accProvider func() (*schem "datadog_synthetics_test.foo", "request_definition.0.body", "this is a body"), resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "request_definition.0.no_saving_response_body", "true"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.foo", "request_basicauth.#", "1"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.foo", "request_basicauth.0.type", "ntlm"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.foo", "request_basicauth.0.username", "ntlm-username"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.foo", "request_basicauth.0.password", "ntlm-password"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.foo", "request_basicauth.0.domain", "ntlm-domain"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.foo", "request_basicauth.0.workstation", "ntlm-workstation"), resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "assertion.#", "4"), resource.TestCheckResourceAttr( @@ -556,6 +568,14 @@ resource "datadog_synthetics_test" "foo" { X-Datadog-Trace-ID = "1234566789" } + request_basicauth { + type = "ntlm" + username = "ntlm-username" + password = "ntlm-password" + domain = "ntlm-domain" + workstation = "ntlm-workstation" + } + assertion { type = "header" property = "content-type" @@ -628,6 +648,8 @@ func createSyntheticsAPITestStepNewAssertionsOptions(ctx context.Context, accPro "datadog_synthetics_test.bar", "request_query.foo", "bar"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "request_basicauth.#", "1"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "request_basicauth.0.type", "web"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "request_basicauth.0.username", "admin"), resource.TestCheckResourceAttr( @@ -1920,6 +1942,14 @@ func createSyntheticsBrowserTestStep(ctx context.Context, accProvider func() (*s "datadog_synthetics_test.bar", "request_headers.Accept", "application/json"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "request_headers.X-Datadog-Trace-ID", "123456789"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "request_basicauth.#", "1"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "request_basicauth.0.type", "web"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "request_basicauth.0.username", "username"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "request_basicauth.0.password", "password"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "set_cookie", "name=value"), resource.TestCheckResourceAttr( @@ -2010,6 +2040,11 @@ resource "datadog_synthetics_test" "bar" { X-Datadog-Trace-ID = "123456789" } + request_basicauth { + username = "username" + password = "password" + } + set_cookie = "name=value" device_ids = [ "laptop_large", "mobile_small" ] @@ -2229,6 +2264,18 @@ func createSyntheticsBrowserTestBrowserVariablesStep(ctx context.Context, accPro "datadog_synthetics_test.bar", "request_definition.0.method", "GET"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "request_definition.0.url", "https://www.datadoghq.com"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "request_basicauth.#", "1"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "request_basicauth.0.type", "ntlm"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "request_basicauth.0.username", "ntlm-username"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "request_basicauth.0.password", "ntlm-password"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "request_basicauth.0.domain", "ntlm-domain"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "request_basicauth.0.workstation", "ntlm-workstation"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "device_ids.#", "1"), resource.TestCheckResourceAttr( @@ -2291,6 +2338,14 @@ resource "datadog_synthetics_test" "bar" { url = "https://www.datadoghq.com" } + request_basicauth { + type = "ntlm" + username = "ntlm-username" + password = "ntlm-password" + domain = "ntlm-domain" + workstation = "ntlm-workstation" + } + device_ids = [ "laptop_large" ] locations = [ "aws:eu-central-1" ] options_list { @@ -2951,9 +3006,17 @@ func createSyntheticsMultistepAPITest(ctx context.Context, accProvider func() (* resource.TestCheckResourceAttr( "datadog_synthetics_test.multi", "api_step.0.request_basicauth.#", "1"), resource.TestCheckResourceAttr( - "datadog_synthetics_test.multi", "api_step.0.request_basicauth.0.username", "admin"), + "datadog_synthetics_test.multi", "api_step.0.request_basicauth.0.type", "sigv4"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.multi", "api_step.0.request_basicauth.0.access_key", "sigv4-access-key"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.multi", "api_step.0.request_basicauth.0.secret_key", "sigv4-secret-key"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.multi", "api_step.0.request_basicauth.0.region", "sigv4-region"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.multi", "api_step.0.request_basicauth.0.service_name", "sigv4-service-name"), resource.TestCheckResourceAttr( - "datadog_synthetics_test.multi", "api_step.0.request_basicauth.0.password", "secret"), + "datadog_synthetics_test.multi", "api_step.0.request_basicauth.0.session_token", "sigv4-session-token"), resource.TestCheckResourceAttr( "datadog_synthetics_test.multi", "api_step.0.request_client_certificate.0.cert.0.filename", "Provided in Terraform config"), resource.TestCheckResourceAttr( @@ -3047,8 +3110,12 @@ resource "datadog_synthetics_test" "multi" { foo = "bar" } request_basicauth { - username = "admin" - password = "secret" + type = "sigv4" + access_key = "sigv4-access-key" + secret_key = "sigv4-secret-key" + region = "sigv4-region" + service_name = "sigv4-service-name" + session_token = "sigv4-session-token" } request_client_certificate { cert { From 5304cc5bfce115e1f72285a552d1a29e2101e24d Mon Sep 17 00:00:00 2001 From: Romain Berger Date: Tue, 25 Jan 2022 07:11:20 +0100 Subject: [PATCH 3/7] [Synthetics] Add request proxy for synthetics tests --- datadog/resource_datadog_synthetics_test_.go | 88 +++++++++++- ...stAccDatadogSyntheticsAPITest_Basic.freeze | 2 +- ...TestAccDatadogSyntheticsAPITest_Basic.yaml | 68 ++++----- ...csAPITest_BasicNewAssertionsOptions.freeze | 2 +- ...ticsAPITest_BasicNewAssertionsOptions.yaml | 68 ++++----- ...AccDatadogSyntheticsAPITest_Updated.freeze | 2 +- ...stAccDatadogSyntheticsAPITest_Updated.yaml | 122 ++++++++-------- ...APITest_UpdatedNewAssertionsOptions.freeze | 2 +- ...csAPITest_UpdatedNewAssertionsOptions.yaml | 130 +++++++++--------- ...atadogSyntheticsAPITest_importBasic.freeze | 2 +- ...cDatadogSyntheticsAPITest_importBasic.yaml | 64 ++++----- ...cDatadogSyntheticsBrowserTest_Basic.freeze | 2 +- ...AccDatadogSyntheticsBrowserTest_Basic.yaml | 56 ++++---- ...atadogSyntheticsBrowserTest_Updated.freeze | 2 +- ...cDatadogSyntheticsBrowserTest_Updated.yaml | 106 +++++++------- ...ogSyntheticsBrowserTest_importBasic.freeze | 2 +- ...adogSyntheticsBrowserTest_importBasic.yaml | 76 +++++----- ...dogSyntheticsTestMultistepApi_Basic.freeze | 2 +- ...tadogSyntheticsTestMultistepApi_Basic.yaml | 108 +++++++-------- .../resource_datadog_synthetics_test_test.go | 57 +++++++- 20 files changed, 548 insertions(+), 413 deletions(-) diff --git a/datadog/resource_datadog_synthetics_test_.go b/datadog/resource_datadog_synthetics_test_.go index 2ebf6b1b03..39252c8103 100644 --- a/datadog/resource_datadog_synthetics_test_.go +++ b/datadog/resource_datadog_synthetics_test_.go @@ -62,6 +62,7 @@ func resourceDatadogSyntheticsTest() *schema.Resource { "request_headers": syntheticsTestRequestHeaders(), "request_query": syntheticsTestRequestQuery(), "request_basicauth": syntheticsTestRequestBasicAuth(), + "request_proxy": syntheticsTestRequestProxy(), "request_client_certificate": syntheticsTestRequestClientCertificate(), "assertion": syntheticsAPIAssertion(), "browser_variable": syntheticsBrowserVariable(), @@ -280,6 +281,25 @@ func syntheticsTestRequestBasicAuth() *schema.Schema { } } +func syntheticsTestRequestProxy() *schema.Schema { + return &schema.Schema{ + Description: "The proxy to perform the test.", + Type: schema.TypeList, + Optional: true, + MaxItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "url": { + Type: schema.TypeString, + Description: "URL of the proxy to perform the test.", + Required: true, + }, + "headers": syntheticsTestRequestHeaders(), + }, + }, + } +} + func syntheticsTestRequestClientCertificate() *schema.Schema { return &schema.Schema{ Description: "Client certificate to use when performing the test request. Exactly one nested block is allowed with the structure below.", @@ -549,6 +569,7 @@ func syntheticsTestAPIStep() *schema.Schema { "request_headers": syntheticsTestRequestHeaders(), "request_query": syntheticsTestRequestQuery(), "request_basicauth": syntheticsTestRequestBasicAuth(), + "request_proxy": syntheticsTestRequestProxy(), "request_client_certificate": syntheticsTestRequestClientCertificate(), "assertion": syntheticsAPIAssertion(), "allow_failure": { @@ -1116,7 +1137,7 @@ func buildSyntheticsAPITestStruct(d *schema.ResourceData) *datadogV1.SyntheticsA } k.Remove(parts) - request = completeSyntheticsTestRequest(request, d.Get("request_headers").(map[string]interface{}), d.Get("request_query").(map[string]interface{}), d.Get("request_basicauth").([]interface{}), d.Get("request_client_certificate").([]interface{})) + request = completeSyntheticsTestRequest(request, d.Get("request_headers").(map[string]interface{}), d.Get("request_query").(map[string]interface{}), d.Get("request_basicauth").([]interface{}), d.Get("request_client_certificate").([]interface{}), d.Get("request_proxy").([]interface{})) config := datadogV1.NewSyntheticsAPITestConfigWithDefaults() @@ -1183,7 +1204,7 @@ func buildSyntheticsAPITestStruct(d *schema.ResourceData) *datadogV1.SyntheticsA request.SetFollowRedirects(requestMap["follow_redirects"].(bool)) } - request = completeSyntheticsTestRequest(request, stepMap["request_headers"].(map[string]interface{}), stepMap["request_query"].(map[string]interface{}), stepMap["request_basicauth"].([]interface{}), stepMap["request_client_certificate"].([]interface{})) + request = completeSyntheticsTestRequest(request, stepMap["request_headers"].(map[string]interface{}), stepMap["request_query"].(map[string]interface{}), stepMap["request_basicauth"].([]interface{}), stepMap["request_client_certificate"].([]interface{}), stepMap["request_proxy"].([]interface{})) step.SetRequest(request) @@ -1295,7 +1316,7 @@ func buildSyntheticsAPITestStruct(d *schema.ResourceData) *datadogV1.SyntheticsA return syntheticsTest } -func completeSyntheticsTestRequest(request datadogV1.SyntheticsTestRequest, requestHeaders map[string]interface{}, requestQuery map[string]interface{}, basicAuth []interface{}, requestClientCertificates []interface{}) datadogV1.SyntheticsTestRequest { +func completeSyntheticsTestRequest(request datadogV1.SyntheticsTestRequest, requestHeaders map[string]interface{}, requestQuery map[string]interface{}, basicAuth []interface{}, requestClientCertificates []interface{}, requestProxy []interface{}) datadogV1.SyntheticsTestRequest { if len(requestHeaders) > 0 { headers := make(map[string]string, len(requestHeaders)) @@ -1381,6 +1402,23 @@ func completeSyntheticsTestRequest(request datadogV1.SyntheticsTestRequest, requ request.SetCertificate(requestClientCertificate) } + if len(requestProxy) > 0 { + if proxy, ok := requestProxy[0].(map[string]interface{}); ok { + requestProxy := datadogV1.SyntheticsTestRequestProxy{} + requestProxy.SetUrl(proxy["url"].(string)) + + proxyHeaders := make(map[string]string, len(proxy["headers"].(map[string]interface{}))) + + for k, v := range proxy["headers"].(map[string]interface{}) { + proxyHeaders[k] = v.(string) + } + + requestProxy.SetHeaders(proxyHeaders) + + request.SetProxy(requestProxy) + } + } + return request } @@ -1527,6 +1565,26 @@ func buildSyntheticsBrowserTestStruct(d *schema.ResourceData) *datadogV1.Synthet request.SetCertificate(clientCertificate) } + if _, ok := d.GetOk("request_proxy"); ok { + requestProxy := datadogV1.SyntheticsTestRequestProxy{} + + if url, ok := d.GetOk("request_proxy.0.url"); ok { + requestProxy.SetUrl(url.(string)) + + if headers, ok := d.GetOk("request_proxy.0.headers"); ok { + proxyHeaders := make(map[string]string, len(headers.(map[string]interface{}))) + + for k, v := range headers.(map[string]interface{}) { + proxyHeaders[k] = v.(string) + } + + requestProxy.SetHeaders(proxyHeaders) + } + + request.SetProxy(requestProxy) + } + } + config := datadogV1.SyntheticsBrowserTestConfig{} config.SetAssertions([]datadogV1.SyntheticsAssertion{}) config.SetRequest(request) @@ -1953,6 +2011,14 @@ func updateSyntheticsBrowserTestLocalState(d *schema.ResourceData, syntheticsTes } } + if proxy, ok := actualRequest.GetProxyOk(); ok { + localProxy := make(map[string]interface{}) + localProxy["url"] = proxy.GetUrl() + localProxy["headers"] = proxy.GetHeaders() + + d.Set("request_proxy", []map[string]interface{}{localProxy}) + } + // assertions are required but not used for browser tests localAssertions := make([]map[string]interface{}, 0) @@ -2201,6 +2267,14 @@ func updateSyntheticsAPITestLocalState(d *schema.ResourceData, syntheticsTest *d } } + if proxy, ok := actualRequest.GetProxyOk(); ok { + localProxy := make(map[string]interface{}) + localProxy["url"] = proxy.GetUrl() + localProxy["headers"] = proxy.GetHeaders() + + d.Set("request_proxy", []map[string]interface{}{localProxy}) + } + actualAssertions := config.GetAssertions() localAssertions, err := buildLocalAssertions(actualAssertions) @@ -2298,6 +2372,14 @@ func updateSyntheticsAPITestLocalState(d *schema.ResourceData, syntheticsTest *d localStep["request_client_certificate"] = []map[string][]map[string]string{localCertificate} } + if proxy, ok := stepRequest.GetProxyOk(); ok { + localProxy := make(map[string]interface{}) + localProxy["url"] = proxy.GetUrl() + localProxy["headers"] = proxy.GetHeaders() + + localStep["request_proxy"] = []map[string]interface{}{localProxy} + } + localStep["allow_failure"] = step.GetAllowFailure() localStep["is_critical"] = step.GetIsCritical() diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze index 19efd8d660..8f9031f9c3 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.freeze @@ -1 +1 @@ -2022-01-21T12:01:57.394416+01:00 \ No newline at end of file +2022-01-25T06:56:42.25377+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml index 7e705ebeef..0cdd4e180d 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Basic.yaml @@ -3,13 +3,13 @@ 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":"1234566789"},"method":"GET","noSavingResponseBody":true,"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917","options":{"allow_insecure":true,"follow_redirects":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917-monitor","monitor_priority":5,"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-1643090202","options":{"allow_insecure":true,"follow_redirects":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1643090202-monitor","monitor_priority":5,"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: - application/json Content-Length: - - "1181" + - "1289" Content-Type: - application/json Dd-Operation-Id: @@ -19,7 +19,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/api method: POST response: - body: '{"status":"paused","public_id":"xv5-qf3-uye","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917","monitor_id":61770516,"type":"api","created_at":"2022-01-21T11:01:59.444205+00:00","modified_at":"2022-01-21T11:01:59.444205+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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"27v-mwp-sy2","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1643090202","monitor_id":62005120,"type":"api","created_at":"2022-01-25T05:56:44.143867+00:00","modified_at":"2022-01-25T05:56:44.143867+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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1643090202-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -30,7 +30,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 11:01:59 GMT + - Tue, 25 Jan 2022 05:56:44 GMT Pragma: - no-cache Strict-Transport-Security: @@ -48,9 +48,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11996" + - "11999" X-Ratelimit-Reset: - - "1" + - "16" status: 200 OK code: 200 duration: "" @@ -64,10 +64,10 @@ interactions: - GetAPITest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/xv5-qf3-uye + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/27v-mwp-sy2 method: GET response: - body: '{"status":"paused","public_id":"xv5-qf3-uye","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917","monitor_id":61770516,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"27v-mwp-sy2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1643090202","monitor_id":62005120,"type":"api","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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1643090202-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -78,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 11:01:59 GMT + - Tue, 25 Jan 2022 05:56:44 GMT Pragma: - no-cache Strict-Transport-Security: @@ -96,9 +96,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "990" + - "999" X-Ratelimit-Reset: - - "1" + - "16" status: 200 OK code: 200 duration: "" @@ -112,10 +112,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/xv5-qf3-uye + url: https://api.datadoghq.com/api/v1/synthetics/tests/27v-mwp-sy2 method: GET response: - body: '{"status":"paused","public_id":"xv5-qf3-uye","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917","monitor_id":61770516,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"27v-mwp-sy2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1643090202","monitor_id":62005120,"type":"api","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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1643090202-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -126,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 11:02:00 GMT + - Tue, 25 Jan 2022 05:56:44 GMT Pragma: - no-cache Strict-Transport-Security: @@ -144,9 +144,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "988" + - "997" X-Ratelimit-Reset: - - "1" + - "16" status: 200 OK code: 200 duration: "" @@ -160,10 +160,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/xv5-qf3-uye + url: https://api.datadoghq.com/api/v1/synthetics/tests/27v-mwp-sy2 method: GET response: - body: '{"status":"paused","public_id":"xv5-qf3-uye","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917","monitor_id":61770516,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"27v-mwp-sy2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1643090202","monitor_id":62005120,"type":"api","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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1643090202-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -174,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 11:02:00 GMT + - Tue, 25 Jan 2022 05:56:45 GMT Pragma: - no-cache Strict-Transport-Security: @@ -192,9 +192,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "999" + - "995" X-Ratelimit-Reset: - - "60" + - "15" status: 200 OK code: 200 duration: "" @@ -208,10 +208,10 @@ interactions: - GetAPITest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/xv5-qf3-uye + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/27v-mwp-sy2 method: GET response: - body: '{"status":"paused","public_id":"xv5-qf3-uye","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917","monitor_id":61770516,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1642762917-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"27v-mwp-sy2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1643090202","monitor_id":62005120,"type":"api","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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Basic-local-1643090202-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -222,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 11:02:01 GMT + - Tue, 25 Jan 2022 05:56:45 GMT Pragma: - no-cache Strict-Transport-Security: @@ -240,15 +240,15 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "997" + - "993" X-Ratelimit-Reset: - - "60" + - "15" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["xv5-qf3-uye"]} + {"public_ids":["27v-mwp-sy2"]} form: {} headers: Accept: @@ -264,7 +264,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-01-21T11:02:02.310826+00:00","public_id":"xv5-qf3-uye"}]}' + body: '{"deleted_tests":[{"deleted_at":"2022-01-25T05:56:46.250160+00:00","public_id":"27v-mwp-sy2"}]}' headers: Cache-Control: - no-cache @@ -275,7 +275,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 11:02:02 GMT + - Tue, 25 Jan 2022 05:56:46 GMT Pragma: - no-cache Strict-Transport-Security: @@ -295,7 +295,7 @@ interactions: X-Ratelimit-Remaining: - "11998" X-Ratelimit-Reset: - - "58" + - "14" status: 200 OK code: 200 duration: "" @@ -309,7 +309,7 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/xv5-qf3-uye + url: https://api.datadoghq.com/api/v1/synthetics/tests/27v-mwp-sy2 method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -323,7 +323,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 11:02:03 GMT + - Tue, 25 Jan 2022 05:56:46 GMT Pragma: - no-cache Strict-Transport-Security: @@ -341,9 +341,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "994" + - "991" X-Ratelimit-Reset: - - "57" + - "14" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze index 61878cf362..f21cf8ae93 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze @@ -1 +1 @@ -2022-01-21T12:01:57.394428+01:00 \ No newline at end of file +2022-01-25T06:56:42.253784+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml index bc42d95aa6..794fc07db5 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml @@ -3,13 +3,13 @@ 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 }}"},"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":"1234566789"},"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-1642762917","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":100},"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 }}"},"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-1643090202","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":100},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: - application/json Content-Length: - - "1566" + - "1565" Content-Type: - application/json Dd-Operation-Id: @@ -19,7 +19,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/api method: POST response: - body: '{"status":"paused","public_id":"n4s-b48-mmd","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1642762917","monitor_id":61770515,"type":"api","created_at":"2022-01-21T11:01:59.380629+00:00","modified_at":"2022-01-21T11:01:59.380629+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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"pyr-cbm-948","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1643090202","monitor_id":62005121,"type":"api","created_at":"2022-01-25T05:56:44.188484+00:00","modified_at":"2022-01-25T05:56:44.188484+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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -30,7 +30,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 11:01:59 GMT + - Tue, 25 Jan 2022 05:56:44 GMT Pragma: - no-cache Strict-Transport-Security: @@ -48,9 +48,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11997" + - "11998" X-Ratelimit-Reset: - - "1" + - "16" status: 200 OK code: 200 duration: "" @@ -64,10 +64,10 @@ interactions: - GetAPITest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/n4s-b48-mmd + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/pyr-cbm-948 method: GET response: - body: '{"status":"paused","public_id":"n4s-b48-mmd","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1642762917","monitor_id":61770515,"type":"api","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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"pyr-cbm-948","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1643090202","monitor_id":62005121,"type":"api","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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -78,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 11:01:59 GMT + - Tue, 25 Jan 2022 05:56:44 GMT Pragma: - no-cache Strict-Transport-Security: @@ -96,9 +96,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "991" + - "998" X-Ratelimit-Reset: - - "1" + - "16" status: 200 OK code: 200 duration: "" @@ -112,10 +112,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/n4s-b48-mmd + url: https://api.datadoghq.com/api/v1/synthetics/tests/pyr-cbm-948 method: GET response: - body: '{"status":"paused","public_id":"n4s-b48-mmd","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1642762917","monitor_id":61770515,"type":"api","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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"pyr-cbm-948","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1643090202","monitor_id":62005121,"type":"api","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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -126,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 11:02:00 GMT + - Tue, 25 Jan 2022 05:56:44 GMT Pragma: - no-cache Strict-Transport-Security: @@ -144,9 +144,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "989" + - "996" X-Ratelimit-Reset: - - "1" + - "16" status: 200 OK code: 200 duration: "" @@ -160,10 +160,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/n4s-b48-mmd + url: https://api.datadoghq.com/api/v1/synthetics/tests/pyr-cbm-948 method: GET response: - body: '{"status":"paused","public_id":"n4s-b48-mmd","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1642762917","monitor_id":61770515,"type":"api","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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"pyr-cbm-948","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1643090202","monitor_id":62005121,"type":"api","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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -174,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 11:02:00 GMT + - Tue, 25 Jan 2022 05:56:45 GMT Pragma: - no-cache Strict-Transport-Security: @@ -192,9 +192,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "998" + - "994" X-Ratelimit-Reset: - - "60" + - "15" status: 200 OK code: 200 duration: "" @@ -208,10 +208,10 @@ interactions: - GetAPITest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/n4s-b48-mmd + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/pyr-cbm-948 method: GET response: - body: '{"status":"paused","public_id":"n4s-b48-mmd","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1642762917","monitor_id":61770515,"type":"api","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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"pyr-cbm-948","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1643090202","monitor_id":62005121,"type":"api","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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -222,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 11:02:00 GMT + - Tue, 25 Jan 2022 05:56:45 GMT Pragma: - no-cache Strict-Transport-Security: @@ -240,15 +240,15 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "996" + - "992" X-Ratelimit-Reset: - - "60" + - "15" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["n4s-b48-mmd"]} + {"public_ids":["pyr-cbm-948"]} form: {} headers: Accept: @@ -264,7 +264,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-01-21T11:02:01.738123+00:00","public_id":"n4s-b48-mmd"}]}' + body: '{"deleted_tests":[{"deleted_at":"2022-01-25T05:56:46.266867+00:00","public_id":"pyr-cbm-948"}]}' headers: Cache-Control: - no-cache @@ -275,7 +275,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 11:02:01 GMT + - Tue, 25 Jan 2022 05:56:46 GMT Pragma: - no-cache Strict-Transport-Security: @@ -295,7 +295,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "59" + - "14" status: 200 OK code: 200 duration: "" @@ -309,7 +309,7 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/n4s-b48-mmd + url: https://api.datadoghq.com/api/v1/synthetics/tests/pyr-cbm-948 method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -323,7 +323,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 11:02:02 GMT + - Tue, 25 Jan 2022 05:56:46 GMT Pragma: - no-cache Strict-Transport-Security: @@ -341,9 +341,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "995" + - "990" X-Ratelimit-Reset: - - "58" + - "14" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze index 9a9e2f6faf..1b77bf8a7f 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.freeze @@ -1 +1 @@ -2022-01-21T14:35:17.777255+01:00 \ No newline at end of file +2022-01-25T07:09:33.425058+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml index bd8c166fc8..cb4916823f 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_Updated.yaml @@ -3,13 +3,13 @@ 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":"1234566789"},"method":"GET","noSavingResponseBody":true,"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117","options":{"allow_insecure":true,"follow_redirects":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117-monitor","monitor_priority":5,"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-1643090973","options":{"allow_insecure":true,"follow_redirects":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1643090973-monitor","monitor_priority":5,"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: - application/json Content-Length: - - "1185" + - "1293" Content-Type: - application/json Dd-Operation-Id: @@ -19,7 +19,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/api method: POST response: - body: '{"status":"paused","public_id":"tky-yj3-q3b","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117","monitor_id":61780360,"type":"api","created_at":"2022-01-21T13:35:19.534552+00:00","modified_at":"2022-01-21T13:35:19.534552+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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"c9d-arf-n7q","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1643090973","monitor_id":62005745,"type":"api","created_at":"2022-01-25T06:09:35.386603+00:00","modified_at":"2022-01-25T06:09:35.386603+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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1643090973-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -30,7 +30,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:19 GMT + - Tue, 25 Jan 2022 06:09:35 GMT Pragma: - no-cache Strict-Transport-Security: @@ -50,7 +50,7 @@ interactions: X-Ratelimit-Remaining: - "11997" X-Ratelimit-Reset: - - "41" + - "25" status: 200 OK code: 200 duration: "" @@ -64,10 +64,10 @@ interactions: - GetAPITest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/tky-yj3-q3b + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/c9d-arf-n7q method: GET response: - body: '{"status":"paused","public_id":"tky-yj3-q3b","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117","monitor_id":61780360,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"c9d-arf-n7q","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1643090973","monitor_id":62005745,"type":"api","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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1643090973-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -78,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:19 GMT + - Tue, 25 Jan 2022 06:09:35 GMT Pragma: - no-cache Strict-Transport-Security: @@ -96,9 +96,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "990" + - "992" X-Ratelimit-Reset: - - "41" + - "25" status: 200 OK code: 200 duration: "" @@ -112,10 +112,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/tky-yj3-q3b + url: https://api.datadoghq.com/api/v1/synthetics/tests/c9d-arf-n7q method: GET response: - body: '{"status":"paused","public_id":"tky-yj3-q3b","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117","monitor_id":61780360,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"c9d-arf-n7q","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1643090973","monitor_id":62005745,"type":"api","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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1643090973-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -126,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:20 GMT + - Tue, 25 Jan 2022 06:09:35 GMT Pragma: - no-cache Strict-Transport-Security: @@ -144,9 +144,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "988" + - "990" X-Ratelimit-Reset: - - "40" + - "25" status: 200 OK code: 200 duration: "" @@ -160,10 +160,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/tky-yj3-q3b + url: https://api.datadoghq.com/api/v1/synthetics/tests/c9d-arf-n7q method: GET response: - body: '{"status":"paused","public_id":"tky-yj3-q3b","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117","monitor_id":61780360,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"c9d-arf-n7q","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1643090973","monitor_id":62005745,"type":"api","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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1643090973-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -174,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:20 GMT + - Tue, 25 Jan 2022 06:09:36 GMT Pragma: - no-cache Strict-Transport-Security: @@ -192,9 +192,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "987" + - "988" X-Ratelimit-Reset: - - "40" + - "24" status: 200 OK code: 200 duration: "" @@ -208,10 +208,10 @@ interactions: - GetAPITest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/tky-yj3-q3b + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/c9d-arf-n7q method: GET response: - body: '{"status":"paused","public_id":"tky-yj3-q3b","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117","monitor_id":61780360,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"c9d-arf-n7q","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1643090973","monitor_id":62005745,"type":"api","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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1643090973-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -222,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:20 GMT + - Tue, 25 Jan 2022 06:09:36 GMT Pragma: - no-cache Strict-Transport-Security: @@ -240,9 +240,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "985" + - "986" X-Ratelimit-Reset: - - "40" + - "24" status: 200 OK code: 200 duration: "" @@ -256,10 +256,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/tky-yj3-q3b + url: https://api.datadoghq.com/api/v1/synthetics/tests/c9d-arf-n7q method: GET response: - body: '{"status":"paused","public_id":"tky-yj3-q3b","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117","monitor_id":61780360,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"c9d-arf-n7q","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1643090973","monitor_id":62005745,"type":"api","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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1643090973-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -270,7 +270,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:21 GMT + - Tue, 25 Jan 2022 06:09:37 GMT Pragma: - no-cache Strict-Transport-Security: @@ -288,9 +288,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "982" + - "984" X-Ratelimit-Reset: - - "39" + - "23" status: 200 OK code: 200 duration: "" @@ -304,10 +304,10 @@ interactions: - GetAPITest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/tky-yj3-q3b + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/c9d-arf-n7q method: GET response: - body: '{"status":"paused","public_id":"tky-yj3-q3b","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117","monitor_id":61780360,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"c9d-arf-n7q","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1643090973","monitor_id":62005745,"type":"api","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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1643090973-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -318,7 +318,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:21 GMT + - Tue, 25 Jan 2022 06:09:37 GMT Pragma: - no-cache Strict-Transport-Security: @@ -336,15 +336,15 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "981" + - "983" X-Ratelimit-Reset: - - "39" + - "23" status: 200 OK code: 200 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-1642772117-updated","options":{"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":100},"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-1643090973-updated","options":{"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":100},"retry":{"count":3,"interval":500},"tick_every":900},"status":"live","subtype":"http","tags":["foo:bar","foo","env:test"],"type":"api"} form: {} headers: Accept: @@ -357,10 +357,10 @@ interactions: - UpdateAPITest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/tky-yj3-q3b + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/c9d-arf-n7q method: PUT response: - body: '{"status":"live","public_id":"tky-yj3-q3b","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-1642772117-updated","monitor_id":61780360,"type":"api","created_at":"2022-01-21T13:35:19.534552+00:00","modified_at":"2022-01-21T13:35:22.529475+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"retry":{"count":3,"interval":500},"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' + body: '{"status":"live","public_id":"c9d-arf-n7q","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-1643090973-updated","monitor_id":62005745,"type":"api","created_at":"2022-01-25T06:09:35.386603+00:00","modified_at":"2022-01-25T06:09:38.241040+00:00","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"retry":{"count":3,"interval":500},"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' headers: Cache-Control: - no-cache @@ -371,7 +371,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:22 GMT + - Tue, 25 Jan 2022 06:09:39 GMT Pragma: - no-cache Strict-Transport-Security: @@ -391,7 +391,7 @@ interactions: X-Ratelimit-Remaining: - "499" X-Ratelimit-Reset: - - "38" + - "22" status: 200 OK code: 200 duration: "" @@ -405,10 +405,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/tky-yj3-q3b + url: https://api.datadoghq.com/api/v1/synthetics/tests/c9d-arf-n7q method: GET response: - body: '{"status":"live","public_id":"tky-yj3-q3b","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117-updated","monitor_id":61780360,"type":"api","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":100},"retry":{"count":3,"interval":500},"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' + body: '{"status":"live","public_id":"c9d-arf-n7q","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1643090973-updated","monitor_id":62005745,"type":"api","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":100},"retry":{"count":3,"interval":500},"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' headers: Cache-Control: - no-cache @@ -419,7 +419,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:22 GMT + - Tue, 25 Jan 2022 06:09:39 GMT Pragma: - no-cache Strict-Transport-Security: @@ -439,7 +439,7 @@ interactions: X-Ratelimit-Remaining: - "978" X-Ratelimit-Reset: - - "38" + - "21" status: 200 OK code: 200 duration: "" @@ -453,10 +453,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/tky-yj3-q3b + url: https://api.datadoghq.com/api/v1/synthetics/tests/c9d-arf-n7q method: GET response: - body: '{"status":"live","public_id":"tky-yj3-q3b","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117-updated","monitor_id":61780360,"type":"api","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":100},"retry":{"count":3,"interval":500},"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' + body: '{"status":"live","public_id":"c9d-arf-n7q","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1643090973-updated","monitor_id":62005745,"type":"api","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":100},"retry":{"count":3,"interval":500},"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' headers: Cache-Control: - no-cache @@ -467,7 +467,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:23 GMT + - Tue, 25 Jan 2022 06:09:40 GMT Pragma: - no-cache Strict-Transport-Security: @@ -487,7 +487,7 @@ interactions: X-Ratelimit-Remaining: - "977" X-Ratelimit-Reset: - - "37" + - "20" status: 200 OK code: 200 duration: "" @@ -501,10 +501,10 @@ interactions: - GetAPITest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/tky-yj3-q3b + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/c9d-arf-n7q method: GET response: - body: '{"status":"live","public_id":"tky-yj3-q3b","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1642772117-updated","monitor_id":61780360,"type":"api","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":100},"retry":{"count":3,"interval":500},"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' + body: '{"status":"live","public_id":"c9d-arf-n7q","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-local-1643090973-updated","monitor_id":62005745,"type":"api","subtype":"http","config":{"request":{"url":"https://docs.datadoghq.com","method":"GET","timeout":60},"assertions":[{"operator":"isNot","type":"statusCode","target":500}],"configVariables":[]},"options":{"monitor_options":{"renotify_interval":100},"retry":{"count":3,"interval":500},"min_failure_duration":10,"tick_every":900,"min_location_failed":1}}' headers: Cache-Control: - no-cache @@ -515,7 +515,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:23 GMT + - Tue, 25 Jan 2022 06:09:40 GMT Pragma: - no-cache Strict-Transport-Security: @@ -533,15 +533,15 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "975" + - "976" X-Ratelimit-Reset: - - "37" + - "20" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["tky-yj3-q3b"]} + {"public_ids":["c9d-arf-n7q"]} form: {} headers: Accept: @@ -557,7 +557,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-01-21T13:35:24.473112+00:00","public_id":"tky-yj3-q3b"}]}' + body: '{"deleted_tests":[{"deleted_at":"2022-01-25T06:09:41.313977+00:00","public_id":"c9d-arf-n7q"}]}' headers: Cache-Control: - no-cache @@ -568,7 +568,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:24 GMT + - Tue, 25 Jan 2022 06:09:41 GMT Pragma: - no-cache Strict-Transport-Security: @@ -588,7 +588,7 @@ interactions: X-Ratelimit-Remaining: - "11997" X-Ratelimit-Reset: - - "36" + - "19" status: 200 OK code: 200 duration: "" @@ -602,7 +602,7 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/tky-yj3-q3b + url: https://api.datadoghq.com/api/v1/synthetics/tests/c9d-arf-n7q method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -616,7 +616,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:25 GMT + - Tue, 25 Jan 2022 06:09:41 GMT Pragma: - no-cache Strict-Transport-Security: @@ -634,9 +634,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "972" + - "974" X-Ratelimit-Reset: - - "36" + - "19" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze index 18cec0dd34..c7beedf9b9 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze @@ -1 +1 @@ -2022-01-21T14:35:17.77727+01:00 \ No newline at end of file +2022-01-25T07:09:33.425073+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml index ac7968b019..3a34e3809a 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml @@ -3,13 +3,13 @@ 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 }}"},"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":"1234566789"},"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-1642772117","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":100},"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 }}"},"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-1643090973","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":100},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: - application/json Content-Length: - - "1568" + - "1567" Content-Type: - application/json Dd-Operation-Id: @@ -19,7 +19,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/api method: POST response: - body: '{"status":"paused","public_id":"9y2-r7y-qnu","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642772117","monitor_id":61780361,"type":"api","created_at":"2022-01-21T13:35:19.654963+00:00","modified_at":"2022-01-21T13:35:19.654963+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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"zad-vea-k9i","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1643090973","monitor_id":62005744,"type":"api","created_at":"2022-01-25T06:09:35.342143+00:00","modified_at":"2022-01-25T06:09:35.342143+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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -30,7 +30,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:19 GMT + - Tue, 25 Jan 2022 06:09:35 GMT Pragma: - no-cache Strict-Transport-Security: @@ -48,9 +48,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11996" + - "11998" X-Ratelimit-Reset: - - "41" + - "25" status: 200 OK code: 200 duration: "" @@ -64,10 +64,10 @@ interactions: - GetAPITest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/9y2-r7y-qnu + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/zad-vea-k9i method: GET response: - body: '{"status":"paused","public_id":"9y2-r7y-qnu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642772117","monitor_id":61780361,"type":"api","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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"zad-vea-k9i","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1643090973","monitor_id":62005744,"type":"api","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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -78,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:20 GMT + - Tue, 25 Jan 2022 06:09:35 GMT Pragma: - no-cache Strict-Transport-Security: @@ -96,9 +96,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "989" + - "993" X-Ratelimit-Reset: - - "41" + - "25" status: 200 OK code: 200 duration: "" @@ -112,10 +112,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/9y2-r7y-qnu + url: https://api.datadoghq.com/api/v1/synthetics/tests/zad-vea-k9i method: GET response: - body: '{"status":"paused","public_id":"9y2-r7y-qnu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642772117","monitor_id":61780361,"type":"api","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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"zad-vea-k9i","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1643090973","monitor_id":62005744,"type":"api","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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -126,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:20 GMT + - Tue, 25 Jan 2022 06:09:35 GMT Pragma: - no-cache Strict-Transport-Security: @@ -144,9 +144,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "986" + - "991" X-Ratelimit-Reset: - - "40" + - "25" status: 200 OK code: 200 duration: "" @@ -160,10 +160,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/9y2-r7y-qnu + url: https://api.datadoghq.com/api/v1/synthetics/tests/zad-vea-k9i method: GET response: - body: '{"status":"paused","public_id":"9y2-r7y-qnu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642772117","monitor_id":61780361,"type":"api","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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"zad-vea-k9i","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1643090973","monitor_id":62005744,"type":"api","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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -174,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:21 GMT + - Tue, 25 Jan 2022 06:09:36 GMT Pragma: - no-cache Strict-Transport-Security: @@ -192,9 +192,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "984" + - "989" X-Ratelimit-Reset: - - "39" + - "24" status: 200 OK code: 200 duration: "" @@ -208,10 +208,10 @@ interactions: - GetAPITest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/9y2-r7y-qnu + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/zad-vea-k9i method: GET response: - body: '{"status":"paused","public_id":"9y2-r7y-qnu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642772117","monitor_id":61780361,"type":"api","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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"zad-vea-k9i","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1643090973","monitor_id":62005744,"type":"api","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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -222,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:21 GMT + - Tue, 25 Jan 2022 06:09:36 GMT Pragma: - no-cache Strict-Transport-Security: @@ -240,9 +240,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "983" + - "987" X-Ratelimit-Reset: - - "39" + - "24" status: 200 OK code: 200 duration: "" @@ -256,10 +256,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/9y2-r7y-qnu + url: https://api.datadoghq.com/api/v1/synthetics/tests/zad-vea-k9i method: GET response: - body: '{"status":"paused","public_id":"9y2-r7y-qnu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642772117","monitor_id":61780361,"type":"api","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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"zad-vea-k9i","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1643090973","monitor_id":62005744,"type":"api","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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -270,7 +270,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:22 GMT + - Tue, 25 Jan 2022 06:09:37 GMT Pragma: - no-cache Strict-Transport-Security: @@ -288,9 +288,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "980" + - "985" X-Ratelimit-Reset: - - "38" + - "23" status: 200 OK code: 200 duration: "" @@ -304,10 +304,10 @@ interactions: - GetAPITest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/9y2-r7y-qnu + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/zad-vea-k9i method: GET response: - body: '{"status":"paused","public_id":"9y2-r7y-qnu","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642772117","monitor_id":61780361,"type":"api","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":"1234566789"},"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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' + body: '{"status":"paused","public_id":"zad-vea-k9i","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1643090973","monitor_id":62005744,"type":"api","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 }}","jsonPath":"$.mykey"}}],"configVariables":[{"pattern":"{{ numeric(4) }}","type":"text","example":"1234","name":"TEST"}]},"options":{"follow_redirects":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"min_location_failed":1,"tick_every":60}}' headers: Cache-Control: - no-cache @@ -318,7 +318,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:22 GMT + - Tue, 25 Jan 2022 06:09:37 GMT Pragma: - no-cache Strict-Transport-Security: @@ -336,15 +336,15 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "979" + - "982" X-Ratelimit-Reset: - - "38" + - "23" status: 200 OK code: 200 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-1642772117updated","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-1643090973updated","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: @@ -357,10 +357,10 @@ interactions: - UpdateAPITest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/9y2-r7y-qnu + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/zad-vea-k9i method: PUT response: - body: '{"status":"live","public_id":"9y2-r7y-qnu","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-1642772117updated","monitor_id":61780361,"type":"api","created_at":"2022-01-21T13:35:19.654963+00:00","modified_at":"2022-01-21T13:35:23.089491+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,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}}' + body: '{"status":"live","public_id":"zad-vea-k9i","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-1643090973updated","monitor_id":62005744,"type":"api","created_at":"2022-01-25T06:09:35.342143+00:00","modified_at":"2022-01-25T06:09:38.260432+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,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":120},"tick_every":900,"min_failure_duration":10,"min_location_failed":1}}' headers: Cache-Control: - no-cache @@ -371,7 +371,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:23 GMT + - Tue, 25 Jan 2022 06:09:38 GMT Pragma: - no-cache Strict-Transport-Security: @@ -391,7 +391,7 @@ interactions: X-Ratelimit-Remaining: - "498" X-Ratelimit-Reset: - - "38" + - "22" status: 200 OK code: 200 duration: "" @@ -405,10 +405,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/9y2-r7y-qnu + url: https://api.datadoghq.com/api/v1/synthetics/tests/zad-vea-k9i method: GET response: - body: '{"status":"live","public_id":"9y2-r7y-qnu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642772117updated","monitor_id":61780361,"type":"api","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}}' + body: '{"status":"live","public_id":"zad-vea-k9i","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1643090973updated","monitor_id":62005744,"type":"api","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: Cache-Control: - no-cache @@ -419,7 +419,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:23 GMT + - Tue, 25 Jan 2022 06:09:38 GMT Pragma: - no-cache Strict-Transport-Security: @@ -437,9 +437,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "976" + - "981" X-Ratelimit-Reset: - - "37" + - "22" status: 200 OK code: 200 duration: "" @@ -453,10 +453,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/9y2-r7y-qnu + url: https://api.datadoghq.com/api/v1/synthetics/tests/zad-vea-k9i method: GET response: - body: '{"status":"live","public_id":"9y2-r7y-qnu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642772117updated","monitor_id":61780361,"type":"api","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}}' + body: '{"status":"live","public_id":"zad-vea-k9i","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1643090973updated","monitor_id":62005744,"type":"api","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: Cache-Control: - no-cache @@ -467,7 +467,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:24 GMT + - Tue, 25 Jan 2022 06:09:39 GMT Pragma: - no-cache Strict-Transport-Security: @@ -485,9 +485,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "974" + - "980" X-Ratelimit-Reset: - - "37" + - "21" status: 200 OK code: 200 duration: "" @@ -501,10 +501,10 @@ interactions: - GetAPITest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/9y2-r7y-qnu + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/zad-vea-k9i method: GET response: - body: '{"status":"live","public_id":"9y2-r7y-qnu","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642772117updated","monitor_id":61780361,"type":"api","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}}' + body: '{"status":"live","public_id":"zad-vea-k9i","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1643090973updated","monitor_id":62005744,"type":"api","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: Cache-Control: - no-cache @@ -515,7 +515,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:24 GMT + - Tue, 25 Jan 2022 06:09:39 GMT Pragma: - no-cache Strict-Transport-Security: @@ -533,15 +533,15 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "973" + - "979" X-Ratelimit-Reset: - - "36" + - "21" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["9y2-r7y-qnu"]} + {"public_ids":["zad-vea-k9i"]} form: {} headers: Accept: @@ -557,7 +557,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-01-21T13:35:24.967403+00:00","public_id":"9y2-r7y-qnu"}]}' + body: '{"deleted_tests":[{"deleted_at":"2022-01-25T06:09:40.254009+00:00","public_id":"zad-vea-k9i"}]}' headers: Cache-Control: - no-cache @@ -568,7 +568,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:26 GMT + - Tue, 25 Jan 2022 06:09:40 GMT Pragma: - no-cache Strict-Transport-Security: @@ -586,9 +586,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11996" + - "11998" X-Ratelimit-Reset: - - "36" + - "20" status: 200 OK code: 200 duration: "" @@ -602,7 +602,7 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/9y2-r7y-qnu + url: https://api.datadoghq.com/api/v1/synthetics/tests/zad-vea-k9i method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -616,7 +616,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:26 GMT + - Tue, 25 Jan 2022 06:09:41 GMT Pragma: - no-cache Strict-Transport-Security: @@ -634,9 +634,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "971" + - "975" X-Ratelimit-Reset: - - "34" + - "19" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze index e284ab7c45..a4f8b14881 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.freeze @@ -1 +1 @@ -2022-01-21T14:34:53.343279+01:00 \ No newline at end of file +2022-01-25T07:03:50.22826+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml index 1aebcd47a7..bd6e6d38cf 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_importBasic.yaml @@ -3,13 +3,13 @@ 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":"1234566789"},"method":"GET","noSavingResponseBody":true,"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093","options":{"allow_insecure":true,"follow_redirects":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093-monitor","monitor_priority":5,"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-1643090630","options":{"allow_insecure":true,"follow_redirects":true,"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1643090630-monitor","monitor_priority":5,"retry":{"count":1,"interval":300},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"} form: {} headers: Accept: - application/json Content-Length: - - "1193" + - "1301" Content-Type: - application/json Dd-Operation-Id: @@ -19,7 +19,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/api method: POST response: - body: '{"status":"paused","public_id":"fg2-pub-4av","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093","monitor_id":61780309,"type":"api","created_at":"2022-01-21T13:34:55.169616+00:00","modified_at":"2022-01-21T13:34:55.169616+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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"kxd-w47-55b","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1643090630","monitor_id":62005390,"type":"api","created_at":"2022-01-25T06:03:53.013789+00:00","modified_at":"2022-01-25T06:03:53.013789+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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1643090630-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -30,7 +30,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:34:55 GMT + - Tue, 25 Jan 2022 06:03:53 GMT Pragma: - no-cache Strict-Transport-Security: @@ -50,7 +50,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "5" + - "8" status: 200 OK code: 200 duration: "" @@ -64,10 +64,10 @@ interactions: - GetAPITest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/fg2-pub-4av + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/kxd-w47-55b method: GET response: - body: '{"status":"paused","public_id":"fg2-pub-4av","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093","monitor_id":61780309,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"kxd-w47-55b","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1643090630","monitor_id":62005390,"type":"api","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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1643090630-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -78,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:34:55 GMT + - Tue, 25 Jan 2022 06:03:53 GMT Pragma: - no-cache Strict-Transport-Security: @@ -98,7 +98,7 @@ interactions: X-Ratelimit-Remaining: - "999" X-Ratelimit-Reset: - - "5" + - "7" status: 200 OK code: 200 duration: "" @@ -112,10 +112,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/fg2-pub-4av + url: https://api.datadoghq.com/api/v1/synthetics/tests/kxd-w47-55b method: GET response: - body: '{"status":"paused","public_id":"fg2-pub-4av","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093","monitor_id":61780309,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"kxd-w47-55b","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1643090630","monitor_id":62005390,"type":"api","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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1643090630-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -126,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:34:56 GMT + - Tue, 25 Jan 2022 06:03:53 GMT Pragma: - no-cache Strict-Transport-Security: @@ -146,7 +146,7 @@ interactions: X-Ratelimit-Remaining: - "998" X-Ratelimit-Reset: - - "4" + - "7" status: 200 OK code: 200 duration: "" @@ -160,10 +160,10 @@ interactions: - GetAPITest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/fg2-pub-4av + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/kxd-w47-55b method: GET response: - body: '{"status":"paused","public_id":"fg2-pub-4av","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093","monitor_id":61780309,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"kxd-w47-55b","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1643090630","monitor_id":62005390,"type":"api","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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1643090630-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -174,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:34:56 GMT + - Tue, 25 Jan 2022 06:03:54 GMT Pragma: - no-cache Strict-Transport-Security: @@ -194,7 +194,7 @@ interactions: X-Ratelimit-Remaining: - "997" X-Ratelimit-Reset: - - "4" + - "7" status: 200 OK code: 200 duration: "" @@ -208,10 +208,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/fg2-pub-4av + url: https://api.datadoghq.com/api/v1/synthetics/tests/kxd-w47-55b method: GET response: - body: '{"status":"paused","public_id":"fg2-pub-4av","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093","monitor_id":61780309,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"kxd-w47-55b","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1643090630","monitor_id":62005390,"type":"api","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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1643090630-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -222,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:34:56 GMT + - Tue, 25 Jan 2022 06:03:54 GMT Pragma: - no-cache Strict-Transport-Security: @@ -242,7 +242,7 @@ interactions: X-Ratelimit-Remaining: - "996" X-Ratelimit-Reset: - - "4" + - "6" status: 200 OK code: 200 duration: "" @@ -256,10 +256,10 @@ interactions: - GetAPITest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/fg2-pub-4av + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/kxd-w47-55b method: GET response: - body: '{"status":"paused","public_id":"fg2-pub-4av","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093","monitor_id":61780309,"type":"api","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":"1234566789"},"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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1642772093-monitor","tick_every":60}}' + body: '{"status":"paused","public_id":"kxd-w47-55b","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1643090630","monitor_id":62005390,"type":"api","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":{"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"monitor_priority":5,"monitor_name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-local-1643090630-monitor","tick_every":60}}' headers: Cache-Control: - no-cache @@ -270,7 +270,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:34:57 GMT + - Tue, 25 Jan 2022 06:03:55 GMT Pragma: - no-cache Strict-Transport-Security: @@ -290,13 +290,13 @@ interactions: X-Ratelimit-Remaining: - "995" X-Ratelimit-Reset: - - "3" + - "6" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["fg2-pub-4av"]} + {"public_ids":["kxd-w47-55b"]} form: {} headers: Accept: @@ -312,7 +312,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-01-21T13:34:57.770786+00:00","public_id":"fg2-pub-4av"}]}' + body: '{"deleted_tests":[{"deleted_at":"2022-01-25T06:03:55.558474+00:00","public_id":"kxd-w47-55b"}]}' headers: Cache-Control: - no-cache @@ -323,7 +323,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:34:57 GMT + - Tue, 25 Jan 2022 06:03:56 GMT Pragma: - no-cache Strict-Transport-Security: @@ -343,7 +343,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "3" + - "5" status: 200 OK code: 200 duration: "" @@ -357,7 +357,7 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/fg2-pub-4av + url: https://api.datadoghq.com/api/v1/synthetics/tests/kxd-w47-55b method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -371,7 +371,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:34:58 GMT + - Tue, 25 Jan 2022 06:03:56 GMT Pragma: - no-cache Strict-Transport-Security: @@ -391,7 +391,7 @@ interactions: X-Ratelimit-Remaining: - "994" X-Ratelimit-Reset: - - "2" + - "4" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.freeze index 2e6039d034..e2f096518c 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.freeze @@ -1 +1 @@ -2022-01-24T10:58:00.151851+01:00 \ No newline at end of file +2022-01-25T07:06:19.162835+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml index df377d91c5..d9c98f17d8 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Basic.yaml @@ -3,13 +3,13 @@ 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","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","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-1643018280","options":{"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643018280-monitor","monitor_options":{"renotify_interval":100},"monitor_priority":5,"noScreenshot":true,"retry":{"count":2,"interval":300},"tick_every":900},"status":"paused","steps":[{"allowFailure":false,"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","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-1643090779","options":{"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643090779-monitor","monitor_options":{"renotify_interval":100},"monitor_priority":5,"noScreenshot":true,"retry":{"count":2,"interval":300},"tick_every":900},"status":"paused","steps":[{"allowFailure":false,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} form: {} headers: Accept: - application/json Content-Length: - - "1136" + - "1245" Content-Type: - application/json Dd-Operation-Id: @@ -19,7 +19,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/browser method: POST response: - body: '{"status":"paused","public_id":"gss-m3g-46p","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643018280","monitor_id":61918575,"type":"browser","created_at":"2022-01-24T09:58:01.801357+00:00","modified_at":"2022-01-24T09:58:01.801357+00:00","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643018280-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"5e9-vrz-8rm","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643090779","monitor_id":62005544,"type":"browser","created_at":"2022-01-25T06:06:21.169698+00:00","modified_at":"2022-01-25T06:06:21.169698+00:00","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643090779-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -30,7 +30,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 24 Jan 2022 09:58:01 GMT + - Tue, 25 Jan 2022 06:06:21 GMT Pragma: - no-cache Strict-Transport-Security: @@ -50,7 +50,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "59" + - "40" status: 200 OK code: 200 duration: "" @@ -64,10 +64,10 @@ interactions: - GetBrowserTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/gss-m3g-46p + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/5e9-vrz-8rm method: GET response: - body: '{"status":"paused","public_id":"gss-m3g-46p","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643018280","monitor_id":61918575,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643018280-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"5e9-vrz-8rm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643090779","monitor_id":62005544,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643090779-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -78,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 24 Jan 2022 09:58:02 GMT + - Tue, 25 Jan 2022 06:06:21 GMT Pragma: - no-cache Strict-Transport-Security: @@ -98,7 +98,7 @@ interactions: X-Ratelimit-Remaining: - "999" X-Ratelimit-Reset: - - "59" + - "39" status: 200 OK code: 200 duration: "" @@ -112,10 +112,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/gss-m3g-46p + url: https://api.datadoghq.com/api/v1/synthetics/tests/5e9-vrz-8rm method: GET response: - body: '{"status":"paused","public_id":"gss-m3g-46p","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643018280","monitor_id":61918575,"type":"browser","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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643018280-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"5e9-vrz-8rm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643090779","monitor_id":62005544,"type":"browser","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","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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643090779-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -126,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 24 Jan 2022 09:58:02 GMT + - Tue, 25 Jan 2022 06:06:21 GMT Pragma: - no-cache Strict-Transport-Security: @@ -146,7 +146,7 @@ interactions: X-Ratelimit-Remaining: - "998" X-Ratelimit-Reset: - - "58" + - "39" status: 200 OK code: 200 duration: "" @@ -160,10 +160,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/gss-m3g-46p + url: https://api.datadoghq.com/api/v1/synthetics/tests/5e9-vrz-8rm method: GET response: - body: '{"status":"paused","public_id":"gss-m3g-46p","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643018280","monitor_id":61918575,"type":"browser","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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643018280-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"5e9-vrz-8rm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643090779","monitor_id":62005544,"type":"browser","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","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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643090779-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -174,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 24 Jan 2022 09:58:03 GMT + - Tue, 25 Jan 2022 06:06:22 GMT Pragma: - no-cache Strict-Transport-Security: @@ -194,7 +194,7 @@ interactions: X-Ratelimit-Remaining: - "997" X-Ratelimit-Reset: - - "58" + - "38" status: 200 OK code: 200 duration: "" @@ -208,10 +208,10 @@ interactions: - GetBrowserTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/gss-m3g-46p + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/5e9-vrz-8rm method: GET response: - body: '{"status":"paused","public_id":"gss-m3g-46p","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643018280","monitor_id":61918575,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643018280-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"5e9-vrz-8rm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643090779","monitor_id":62005544,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Basic-local-1643090779-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -222,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 24 Jan 2022 09:58:03 GMT + - Tue, 25 Jan 2022 06:06:22 GMT Pragma: - no-cache Strict-Transport-Security: @@ -242,13 +242,13 @@ interactions: X-Ratelimit-Remaining: - "996" X-Ratelimit-Reset: - - "57" + - "38" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["gss-m3g-46p"]} + {"public_ids":["5e9-vrz-8rm"]} form: {} headers: Accept: @@ -264,7 +264,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-01-24T09:58:03.945655+00:00","public_id":"gss-m3g-46p"}]}' + body: '{"deleted_tests":[{"deleted_at":"2022-01-25T06:06:23.520763+00:00","public_id":"5e9-vrz-8rm"}]}' headers: Cache-Control: - no-cache @@ -275,7 +275,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 24 Jan 2022 09:58:04 GMT + - Tue, 25 Jan 2022 06:06:23 GMT Pragma: - no-cache Strict-Transport-Security: @@ -295,7 +295,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "57" + - "37" status: 200 OK code: 200 duration: "" @@ -309,7 +309,7 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/gss-m3g-46p + url: https://api.datadoghq.com/api/v1/synthetics/tests/5e9-vrz-8rm method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -323,7 +323,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 24 Jan 2022 09:58:04 GMT + - Tue, 25 Jan 2022 06:06:23 GMT Pragma: - no-cache Strict-Transport-Security: @@ -343,7 +343,7 @@ interactions: X-Ratelimit-Remaining: - "995" X-Ratelimit-Reset: - - "56" + - "37" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.freeze index ebd540a61c..8efe57b318 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.freeze @@ -1 +1 @@ -2022-01-24T14:30:35.736921+01:00 \ No newline at end of file +2022-01-25T06:59:31.733154+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml index 18b98024e5..59559d0a86 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_Updated.yaml @@ -3,13 +3,13 @@ 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","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","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-1643031035","options":{"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-monitor","monitor_options":{"renotify_interval":100},"monitor_priority":5,"noScreenshot":true,"retry":{"count":2,"interval":300},"tick_every":900},"status":"paused","steps":[{"allowFailure":false,"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","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-1643090371","options":{"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643090371-monitor","monitor_options":{"renotify_interval":100},"monitor_priority":5,"noScreenshot":true,"retry":{"count":2,"interval":300},"tick_every":900},"status":"paused","steps":[{"allowFailure":false,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} form: {} headers: Accept: - application/json Content-Length: - - "1140" + - "1249" Content-Type: - application/json Dd-Operation-Id: @@ -19,7 +19,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/browser method: POST response: - body: '{"status":"paused","public_id":"2ra-p6k-knw","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035","monitor_id":61930939,"type":"browser","created_at":"2022-01-24T13:30:37.768429+00:00","modified_at":"2022-01-24T13:30:37.768429+00:00","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"4ap-aiv-d9k","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643090371","monitor_id":62005215,"type":"browser","created_at":"2022-01-25T05:59:33.509975+00:00","modified_at":"2022-01-25T05:59:33.509975+00:00","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643090371-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -30,7 +30,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 24 Jan 2022 13:30:37 GMT + - Tue, 25 Jan 2022 05:59:33 GMT Pragma: - no-cache Strict-Transport-Security: @@ -50,7 +50,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "23" + - "27" status: 200 OK code: 200 duration: "" @@ -64,10 +64,10 @@ interactions: - GetBrowserTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/2ra-p6k-knw + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/4ap-aiv-d9k method: GET response: - body: '{"status":"paused","public_id":"2ra-p6k-knw","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035","monitor_id":61930939,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"4ap-aiv-d9k","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643090371","monitor_id":62005215,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643090371-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -78,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 24 Jan 2022 13:30:37 GMT + - Tue, 25 Jan 2022 05:59:33 GMT Pragma: - no-cache Strict-Transport-Security: @@ -98,7 +98,7 @@ interactions: X-Ratelimit-Remaining: - "999" X-Ratelimit-Reset: - - "23" + - "27" status: 200 OK code: 200 duration: "" @@ -112,10 +112,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/2ra-p6k-knw + url: https://api.datadoghq.com/api/v1/synthetics/tests/4ap-aiv-d9k method: GET response: - body: '{"status":"paused","public_id":"2ra-p6k-knw","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035","monitor_id":61930939,"type":"browser","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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"4ap-aiv-d9k","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643090371","monitor_id":62005215,"type":"browser","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","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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643090371-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -126,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 24 Jan 2022 13:30:38 GMT + - Tue, 25 Jan 2022 05:59:34 GMT Pragma: - no-cache Strict-Transport-Security: @@ -146,7 +146,7 @@ interactions: X-Ratelimit-Remaining: - "998" X-Ratelimit-Reset: - - "22" + - "27" status: 200 OK code: 200 duration: "" @@ -160,10 +160,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/2ra-p6k-knw + url: https://api.datadoghq.com/api/v1/synthetics/tests/4ap-aiv-d9k method: GET response: - body: '{"status":"paused","public_id":"2ra-p6k-knw","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035","monitor_id":61930939,"type":"browser","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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"4ap-aiv-d9k","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643090371","monitor_id":62005215,"type":"browser","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","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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643090371-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -174,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 24 Jan 2022 13:30:38 GMT + - Tue, 25 Jan 2022 05:59:35 GMT Pragma: - no-cache Strict-Transport-Security: @@ -194,7 +194,7 @@ interactions: X-Ratelimit-Remaining: - "997" X-Ratelimit-Reset: - - "22" + - "26" status: 200 OK code: 200 duration: "" @@ -208,10 +208,10 @@ interactions: - GetBrowserTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/2ra-p6k-knw + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/4ap-aiv-d9k method: GET response: - body: '{"status":"paused","public_id":"2ra-p6k-knw","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035","monitor_id":61930939,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"4ap-aiv-d9k","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643090371","monitor_id":62005215,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643090371-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -222,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 24 Jan 2022 13:30:39 GMT + - Tue, 25 Jan 2022 05:59:36 GMT Pragma: - no-cache Strict-Transport-Security: @@ -242,7 +242,7 @@ interactions: X-Ratelimit-Remaining: - "996" X-Ratelimit-Reset: - - "21" + - "25" status: 200 OK code: 200 duration: "" @@ -256,10 +256,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/2ra-p6k-knw + url: https://api.datadoghq.com/api/v1/synthetics/tests/4ap-aiv-d9k method: GET response: - body: '{"status":"paused","public_id":"2ra-p6k-knw","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035","monitor_id":61930939,"type":"browser","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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"4ap-aiv-d9k","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643090371","monitor_id":62005215,"type":"browser","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","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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643090371-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -270,7 +270,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 24 Jan 2022 13:30:39 GMT + - Tue, 25 Jan 2022 05:59:37 GMT Pragma: - no-cache Strict-Transport-Security: @@ -290,7 +290,7 @@ interactions: X-Ratelimit-Remaining: - "995" X-Ratelimit-Reset: - - "21" + - "24" status: 200 OK code: 200 duration: "" @@ -304,10 +304,10 @@ interactions: - GetBrowserTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/2ra-p6k-knw + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/4ap-aiv-d9k method: GET response: - body: '{"status":"paused","public_id":"2ra-p6k-knw","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035","monitor_id":61930939,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"4ap-aiv-d9k","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643090371","monitor_id":62005215,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643090371-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -318,7 +318,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 24 Jan 2022 13:30:40 GMT + - Tue, 25 Jan 2022 05:59:37 GMT Pragma: - no-cache Strict-Transport-Security: @@ -338,13 +338,13 @@ interactions: X-Ratelimit-Remaining: - "994" X-Ratelimit-Reset: - - "20" + - "23" status: 200 OK code: 200 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-1643031035-updated","options":{"device_ids":["laptop_large","tablet"],"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"tick_every":1800},"status":"live","steps":[{"allowFailure":false,"name":"first step updated","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"allowFailure":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-1643090371-updated","options":{"device_ids":["laptop_large","tablet"],"min_failure_duration":10,"min_location_failed":1,"monitor_options":{"renotify_interval":120},"retry":{"count":3,"interval":500},"tick_every":1800},"status":"live","steps":[{"allowFailure":false,"name":"first step updated","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"allowFailure":false,"name":"press key step","params":{"modifiers":[],"value":"1"},"timeout":0,"type":"pressKey"}],"tags":["foo:bar","buz"],"type":"browser"} form: {} headers: Accept: @@ -357,10 +357,10 @@ interactions: - UpdateBrowserTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/2ra-p6k-knw + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/4ap-aiv-d9k method: PUT response: - body: '{"status":"live","public_id":"2ra-p6k-knw","tags":["foo:bar","buz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-updated","monitor_id":61930939,"type":"browser","created_at":"2022-01-24T13:30:37.768429+00:00","modified_at":"2022-01-24T13:30:40.670379+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"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":{"retry":{"count":3,"interval":500},"min_location_failed":1,"min_failure_duration":10,"tick_every":1800,"device_ids":["laptop_large","tablet"],"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":120}}}' + body: '{"status":"live","public_id":"4ap-aiv-d9k","tags":["foo:bar","buz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643090371-updated","monitor_id":62005215,"type":"browser","created_at":"2022-01-25T05:59:33.509975+00:00","modified_at":"2022-01-25T05:59:38.259970+00:00","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"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":{"retry":{"count":3,"interval":500},"min_location_failed":1,"min_failure_duration":10,"tick_every":1800,"device_ids":["laptop_large","tablet"],"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":120}}}' headers: Cache-Control: - no-cache @@ -371,7 +371,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 24 Jan 2022 13:30:40 GMT + - Tue, 25 Jan 2022 05:59:38 GMT Pragma: - no-cache Strict-Transport-Security: @@ -391,7 +391,7 @@ interactions: X-Ratelimit-Remaining: - "499" X-Ratelimit-Reset: - - "20" + - "22" status: 200 OK code: 200 duration: "" @@ -405,10 +405,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/2ra-p6k-knw + url: https://api.datadoghq.com/api/v1/synthetics/tests/4ap-aiv-d9k method: GET response: - body: '{"status":"live","public_id":"2ra-p6k-knw","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-updated","monitor_id":61930939,"type":"browser","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":{"retry":{"count":3,"interval":500},"min_location_failed":1,"min_failure_duration":10,"tick_every":1800,"device_ids":["laptop_large","tablet"],"monitor_options":{"renotify_interval":120}}}' + body: '{"status":"live","public_id":"4ap-aiv-d9k","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643090371-updated","monitor_id":62005215,"type":"browser","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":{"retry":{"count":3,"interval":500},"min_location_failed":1,"min_failure_duration":10,"tick_every":1800,"device_ids":["laptop_large","tablet"],"monitor_options":{"renotify_interval":120}}}' headers: Cache-Control: - no-cache @@ -419,7 +419,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 24 Jan 2022 13:30:41 GMT + - Tue, 25 Jan 2022 05:59:38 GMT Pragma: - no-cache Strict-Transport-Security: @@ -439,7 +439,7 @@ interactions: X-Ratelimit-Remaining: - "993" X-Ratelimit-Reset: - - "19" + - "22" status: 200 OK code: 200 duration: "" @@ -453,10 +453,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/2ra-p6k-knw + url: https://api.datadoghq.com/api/v1/synthetics/tests/4ap-aiv-d9k method: GET response: - body: '{"status":"live","public_id":"2ra-p6k-knw","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-updated","monitor_id":61930939,"type":"browser","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":{"retry":{"count":3,"interval":500},"min_location_failed":1,"min_failure_duration":10,"tick_every":1800,"device_ids":["laptop_large","tablet"],"monitor_options":{"renotify_interval":120}}}' + body: '{"status":"live","public_id":"4ap-aiv-d9k","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643090371-updated","monitor_id":62005215,"type":"browser","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":{"retry":{"count":3,"interval":500},"min_location_failed":1,"min_failure_duration":10,"tick_every":1800,"device_ids":["laptop_large","tablet"],"monitor_options":{"renotify_interval":120}}}' headers: Cache-Control: - no-cache @@ -467,7 +467,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 24 Jan 2022 13:30:42 GMT + - Tue, 25 Jan 2022 05:59:39 GMT Pragma: - no-cache Strict-Transport-Security: @@ -487,7 +487,7 @@ interactions: X-Ratelimit-Remaining: - "992" X-Ratelimit-Reset: - - "18" + - "21" status: 200 OK code: 200 duration: "" @@ -501,10 +501,10 @@ interactions: - GetBrowserTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/2ra-p6k-knw + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/4ap-aiv-d9k method: GET response: - body: '{"status":"live","public_id":"2ra-p6k-knw","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643031035-updated","monitor_id":61930939,"type":"browser","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"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":{"retry":{"count":3,"interval":500},"min_location_failed":1,"min_failure_duration":10,"tick_every":1800,"device_ids":["laptop_large","tablet"],"monitor_options":{"renotify_interval":120}}}' + body: '{"status":"live","public_id":"4ap-aiv-d9k","tags":["foo:bar","buz"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsBrowserTest_Updated-local-1643090371-updated","monitor_id":62005215,"type":"browser","steps":[{"name":"first step updated","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"},{"name":"press key step","allowFailure":false,"params":{"modifiers":[],"value":"1"},"timeout":0,"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":{"retry":{"count":3,"interval":500},"min_location_failed":1,"min_failure_duration":10,"tick_every":1800,"device_ids":["laptop_large","tablet"],"monitor_options":{"renotify_interval":120}}}' headers: Cache-Control: - no-cache @@ -515,7 +515,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 24 Jan 2022 13:30:42 GMT + - Tue, 25 Jan 2022 05:59:39 GMT Pragma: - no-cache Strict-Transport-Security: @@ -535,13 +535,13 @@ interactions: X-Ratelimit-Remaining: - "991" X-Ratelimit-Reset: - - "18" + - "21" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["2ra-p6k-knw"]} + {"public_ids":["4ap-aiv-d9k"]} form: {} headers: Accept: @@ -557,7 +557,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-01-24T13:30:43.351906+00:00","public_id":"2ra-p6k-knw"}]}' + body: '{"deleted_tests":[{"deleted_at":"2022-01-25T05:59:40.354716+00:00","public_id":"4ap-aiv-d9k"}]}' headers: Cache-Control: - no-cache @@ -568,7 +568,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 24 Jan 2022 13:30:43 GMT + - Tue, 25 Jan 2022 05:59:41 GMT Pragma: - no-cache Strict-Transport-Security: @@ -588,7 +588,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "17" + - "20" status: 200 OK code: 200 duration: "" @@ -602,7 +602,7 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/2ra-p6k-knw + url: https://api.datadoghq.com/api/v1/synthetics/tests/4ap-aiv-d9k method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -616,7 +616,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 24 Jan 2022 13:30:43 GMT + - Tue, 25 Jan 2022 05:59:41 GMT Pragma: - no-cache Strict-Transport-Security: @@ -636,7 +636,7 @@ interactions: X-Ratelimit-Remaining: - "990" X-Ratelimit-Reset: - - "17" + - "19" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.freeze index c1992d8140..0ddcd18cc9 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.freeze @@ -1 +1 @@ -2022-01-21T14:35:08.199731+01:00 \ No newline at end of file +2022-01-25T07:09:08.770369+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml index 6744586b05..edd4ce22ff 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTest_importBasic.yaml @@ -3,13 +3,13 @@ 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","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","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-1642772108","options":{"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108-monitor","monitor_options":{"renotify_interval":100},"monitor_priority":5,"noScreenshot":true,"retry":{"count":2,"interval":300},"tick_every":900},"status":"paused","steps":[{"allowFailure":false,"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","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-1643090948","options":{"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1643090948-monitor","monitor_options":{"renotify_interval":100},"monitor_priority":5,"noScreenshot":true,"retry":{"count":2,"interval":300},"tick_every":900},"status":"paused","steps":[{"allowFailure":false,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar","baz"],"type":"browser"} form: {} headers: Accept: - application/json Content-Length: - - "1148" + - "1257" Content-Type: - application/json Dd-Operation-Id: @@ -19,7 +19,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/browser method: POST response: - body: '{"status":"paused","public_id":"gzw-fut-3uk","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108","monitor_id":61780341,"type":"browser","created_at":"2022-01-21T13:35:10.967340+00:00","modified_at":"2022-01-21T13:35:10.967340+00:00","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"bmk-8s4-wcp","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1643090948","monitor_id":62005742,"type":"browser","created_at":"2022-01-25T06:09:10.643109+00:00","modified_at":"2022-01-25T06:09:10.643109+00:00","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1643090948-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -30,7 +30,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:11 GMT + - Tue, 25 Jan 2022 06:09:10 GMT Pragma: - no-cache Strict-Transport-Security: @@ -48,7 +48,7 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11998" + - "11999" X-Ratelimit-Reset: - "50" status: 200 OK @@ -64,10 +64,10 @@ interactions: - GetBrowserTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/gzw-fut-3uk + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bmk-8s4-wcp method: GET response: - body: '{"status":"paused","public_id":"gzw-fut-3uk","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108","monitor_id":61780341,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"bmk-8s4-wcp","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1643090948","monitor_id":62005742,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1643090948-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -78,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:11 GMT + - Tue, 25 Jan 2022 06:09:10 GMT Pragma: - no-cache Strict-Transport-Security: @@ -96,9 +96,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "996" + - "999" X-Ratelimit-Reset: - - "49" + - "50" status: 200 OK code: 200 duration: "" @@ -112,10 +112,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/gzw-fut-3uk + url: https://api.datadoghq.com/api/v1/synthetics/tests/bmk-8s4-wcp method: GET response: - body: '{"status":"paused","public_id":"gzw-fut-3uk","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108","monitor_id":61780341,"type":"browser","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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"bmk-8s4-wcp","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1643090948","monitor_id":62005742,"type":"browser","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","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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1643090948-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -126,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:12 GMT + - Tue, 25 Jan 2022 06:09:11 GMT Pragma: - no-cache Strict-Transport-Security: @@ -144,9 +144,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "995" + - "998" X-Ratelimit-Reset: - - "48" + - "49" status: 200 OK code: 200 duration: "" @@ -160,10 +160,10 @@ interactions: - GetBrowserTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/gzw-fut-3uk + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bmk-8s4-wcp method: GET response: - body: '{"status":"paused","public_id":"gzw-fut-3uk","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108","monitor_id":61780341,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"bmk-8s4-wcp","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1643090948","monitor_id":62005742,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1643090948-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -174,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:12 GMT + - Tue, 25 Jan 2022 06:09:12 GMT Pragma: - no-cache Strict-Transport-Security: @@ -192,9 +192,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "994" + - "997" X-Ratelimit-Reset: - - "48" + - "49" status: 200 OK code: 200 duration: "" @@ -208,10 +208,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/gzw-fut-3uk + url: https://api.datadoghq.com/api/v1/synthetics/tests/bmk-8s4-wcp method: GET response: - body: '{"status":"paused","public_id":"gzw-fut-3uk","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108","monitor_id":61780341,"type":"browser","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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"bmk-8s4-wcp","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1643090948","monitor_id":62005742,"type":"browser","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","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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1643090948-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -222,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:13 GMT + - Tue, 25 Jan 2022 06:09:14 GMT Pragma: - no-cache Strict-Transport-Security: @@ -240,9 +240,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "993" + - "996" X-Ratelimit-Reset: - - "47" + - "46" status: 200 OK code: 200 duration: "" @@ -256,10 +256,10 @@ interactions: - GetBrowserTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/gzw-fut-3uk + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/bmk-8s4-wcp method: GET response: - body: '{"status":"paused","public_id":"gzw-fut-3uk","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108","monitor_id":61780341,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","basicAuth":{"username":"username","password":"password","type":"web"},"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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1642772108-monitor","tick_every":900}}' + body: '{"status":"paused","public_id":"bmk-8s4-wcp","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1643090948","monitor_id":62005742,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"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","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":{"retry":{"count":2,"interval":300},"min_location_failed":1,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"noScreenshot":true,"monitor_priority":5,"device_ids":["laptop_large","mobile_small"],"monitor_name":"tf-TestAccDatadogSyntheticsBrowserTest_importBasic-local-1643090948-monitor","tick_every":900}}' headers: Cache-Control: - no-cache @@ -270,7 +270,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:14 GMT + - Tue, 25 Jan 2022 06:09:14 GMT Pragma: - no-cache Strict-Transport-Security: @@ -288,15 +288,15 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "992" + - "995" X-Ratelimit-Reset: - - "47" + - "46" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["gzw-fut-3uk"]} + {"public_ids":["bmk-8s4-wcp"]} form: {} headers: Accept: @@ -312,7 +312,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-01-21T13:35:14.578756+00:00","public_id":"gzw-fut-3uk"}]}' + body: '{"deleted_tests":[{"deleted_at":"2022-01-25T06:09:14.917861+00:00","public_id":"bmk-8s4-wcp"}]}' headers: Cache-Control: - no-cache @@ -323,7 +323,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:14 GMT + - Tue, 25 Jan 2022 06:09:15 GMT Pragma: - no-cache Strict-Transport-Security: @@ -341,7 +341,7 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11998" + - "11999" X-Ratelimit-Reset: - "46" status: 200 OK @@ -357,7 +357,7 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/gzw-fut-3uk + url: https://api.datadoghq.com/api/v1/synthetics/tests/bmk-8s4-wcp method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -371,7 +371,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:35:14 GMT + - Tue, 25 Jan 2022 06:09:15 GMT Pragma: - no-cache Strict-Transport-Security: @@ -389,9 +389,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "991" + - "994" X-Ratelimit-Reset: - - "46" + - "45" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze index 48e3019753..c423abd687 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze @@ -1 +1 @@ -2022-01-21T14:53:12.654582+01:00 \ No newline at end of file +2022-01-24T16:30:44.038544+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.yaml index 1e60978b76..d0ff43a0fc 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_1642773192","tags":["foo:bar","baz"],"value":{"secure":false,"value":"variable-value"}} + {"description":"a global variable","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1643038244","tags":["foo:bar","baz"],"value":{"secure":false,"value":"variable-value"}} form: {} headers: Accept: @@ -19,7 +19,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":"c7e9947e-ff15-413d-a203-da16bfb896a4","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1642773192"}' + 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":"6243c9ac-ba6a-4569-b3e0-691342b00167","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1643038244"}' headers: Cache-Control: - no-cache @@ -30,7 +30,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:53:14 GMT + - Mon, 24 Jan 2022 15:30:45 GMT Pragma: - no-cache Strict-Transport-Security: @@ -50,7 +50,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "46" + - "15" status: 200 OK code: 200 duration: "" @@ -64,10 +64,10 @@ interactions: - GetGlobalVariable User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/c7e9947e-ff15-413d-a203-da16bfb896a4 + url: https://api.datadoghq.com/api/v1/synthetics/variables/6243c9ac-ba6a-4569-b3e0-691342b00167 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":"c7e9947e-ff15-413d-a203-da16bfb896a4","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1642773192","created_at":"2022-01-21T13:53:14.539750+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:53:14.539750+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":"6243c9ac-ba6a-4569-b3e0-691342b00167","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1643038244","created_at":"2022-01-24T15:30:45.669666+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-24T15:30:45.669666+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' headers: Cache-Control: - no-cache @@ -78,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:53:14 GMT + - Mon, 24 Jan 2022 15:30:45 GMT Pragma: - no-cache Strict-Transport-Security: @@ -98,7 +98,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "46" + - "15" status: 200 OK code: 200 duration: "" @@ -112,10 +112,10 @@ interactions: - GetGlobalVariable User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/c7e9947e-ff15-413d-a203-da16bfb896a4 + url: https://api.datadoghq.com/api/v1/synthetics/variables/6243c9ac-ba6a-4569-b3e0-691342b00167 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":"c7e9947e-ff15-413d-a203-da16bfb896a4","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1642773192","created_at":"2022-01-21T13:53:14.539750+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:53:14.539750+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":"6243c9ac-ba6a-4569-b3e0-691342b00167","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1643038244","created_at":"2022-01-24T15:30:45.669666+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-24T15:30:45.669666+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' headers: Cache-Control: - no-cache @@ -126,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:53:14 GMT + - Mon, 24 Jan 2022 15:30:46 GMT Pragma: - no-cache Strict-Transport-Security: @@ -146,19 +146,19 @@ interactions: X-Ratelimit-Remaining: - "11998" X-Ratelimit-Reset: - - "46" + - "14" status: 200 OK code: 200 duration: "" - request: body: | - {"config":{"assertions":[],"configVariables":[{"id":"c7e9947e-ff15-413d-a203-da16bfb896a4","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","query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1642773192","options":{"min_location_failed":1,"tick_every":900},"status":"paused","subtype":"multi","tags":["multistep"],"type":"api"} + {"config":{"assertions":[],"configVariables":[{"id":"6243c9ac-ba6a-4569-b3e0-691342b00167","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"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1643038244","options":{"min_location_failed":1,"tick_every":900},"status":"paused","subtype":"multi","tags":["multistep"],"type":"api"} form: {} headers: Accept: - application/json Content-Length: - - "1295" + - "1404" Content-Type: - application/json Dd-Operation-Id: @@ -168,7 +168,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/api method: POST response: - body: '{"status":"paused","public_id":"6gq-waj-6eg","tags":["multistep"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1642773192","monitor_id":61781250,"type":"api","created_at":"2022-01-21T13:53:15.227196+00:00","modified_at":"2022-01-21T13:53:15.227196+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"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"zwv-y4k-i34","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]}],"assertions":[],"configVariables":[{"type":"global","id":"c7e9947e-ff15-413d-a203-da16bfb896a4","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"pgh-24k-pq7","tags":["multistep"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1643038244","monitor_id":61943460,"type":"api","created_at":"2022-01-24T15:30:46.453202+00:00","modified_at":"2022-01-24T15:30:46.453202+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":"2m6-fpn-c34","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]}],"assertions":[],"configVariables":[{"type":"global","id":"6243c9ac-ba6a-4569-b3e0-691342b00167","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -179,7 +179,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:53:15 GMT + - Mon, 24 Jan 2022 15:30:46 GMT Pragma: - no-cache Strict-Transport-Security: @@ -199,7 +199,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "45" + - "14" status: 200 OK code: 200 duration: "" @@ -213,10 +213,10 @@ interactions: - GetAPITest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/6gq-waj-6eg + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/pgh-24k-pq7 method: GET response: - body: '{"status":"paused","public_id":"6gq-waj-6eg","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1642773192","monitor_id":61781250,"type":"api","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"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"zwv-y4k-i34","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]}],"assertions":[],"configVariables":[{"type":"global","id":"c7e9947e-ff15-413d-a203-da16bfb896a4","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"pgh-24k-pq7","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1643038244","monitor_id":61943460,"type":"api","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":"2m6-fpn-c34","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]}],"assertions":[],"configVariables":[{"type":"global","id":"6243c9ac-ba6a-4569-b3e0-691342b00167","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -227,7 +227,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:53:15 GMT + - Mon, 24 Jan 2022 15:30:46 GMT Pragma: - no-cache Strict-Transport-Security: @@ -247,7 +247,7 @@ interactions: X-Ratelimit-Remaining: - "999" X-Ratelimit-Reset: - - "45" + - "14" status: 200 OK code: 200 duration: "" @@ -261,10 +261,10 @@ interactions: - GetGlobalVariable User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/c7e9947e-ff15-413d-a203-da16bfb896a4 + url: https://api.datadoghq.com/api/v1/synthetics/variables/6243c9ac-ba6a-4569-b3e0-691342b00167 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":"c7e9947e-ff15-413d-a203-da16bfb896a4","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1642773192","created_at":"2022-01-21T13:53:14.539750+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:53:14.539750+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":"6243c9ac-ba6a-4569-b3e0-691342b00167","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1643038244","created_at":"2022-01-24T15:30:45.669666+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-24T15:30:45.669666+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' headers: Cache-Control: - no-cache @@ -275,7 +275,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:53:15 GMT + - Mon, 24 Jan 2022 15:30:46 GMT Pragma: - no-cache Strict-Transport-Security: @@ -295,7 +295,7 @@ interactions: X-Ratelimit-Remaining: - "11997" X-Ratelimit-Reset: - - "45" + - "14" status: 200 OK code: 200 duration: "" @@ -309,10 +309,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/6gq-waj-6eg + url: https://api.datadoghq.com/api/v1/synthetics/tests/pgh-24k-pq7 method: GET response: - body: '{"status":"paused","public_id":"6gq-waj-6eg","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1642773192","monitor_id":61781250,"type":"api","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"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"zwv-y4k-i34","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]}],"assertions":[],"configVariables":[{"type":"global","id":"c7e9947e-ff15-413d-a203-da16bfb896a4","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"pgh-24k-pq7","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1643038244","monitor_id":61943460,"type":"api","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":"2m6-fpn-c34","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]}],"assertions":[],"configVariables":[{"type":"global","id":"6243c9ac-ba6a-4569-b3e0-691342b00167","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -323,7 +323,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:53:15 GMT + - Mon, 24 Jan 2022 15:30:48 GMT Pragma: - no-cache Strict-Transport-Security: @@ -343,7 +343,7 @@ interactions: X-Ratelimit-Remaining: - "998" X-Ratelimit-Reset: - - "45" + - "13" status: 200 OK code: 200 duration: "" @@ -357,10 +357,10 @@ interactions: - GetGlobalVariable User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/c7e9947e-ff15-413d-a203-da16bfb896a4 + url: https://api.datadoghq.com/api/v1/synthetics/variables/6243c9ac-ba6a-4569-b3e0-691342b00167 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":"c7e9947e-ff15-413d-a203-da16bfb896a4","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1642773192","created_at":"2022-01-21T13:53:14.539750+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-21T13:53:14.539750+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":"6243c9ac-ba6a-4569-b3e0-691342b00167","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1643038244","created_at":"2022-01-24T15:30:45.669666+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-24T15:30:45.669666+00:00","value":{"secure":false,"value":"variable-value"},"parse_test_name":null,"type":"variable"}' headers: Cache-Control: - no-cache @@ -371,7 +371,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:53:16 GMT + - Mon, 24 Jan 2022 15:30:48 GMT Pragma: - no-cache Strict-Transport-Security: @@ -391,7 +391,7 @@ interactions: X-Ratelimit-Remaining: - "11996" X-Ratelimit-Reset: - - "44" + - "12" status: 200 OK code: 200 duration: "" @@ -405,10 +405,10 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/6gq-waj-6eg + url: https://api.datadoghq.com/api/v1/synthetics/tests/pgh-24k-pq7 method: GET response: - body: '{"status":"paused","public_id":"6gq-waj-6eg","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1642773192","monitor_id":61781250,"type":"api","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"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"zwv-y4k-i34","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]}],"assertions":[],"configVariables":[{"type":"global","id":"c7e9947e-ff15-413d-a203-da16bfb896a4","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"pgh-24k-pq7","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1643038244","monitor_id":61943460,"type":"api","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":"2m6-fpn-c34","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]}],"assertions":[],"configVariables":[{"type":"global","id":"6243c9ac-ba6a-4569-b3e0-691342b00167","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -419,7 +419,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:53:16 GMT + - Mon, 24 Jan 2022 15:30:49 GMT Pragma: - no-cache Strict-Transport-Security: @@ -439,7 +439,7 @@ interactions: X-Ratelimit-Remaining: - "997" X-Ratelimit-Reset: - - "44" + - "12" status: 200 OK code: 200 duration: "" @@ -453,10 +453,10 @@ interactions: - GetAPITest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/6gq-waj-6eg + url: https://api.datadoghq.com/api/v1/synthetics/tests/api/pgh-24k-pq7 method: GET response: - body: '{"status":"paused","public_id":"6gq-waj-6eg","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1642773192","monitor_id":61781250,"type":"api","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"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"zwv-y4k-i34","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]}],"assertions":[],"configVariables":[{"type":"global","id":"c7e9947e-ff15-413d-a203-da16bfb896a4","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"pgh-24k-pq7","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1643038244","monitor_id":61943460,"type":"api","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":"2m6-fpn-c34","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]}],"assertions":[],"configVariables":[{"type":"global","id":"6243c9ac-ba6a-4569-b3e0-691342b00167","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' headers: Cache-Control: - no-cache @@ -467,7 +467,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:53:16 GMT + - Mon, 24 Jan 2022 15:30:49 GMT Pragma: - no-cache Strict-Transport-Security: @@ -487,13 +487,13 @@ interactions: X-Ratelimit-Remaining: - "996" X-Ratelimit-Reset: - - "44" + - "11" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["6gq-waj-6eg"]} + {"public_ids":["pgh-24k-pq7"]} form: {} headers: Accept: @@ -509,7 +509,7 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-01-21T13:53:17.700039+00:00","public_id":"6gq-waj-6eg"}]}' + body: '{"deleted_tests":[{"deleted_at":"2022-01-24T15:30:49.975187+00:00","public_id":"pgh-24k-pq7"}]}' headers: Cache-Control: - no-cache @@ -520,7 +520,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:53:17 GMT + - Mon, 24 Jan 2022 15:30:50 GMT Pragma: - no-cache Strict-Transport-Security: @@ -540,7 +540,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "43" + - "11" status: 200 OK code: 200 duration: "" @@ -554,7 +554,7 @@ interactions: - DeleteGlobalVariable User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/c7e9947e-ff15-413d-a203-da16bfb896a4 + url: https://api.datadoghq.com/api/v1/synthetics/variables/6243c9ac-ba6a-4569-b3e0-691342b00167 method: DELETE response: body: '{}' @@ -570,7 +570,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:53:18 GMT + - Mon, 24 Jan 2022 15:30:50 GMT Pragma: - no-cache Strict-Transport-Security: @@ -588,7 +588,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "43" + - "10" status: 200 OK code: 200 duration: "" @@ -602,7 +602,7 @@ interactions: - GetGlobalVariable User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/c7e9947e-ff15-413d-a203-da16bfb896a4 + url: https://api.datadoghq.com/api/v1/synthetics/variables/6243c9ac-ba6a-4569-b3e0-691342b00167 method: GET response: body: '{"errors": ["Synthetics global variable not found"]}' @@ -616,7 +616,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:53:18 GMT + - Mon, 24 Jan 2022 15:30:51 GMT Pragma: - no-cache Strict-Transport-Security: @@ -636,7 +636,7 @@ interactions: X-Ratelimit-Remaining: - "11995" X-Ratelimit-Reset: - - "42" + - "9" status: 404 Not Found code: 404 duration: "" @@ -650,7 +650,7 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.7.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/6gq-waj-6eg + url: https://api.datadoghq.com/api/v1/synthetics/tests/pgh-24k-pq7 method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -664,7 +664,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 21 Jan 2022 13:53:18 GMT + - Mon, 24 Jan 2022 15:30:51 GMT Pragma: - no-cache Strict-Transport-Security: @@ -684,7 +684,7 @@ interactions: X-Ratelimit-Remaining: - "995" X-Ratelimit-Reset: - - "42" + - "9" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/tests/resource_datadog_synthetics_test_test.go b/datadog/tests/resource_datadog_synthetics_test_test.go index 8cc3fed08c..b819088b3a 100644 --- a/datadog/tests/resource_datadog_synthetics_test_test.go +++ b/datadog/tests/resource_datadog_synthetics_test_test.go @@ -474,6 +474,16 @@ func createSyntheticsAPITestStep(ctx context.Context, accProvider func() (*schem "datadog_synthetics_test.foo", "request_basicauth.0.domain", "ntlm-domain"), resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "request_basicauth.0.workstation", "ntlm-workstation"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.foo", "request_proxy.#", "1"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.foo", "request_proxy.0.url", "https://proxy.url"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.foo", "request_proxy.0.headers.%", "2"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.foo", "request_proxy.0.headers.Accept", "application/json"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.foo", "request_proxy.0.headers.X-Datadog-Trace-ID", "123456789"), resource.TestCheckResourceAttr( "datadog_synthetics_test.foo", "assertion.#", "4"), resource.TestCheckResourceAttr( @@ -565,7 +575,7 @@ resource "datadog_synthetics_test" "foo" { } request_headers = { Accept = "application/json" - X-Datadog-Trace-ID = "1234566789" + X-Datadog-Trace-ID = "123456789" } request_basicauth { @@ -576,6 +586,14 @@ resource "datadog_synthetics_test" "foo" { workstation = "ntlm-workstation" } + request_proxy { + url = "https://proxy.url" + headers = { + Accept = "application/json" + X-Datadog-Trace-ID = "123456789" + } + } + assertion { type = "header" property = "content-type" @@ -785,7 +803,7 @@ resource "datadog_synthetics_test" "bar" { } request_headers = { Accept = "application/json" - X-Datadog-Trace-ID = "1234566789" + X-Datadog-Trace-ID = "123456789" } request_client_certificate { cert { @@ -1950,6 +1968,16 @@ func createSyntheticsBrowserTestStep(ctx context.Context, accProvider func() (*s "datadog_synthetics_test.bar", "request_basicauth.0.username", "username"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "request_basicauth.0.password", "password"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "request_proxy.#", "1"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "request_proxy.0.url", "https://proxy.url"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "request_proxy.0.headers.%", "2"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "request_proxy.0.headers.Accept", "application/json"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "request_proxy.0.headers.X-Datadog-Trace-ID", "123456789"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "set_cookie", "name=value"), resource.TestCheckResourceAttr( @@ -2045,6 +2073,14 @@ resource "datadog_synthetics_test" "bar" { password = "password" } + request_proxy { + url = "https://proxy.url" + headers = { + Accept = "application/json" + X-Datadog-Trace-ID = "123456789" + } + } + set_cookie = "name=value" device_ids = [ "laptop_large", "mobile_small" ] @@ -3025,6 +3061,16 @@ func createSyntheticsMultistepAPITest(ctx context.Context, accProvider func() (* "datadog_synthetics_test.multi", "api_step.0.request_client_certificate.0.key.0.filename", "key"), resource.TestCheckResourceAttr( "datadog_synthetics_test.multi", "api_step.0.request_client_certificate.0.key.0.content", utils.ConvertToSha256("content-key")), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.multi", "api_step.0.request_proxy.#", "1"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.multi", "api_step.0.request_proxy.0.url", "https://proxy.url"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.multi", "api_step.0.request_proxy.0.headers.%", "2"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.multi", "api_step.0.request_proxy.0.headers.Accept", "application/json"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.multi", "api_step.0.request_proxy.0.headers.X-Datadog-Trace-ID", "123456789"), resource.TestCheckResourceAttr( "datadog_synthetics_test.multi", "api_step.0.assertion.#", "1"), resource.TestCheckResourceAttr( @@ -3126,6 +3172,13 @@ resource "datadog_synthetics_test" "multi" { filename = "key" } } + request_proxy { + url = "https://proxy.url" + headers = { + Accept = "application/json" + X-Datadog-Trace-ID = "123456789" + } + } assertion { type = "statusCode" operator = "is" From b1164f70055a494972d6178dcf38a920db01b964 Mon Sep 17 00:00:00 2001 From: Romain Berger Date: Thu, 27 Jan 2022 10:44:20 +0100 Subject: [PATCH 4/7] [Synthetics] Regenerate docs --- docs/resources/synthetics_test.md | 46 +++++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/docs/resources/synthetics_test.md b/docs/resources/synthetics_test.md index 6bc956f2ae..16eae1c3cc 100644 --- a/docs/resources/synthetics_test.md +++ b/docs/resources/synthetics_test.md @@ -295,6 +295,7 @@ resource "datadog_synthetics_test" "test_browser" { - **request_client_certificate** (Block List, Max: 1) Client certificate to use when performing the test request. Exactly one nested block is allowed with the structure below. (see [below for nested schema](#nestedblock--request_client_certificate)) - **request_definition** (Block List, Max: 1) Required if `type = "api"`. The synthetics test request. (see [below for nested schema](#nestedblock--request_definition)) - **request_headers** (Map of String) Header name and value map. +- **request_proxy** (Block List, Max: 1) The proxy to perform the test. (see [below for nested schema](#nestedblock--request_proxy)) - **request_query** (Map of String) Query arguments name and value map. - **set_cookie** (String) Cookies to be used for a browser test request, using the [Set-Cookie](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie) syntax. - **subtype** (String) The subtype of the Synthetic API test. Defaults to `http`. Valid values are `http`, `ssl`, `tcp`, `dns`, `multi`, `icmp`, `udp`, `websocket`. @@ -322,6 +323,7 @@ Optional: - **request_client_certificate** (Block List, Max: 1) Client certificate to use when performing the test request. Exactly one nested block is allowed with the structure below. (see [below for nested schema](#nestedblock--api_step--request_client_certificate)) - **request_definition** (Block List, Max: 1) The request for the api step. (see [below for nested schema](#nestedblock--api_step--request_definition)) - **request_headers** (Map of String) Header name and value map. +- **request_proxy** (Block List, Max: 1) The proxy to perform the test. (see [below for nested schema](#nestedblock--api_step--request_proxy)) - **request_query** (Map of String) Query arguments name and value map. - **retry** (Block List, Max: 1) (see [below for nested schema](#nestedblock--api_step--retry)) - **subtype** (String) The subtype of the Synthetic multistep API test step. Valid values are `http`. @@ -380,10 +382,18 @@ Optional: ### Nested Schema for `api_step.request_basicauth` -Required: +Optional: +- **access_key** (String) Access key for the `SIGV4` authentication. +- **domain** (String) Domain for the `ntlm` authentication. - **password** (String, Sensitive) Password for authentication. +- **region** (String) Region for the `SIGV4` authentication. +- **secret_key** (String) Secret key for the `SIGV4` authentication. +- **service_name** (String) Service name for the `SIGV4` authentication. +- **session_token** (String) Session token for the `SIGV4` authentication. +- **type** (String) The type of basic authentication to use when performing the test. - **username** (String) Username for authentication. +- **workstation** (String) workstation for the `ntlm` authentication. @@ -441,6 +451,18 @@ Optional: - **url** (String) The URL to send the request to. + +### Nested Schema for `api_step.request_proxy` + +Required: + +- **url** (String) URL of the proxy to perform the test. + +Optional: + +- **headers** (Map of String) Header name and value map. + + ### Nested Schema for `api_step.retry` @@ -597,10 +619,18 @@ Optional: ### Nested Schema for `request_basicauth` -Required: +Optional: +- **access_key** (String) Access key for the `SIGV4` authentication. +- **domain** (String) Domain for the `ntlm` authentication. - **password** (String, Sensitive) Password for authentication. +- **region** (String) Region for the `SIGV4` authentication. +- **secret_key** (String) Secret key for the `SIGV4` authentication. +- **service_name** (String) Service name for the `SIGV4` authentication. +- **session_token** (String) Session token for the `SIGV4` authentication. +- **type** (String) The type of basic authentication to use when performing the test. - **username** (String) Username for authentication. +- **workstation** (String) workstation for the `ntlm` authentication. @@ -655,6 +685,18 @@ Optional: - **timeout** (Number) Timeout in seconds for the test. Defaults to `60`. - **url** (String) The URL to send the request to. + + +### Nested Schema for `request_proxy` + +Required: + +- **url** (String) URL of the proxy to perform the test. + +Optional: + +- **headers** (Map of String) Header name and value map. + ## Import Import is supported using the following syntax: From 00ce46e82ce36bbb93c2f87d7f6aa28ac6557136 Mon Sep 17 00:00:00 2001 From: Romain Berger Date: Tue, 1 Feb 2022 15:01:04 +0100 Subject: [PATCH 5/7] [Synthetics] Fix documentation review --- datadog/resource_datadog_synthetics_test_.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/datadog/resource_datadog_synthetics_test_.go b/datadog/resource_datadog_synthetics_test_.go index 2ecd534728..8991253690 100644 --- a/datadog/resource_datadog_synthetics_test_.go +++ b/datadog/resource_datadog_synthetics_test_.go @@ -224,7 +224,7 @@ func syntheticsTestRequestBasicAuth() *schema.Schema { Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "type": { - Description: "The type of basic authentication to use when performing the test.", + Description: "Type of basic authentication to use when performing the test.", Type: schema.TypeString, Optional: true, Default: "web", @@ -243,37 +243,37 @@ func syntheticsTestRequestBasicAuth() *schema.Schema { }, "access_key": { Type: schema.TypeString, - Description: "Access key for the `SIGV4` authentication.", + Description: "Access key for `SIGV4` authentication.", Optional: true, }, "secret_key": { Type: schema.TypeString, - Description: "Secret key for the `SIGV4` authentication.", + Description: "Secret key for `SIGV4` authentication.", Optional: true, }, "region": { Type: schema.TypeString, - Description: "Region for the `SIGV4` authentication.", + Description: "Region for `SIGV4` authentication.", Optional: true, }, "service_name": { Type: schema.TypeString, - Description: "Service name for the `SIGV4` authentication.", + Description: "Service name for `SIGV4` authentication.", Optional: true, }, "session_token": { Type: schema.TypeString, - Description: "Session token for the `SIGV4` authentication.", + Description: "Session token for `SIGV4` authentication.", Optional: true, }, "domain": { Type: schema.TypeString, - Description: "Domain for the `ntlm` authentication.", + Description: "Domain for `ntlm` authentication.", Optional: true, }, "workstation": { Type: schema.TypeString, - Description: "workstation for the `ntlm` authentication.", + Description: "Workstation for `ntlm` authentication.", Optional: true, }, }, From 4df10b0aabedabb1df513b55987e7846a5168d26 Mon Sep 17 00:00:00 2001 From: Romain Berger Date: Mon, 7 Feb 2022 14:00:36 +0100 Subject: [PATCH 6/7] [Synthetics] Review fixes --- datadog/resource_datadog_synthetics_test_.go | 10 ++- ...csBrowserTestBrowserVariables_Basic.freeze | 2 +- ...ticsBrowserTestBrowserVariables_Basic.yaml | 76 +++++++++---------- .../resource_datadog_synthetics_test_test.go | 8 +- 4 files changed, 49 insertions(+), 47 deletions(-) diff --git a/datadog/resource_datadog_synthetics_test_.go b/datadog/resource_datadog_synthetics_test_.go index 8991253690..accc424458 100644 --- a/datadog/resource_datadog_synthetics_test_.go +++ b/datadog/resource_datadog_synthetics_test_.go @@ -245,11 +245,13 @@ func syntheticsTestRequestBasicAuth() *schema.Schema { Type: schema.TypeString, Description: "Access key for `SIGV4` authentication.", Optional: true, + Sensitive: true, }, "secret_key": { Type: schema.TypeString, Description: "Secret key for `SIGV4` authentication.", Optional: true, + Sensitive: true, }, "region": { Type: schema.TypeString, @@ -1408,8 +1410,8 @@ func completeSyntheticsTestRequest(request datadogV1.SyntheticsTestRequest, requ if len(requestProxy) > 0 { if proxy, ok := requestProxy[0].(map[string]interface{}); ok { - requestProxy := datadogV1.SyntheticsTestRequestProxy{} - requestProxy.SetUrl(proxy["url"].(string)) + testRequestProxy := datadogV1.SyntheticsTestRequestProxy{} + testRequestProxy.SetUrl(proxy["url"].(string)) proxyHeaders := make(map[string]string, len(proxy["headers"].(map[string]interface{}))) @@ -1417,9 +1419,9 @@ func completeSyntheticsTestRequest(request datadogV1.SyntheticsTestRequest, requ proxyHeaders[k] = v.(string) } - requestProxy.SetHeaders(proxyHeaders) + testRequestProxy.SetHeaders(proxyHeaders) - request.SetProxy(requestProxy) + request.SetProxy(testRequestProxy) } } diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic.freeze b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic.freeze index 938ad12075..feda8cbf9b 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic.freeze @@ -1 +1 @@ -2022-01-25T11:35:03.447778+01:00 \ No newline at end of file +2022-02-07T13:57:10.527601+01:00 \ No newline at end of file diff --git a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic.yaml b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic.yaml index fe34a358c7..c282fc9f03 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic.yaml @@ -3,13 +3,13 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[],"configVariables":[],"request":{"basicAuth":{"password":"ntlm-password","type":"web","username":"ntlm-username"},"method":"GET","url":"https://www.datadoghq.com"},"variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1643106903","options":{"device_ids":["laptop_large"],"min_location_failed":1,"retry":{"count":2,"interval":300},"tick_every":900},"status":"paused","steps":[{"allowFailure":false,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar"],"type":"browser"} + {"config":{"assertions":[],"configVariables":[],"request":{"basicAuth":{"password":"web-password","type":"web","username":"web-username"},"method":"GET","url":"https://www.datadoghq.com"},"variables":[{"example":"597","name":"MY_PATTERN_VAR","pattern":"{{numeric(3)}}","type":"text"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1644238630","options":{"device_ids":["laptop_large"],"min_location_failed":1,"retry":{"count":2,"interval":300},"tick_every":900},"status":"paused","steps":[{"allowFailure":false,"name":"first step","params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"tags":["foo:bar"],"type":"browser"} form: {} headers: Accept: - application/json Content-Length: - - "753" + - "751" Content-Type: - application/json Dd-Operation-Id: @@ -19,18 +19,18 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/browser method: POST response: - body: '{"status":"paused","public_id":"6bx-sdd-q8b","tags":["foo:bar"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1643106903","monitor_id":62017785,"type":"browser","created_at":"2022-01-25T10:35:05.288371+00:00","modified_at":"2022-01-25T10:35:05.288371+00:00","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"request":{"url":"https://www.datadoghq.com","basicAuth":{"username":"ntlm-username","password":"ntlm-password","type":"web"},"method":"GET"},"assertions":[],"configVariables":[]},"options":{"retry":{"count":2,"interval":300},"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"qw7-nej-pmf","tags":["foo:bar"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1644238630","monitor_id":63341769,"type":"browser","created_at":"2022-02-07T12:57:15.403308+00:00","modified_at":"2022-02-07T12:57:15.403308+00:00","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"request":{"url":"https://www.datadoghq.com","basicAuth":{"username":"web-username","password":"web-password","type":"web"},"method":"GET"},"assertions":[],"configVariables":[]},"options":{"retry":{"count":2,"interval":300},"device_ids":["laptop_large"],"min_location_failed":1,"ignoreServerCertificateError":false,"tick_every":900}}' headers: Cache-Control: - no-cache Connection: - keep-alive Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + - frame-ancestors 'self'; report-uri https://logs.browser-intake-datadoghq.com/api/v2/logs?dd-api-key=pube4f163c23bbf91c16b8f57f56af9fc58&dd-evp-origin=content-security-policy&ddsource=csp-report&ddtags=site%3Adatadoghq.com Content-Type: - application/json Date: - - Tue, 25 Jan 2022 10:35:05 GMT + - Mon, 07 Feb 2022 12:57:15 GMT Pragma: - no-cache Strict-Transport-Security: @@ -44,13 +44,13 @@ interactions: X-Ratelimit-Limit: - "12000" X-Ratelimit-Name: - - synthetics_create_test + - global_org X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "55" + - "45" status: 200 OK code: 200 duration: "" @@ -64,21 +64,21 @@ interactions: - GetBrowserTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.8.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/6bx-sdd-q8b + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/qw7-nej-pmf method: GET response: - body: '{"status":"paused","public_id":"6bx-sdd-q8b","tags":["foo:bar"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1643106903","monitor_id":62017785,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"request":{"url":"https://www.datadoghq.com","basicAuth":{"username":"ntlm-username","password":"ntlm-password","type":"web"},"method":"GET"},"assertions":[],"configVariables":[]},"options":{"retry":{"count":2,"interval":300},"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"qw7-nej-pmf","tags":["foo:bar"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1644238630","monitor_id":63341769,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"request":{"url":"https://www.datadoghq.com","basicAuth":{"username":"web-username","password":"web-password","type":"web"},"method":"GET"},"assertions":[],"configVariables":[]},"options":{"retry":{"count":2,"interval":300},"device_ids":["laptop_large"],"min_location_failed":1,"ignoreServerCertificateError":false,"tick_every":900}}' headers: Cache-Control: - no-cache Connection: - keep-alive Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + - frame-ancestors 'self'; report-uri https://logs.browser-intake-datadoghq.com/api/v2/logs?dd-api-key=pube4f163c23bbf91c16b8f57f56af9fc58&dd-evp-origin=content-security-policy&ddsource=csp-report&ddtags=site%3Adatadoghq.com Content-Type: - application/json Date: - - Tue, 25 Jan 2022 10:35:05 GMT + - Mon, 07 Feb 2022 12:57:16 GMT Pragma: - no-cache Strict-Transport-Security: @@ -98,7 +98,7 @@ interactions: X-Ratelimit-Remaining: - "999" X-Ratelimit-Reset: - - "55" + - "44" status: 200 OK code: 200 duration: "" @@ -112,21 +112,21 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.8.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/6bx-sdd-q8b + url: https://api.datadoghq.com/api/v1/synthetics/tests/qw7-nej-pmf method: GET response: - body: '{"status":"paused","public_id":"6bx-sdd-q8b","tags":["foo:bar"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1643106903","monitor_id":62017785,"type":"browser","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"request":{"url":"https://www.datadoghq.com","basicAuth":{"username":"ntlm-username","password":"ntlm-password","type":"web"},"method":"GET"},"assertions":[],"configVariables":[]},"options":{"retry":{"count":2,"interval":300},"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"qw7-nej-pmf","tags":["foo:bar"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1644238630","monitor_id":63341769,"type":"browser","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"request":{"url":"https://www.datadoghq.com","basicAuth":{"username":"web-username","password":"web-password","type":"web"},"method":"GET"},"assertions":[],"configVariables":[]},"options":{"retry":{"count":2,"interval":300},"device_ids":["laptop_large"],"min_location_failed":1,"ignoreServerCertificateError":false,"tick_every":900}}' headers: Cache-Control: - no-cache Connection: - keep-alive Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + - frame-ancestors 'self'; report-uri https://logs.browser-intake-datadoghq.com/api/v2/logs?dd-api-key=pube4f163c23bbf91c16b8f57f56af9fc58&dd-evp-origin=content-security-policy&ddsource=csp-report&ddtags=site%3Adatadoghq.com Content-Type: - application/json Date: - - Tue, 25 Jan 2022 10:35:05 GMT + - Mon, 07 Feb 2022 12:57:16 GMT Pragma: - no-cache Strict-Transport-Security: @@ -146,7 +146,7 @@ interactions: X-Ratelimit-Remaining: - "998" X-Ratelimit-Reset: - - "55" + - "44" status: 200 OK code: 200 duration: "" @@ -160,21 +160,21 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.8.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/6bx-sdd-q8b + url: https://api.datadoghq.com/api/v1/synthetics/tests/qw7-nej-pmf method: GET response: - body: '{"status":"paused","public_id":"6bx-sdd-q8b","tags":["foo:bar"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1643106903","monitor_id":62017785,"type":"browser","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"request":{"url":"https://www.datadoghq.com","basicAuth":{"username":"ntlm-username","password":"ntlm-password","type":"web"},"method":"GET"},"assertions":[],"configVariables":[]},"options":{"retry":{"count":2,"interval":300},"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"qw7-nej-pmf","tags":["foo:bar"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1644238630","monitor_id":63341769,"type":"browser","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"request":{"url":"https://www.datadoghq.com","basicAuth":{"username":"web-username","password":"web-password","type":"web"},"method":"GET"},"assertions":[],"configVariables":[]},"options":{"retry":{"count":2,"interval":300},"device_ids":["laptop_large"],"min_location_failed":1,"ignoreServerCertificateError":false,"tick_every":900}}' headers: Cache-Control: - no-cache Connection: - keep-alive Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + - frame-ancestors 'self'; report-uri https://logs.browser-intake-datadoghq.com/api/v2/logs?dd-api-key=pube4f163c23bbf91c16b8f57f56af9fc58&dd-evp-origin=content-security-policy&ddsource=csp-report&ddtags=site%3Adatadoghq.com Content-Type: - application/json Date: - - Tue, 25 Jan 2022 10:35:06 GMT + - Mon, 07 Feb 2022 12:57:17 GMT Pragma: - no-cache Strict-Transport-Security: @@ -194,7 +194,7 @@ interactions: X-Ratelimit-Remaining: - "997" X-Ratelimit-Reset: - - "54" + - "43" status: 200 OK code: 200 duration: "" @@ -208,21 +208,21 @@ interactions: - GetBrowserTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.8.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/6bx-sdd-q8b + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/qw7-nej-pmf method: GET response: - body: '{"status":"paused","public_id":"6bx-sdd-q8b","tags":["foo:bar"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1643106903","monitor_id":62017785,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"request":{"url":"https://www.datadoghq.com","basicAuth":{"username":"ntlm-username","password":"ntlm-password","type":"web"},"method":"GET"},"assertions":[],"configVariables":[]},"options":{"retry":{"count":2,"interval":300},"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"qw7-nej-pmf","tags":["foo:bar"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-local-1644238630","monitor_id":63341769,"type":"browser","steps":[{"name":"first step","allowFailure":false,"params":{"check":"contains","value":"content"},"timeout":0,"type":"assertCurrentUrl"}],"config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"request":{"url":"https://www.datadoghq.com","basicAuth":{"username":"web-username","password":"web-password","type":"web"},"method":"GET"},"assertions":[],"configVariables":[]},"options":{"retry":{"count":2,"interval":300},"device_ids":["laptop_large"],"min_location_failed":1,"ignoreServerCertificateError":false,"tick_every":900}}' headers: Cache-Control: - no-cache Connection: - keep-alive Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + - frame-ancestors 'self'; report-uri https://logs.browser-intake-datadoghq.com/api/v2/logs?dd-api-key=pube4f163c23bbf91c16b8f57f56af9fc58&dd-evp-origin=content-security-policy&ddsource=csp-report&ddtags=site%3Adatadoghq.com Content-Type: - application/json Date: - - Tue, 25 Jan 2022 10:35:07 GMT + - Mon, 07 Feb 2022 12:57:17 GMT Pragma: - no-cache Strict-Transport-Security: @@ -242,13 +242,13 @@ interactions: X-Ratelimit-Remaining: - "996" X-Ratelimit-Reset: - - "54" + - "43" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["6bx-sdd-q8b"]} + {"public_ids":["qw7-nej-pmf"]} form: {} headers: Accept: @@ -264,18 +264,18 @@ interactions: url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2022-01-25T10:35:08.212243+00:00","public_id":"6bx-sdd-q8b"}]}' + body: '{"deleted_tests":[{"deleted_at":"2022-02-07T12:57:18.817012+00:00","public_id":"qw7-nej-pmf"}]}' headers: Cache-Control: - no-cache Connection: - keep-alive Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + - frame-ancestors 'self'; report-uri https://logs.browser-intake-datadoghq.com/api/v2/logs?dd-api-key=pube4f163c23bbf91c16b8f57f56af9fc58&dd-evp-origin=content-security-policy&ddsource=csp-report&ddtags=site%3Adatadoghq.com Content-Type: - application/json Date: - - Tue, 25 Jan 2022 10:35:08 GMT + - Mon, 07 Feb 2022 12:57:18 GMT Pragma: - no-cache Strict-Transport-Security: @@ -289,13 +289,13 @@ interactions: X-Ratelimit-Limit: - "12000" X-Ratelimit-Name: - - synthetics_delete_tests + - global_org X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11999" + - "11998" X-Ratelimit-Reset: - - "52" + - "42" status: 200 OK code: 200 duration: "" @@ -309,7 +309,7 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.13.3) datadog-api-client-go/1.8.1+dev (go go1.16.6; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/6bx-sdd-q8b + url: https://api.datadoghq.com/api/v1/synthetics/tests/qw7-nej-pmf method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -319,11 +319,11 @@ interactions: Connection: - keep-alive Content-Security-Policy: - - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report + - frame-ancestors 'self'; report-uri https://logs.browser-intake-datadoghq.com/api/v2/logs?dd-api-key=pube4f163c23bbf91c16b8f57f56af9fc58&dd-evp-origin=content-security-policy&ddsource=csp-report&ddtags=site%3Adatadoghq.com Content-Type: - application/json Date: - - Tue, 25 Jan 2022 10:35:08 GMT + - Mon, 07 Feb 2022 12:57:19 GMT Pragma: - no-cache Strict-Transport-Security: @@ -343,7 +343,7 @@ interactions: X-Ratelimit-Remaining: - "995" X-Ratelimit-Reset: - - "52" + - "41" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/tests/resource_datadog_synthetics_test_test.go b/datadog/tests/resource_datadog_synthetics_test_test.go index eb403347eb..3a52b30172 100644 --- a/datadog/tests/resource_datadog_synthetics_test_test.go +++ b/datadog/tests/resource_datadog_synthetics_test_test.go @@ -2305,9 +2305,9 @@ func createSyntheticsBrowserTestBrowserVariablesStep(ctx context.Context, accPro resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "request_basicauth.0.type", "web"), resource.TestCheckResourceAttr( - "datadog_synthetics_test.bar", "request_basicauth.0.username", "ntlm-username"), + "datadog_synthetics_test.bar", "request_basicauth.0.username", "web-username"), resource.TestCheckResourceAttr( - "datadog_synthetics_test.bar", "request_basicauth.0.password", "ntlm-password"), + "datadog_synthetics_test.bar", "request_basicauth.0.password", "web-password"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "device_ids.#", "1"), resource.TestCheckResourceAttr( @@ -2371,8 +2371,8 @@ resource "datadog_synthetics_test" "bar" { } request_basicauth { - username = "ntlm-username" - password = "ntlm-password" + username = "web-username" + password = "web-password" } device_ids = [ "laptop_large" ] From 7d2dde2bfedb4c1ea5c670a7d5830b56538ed162 Mon Sep 17 00:00:00 2001 From: Romain Berger Date: Mon, 7 Feb 2022 14:03:29 +0100 Subject: [PATCH 7/7] [Synthetics] Update docs --- docs/resources/synthetics_test.md | 32 +++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/docs/resources/synthetics_test.md b/docs/resources/synthetics_test.md index 16eae1c3cc..8d8367821d 100644 --- a/docs/resources/synthetics_test.md +++ b/docs/resources/synthetics_test.md @@ -384,16 +384,16 @@ Optional: Optional: -- **access_key** (String) Access key for the `SIGV4` authentication. -- **domain** (String) Domain for the `ntlm` authentication. +- **access_key** (String, Sensitive) Access key for `SIGV4` authentication. +- **domain** (String) Domain for `ntlm` authentication. - **password** (String, Sensitive) Password for authentication. -- **region** (String) Region for the `SIGV4` authentication. -- **secret_key** (String) Secret key for the `SIGV4` authentication. -- **service_name** (String) Service name for the `SIGV4` authentication. -- **session_token** (String) Session token for the `SIGV4` authentication. -- **type** (String) The type of basic authentication to use when performing the test. +- **region** (String) Region for `SIGV4` authentication. +- **secret_key** (String, Sensitive) Secret key for `SIGV4` authentication. +- **service_name** (String) Service name for `SIGV4` authentication. +- **session_token** (String) Session token for `SIGV4` authentication. +- **type** (String) Type of basic authentication to use when performing the test. - **username** (String) Username for authentication. -- **workstation** (String) workstation for the `ntlm` authentication. +- **workstation** (String) Workstation for `ntlm` authentication. @@ -621,16 +621,16 @@ Optional: Optional: -- **access_key** (String) Access key for the `SIGV4` authentication. -- **domain** (String) Domain for the `ntlm` authentication. +- **access_key** (String, Sensitive) Access key for `SIGV4` authentication. +- **domain** (String) Domain for `ntlm` authentication. - **password** (String, Sensitive) Password for authentication. -- **region** (String) Region for the `SIGV4` authentication. -- **secret_key** (String) Secret key for the `SIGV4` authentication. -- **service_name** (String) Service name for the `SIGV4` authentication. -- **session_token** (String) Session token for the `SIGV4` authentication. -- **type** (String) The type of basic authentication to use when performing the test. +- **region** (String) Region for `SIGV4` authentication. +- **secret_key** (String, Sensitive) Secret key for `SIGV4` authentication. +- **service_name** (String) Service name for `SIGV4` authentication. +- **session_token** (String) Session token for `SIGV4` authentication. +- **type** (String) Type of basic authentication to use when performing the test. - **username** (String) Username for authentication. -- **workstation** (String) workstation for the `ntlm` authentication. +- **workstation** (String) Workstation for `ntlm` authentication.