diff --git a/datadog/resource_datadog_synthetics_test_.go b/datadog/resource_datadog_synthetics_test_.go index f29f8cd9e6..accc424458 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(), @@ -222,17 +223,80 @@ func syntheticsTestRequestBasicAuth() *schema.Schema { MaxItems: 1, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ + "type": { + Description: "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 `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, + Description: "Region for `SIGV4` authentication.", + Optional: true, + }, + "service_name": { + Type: schema.TypeString, + Description: "Service name for `SIGV4` authentication.", + Optional: true, + }, + "session_token": { + Type: schema.TypeString, + Description: "Session token for `SIGV4` authentication.", + Optional: true, + }, + "domain": { + Type: schema.TypeString, + Description: "Domain for `ntlm` authentication.", + Optional: true, + }, + "workstation": { + Type: schema.TypeString, + Description: "Workstation for `ntlm` authentication.", + Optional: true, + }, + }, + }, + } +} + +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(), }, }, } @@ -507,6 +571,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": { @@ -1073,7 +1138,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() @@ -1140,7 +1205,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) @@ -1255,7 +1320,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)) @@ -1272,12 +1337,33 @@ func completeSyntheticsTestRequest(request datadogV1.SyntheticsTestRequest, requ if len(basicAuth) > 0 { if requestBasicAuth, ok := basicAuth[0].(map[string]interface{}); ok { - if requestBasicAuth["username"] != "" && requestBasicAuth["password"] != "" { + if requestBasicAuth["type"] == "web" && requestBasicAuth["username"] != "" && requestBasicAuth["password"] != "" { basicAuth := datadogV1.NewSyntheticsBasicAuthWebWithDefaults() basicAuth.SetPassword(requestBasicAuth["password"].(string)) basicAuth.SetUsername(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)) + } } } @@ -1322,6 +1408,23 @@ func completeSyntheticsTestRequest(request datadogV1.SyntheticsTestRequest, requ request.SetCertificate(requestClientCertificate) } + if len(requestProxy) > 0 { + if proxy, ok := requestProxy[0].(map[string]interface{}); ok { + testRequestProxy := datadogV1.SyntheticsTestRequestProxy{} + testRequestProxy.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) + } + + testRequestProxy.SetHeaders(proxyHeaders) + + request.SetProxy(testRequestProxy) + } + } + return request } @@ -1429,6 +1532,7 @@ func buildSyntheticsBrowserTestStruct(d *schema.ResourceData) *datadogV1.Synthet request.SetBasicAuth(datadogV1.SyntheticsBasicAuthWebAsSyntheticsBasicAuth(basicAuth)) } } + if attr, ok := d.GetOk("request_headers"); ok { headers := attr.(map[string]interface{}) if len(headers) > 0 { @@ -1465,6 +1569,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) @@ -1752,6 +1876,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)) @@ -1822,10 +1979,10 @@ func updateSyntheticsBrowserTestLocalState(d *schema.ResourceData, syntheticsTes if err := d.Set("request_query", actualRequest.GetQuery()); err != nil { return diag.FromErr(err) } + if basicAuth, ok := actualRequest.GetBasicAuthOk(); ok && basicAuth.SyntheticsBasicAuthWeb != nil { - localAuth := make(map[string]string) - localAuth["username"] = basicAuth.SyntheticsBasicAuthWeb.Username - localAuth["password"] = basicAuth.SyntheticsBasicAuthWeb.Password + localAuth := buildLocalBasicAuth(basicAuth) + if err := d.Set("request_basicauth", []map[string]string{localAuth}); err != nil { return diag.FromErr(err) } @@ -1859,6 +2016,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) @@ -2070,10 +2235,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 && basicAuth.SyntheticsBasicAuthWeb != nil { - localAuth := make(map[string]string) - localAuth["username"] = basicAuth.SyntheticsBasicAuthWeb.Username - localAuth["password"] = basicAuth.SyntheticsBasicAuthWeb.Password + + if basicAuth, ok := actualRequest.GetBasicAuthOk(); ok { + localAuth := buildLocalBasicAuth(basicAuth) + if err := d.Set("request_basicauth", []map[string]string{localAuth}); err != nil { return diag.FromErr(err) } @@ -2107,6 +2272,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) @@ -2170,10 +2343,8 @@ func updateSyntheticsAPITestLocalState(d *schema.ResourceData, syntheticsTest *d localStep["request_headers"] = stepRequest.GetHeaders() localStep["request_query"] = stepRequest.GetQuery() - if basicAuth, ok := stepRequest.GetBasicAuthOk(); ok && basicAuth.SyntheticsBasicAuthWeb != nil { - localAuth := make(map[string]string) - localAuth["username"] = basicAuth.SyntheticsBasicAuthWeb.Username - localAuth["password"] = basicAuth.SyntheticsBasicAuthWeb.Password + if basicAuth, ok := stepRequest.GetBasicAuthOk(); ok { + localAuth := buildLocalBasicAuth(basicAuth) localStep["request_basicauth"] = []map[string]string{localAuth} } @@ -2206,6 +2377,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 f3264247fe..8f9031f9c3 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-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 649d65e983..0cdd4e180d 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":"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: - - "1043" + - "1289" 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":"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: - - Mon, 20 Dec 2021 18:23:11 GMT + - Tue, 25 Jan 2022 05:56:44 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" + - "11999" X-Ratelimit-Reset: - - "50" + - "16" 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/27v-mwp-sy2 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":"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 @@ -76,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:11 GMT + - Tue, 25 Jan 2022 05:56:44 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" + - "999" X-Ratelimit-Reset: - - "49" + - "16" 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/27v-mwp-sy2 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":"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 @@ -122,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:12 GMT + - Tue, 25 Jan 2022 05:56:44 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" + - "997" X-Ratelimit-Reset: - - "48" + - "16" 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/27v-mwp-sy2 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":"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 @@ -168,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:13 GMT + - Tue, 25 Jan 2022 05:56:45 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" + - "995" X-Ratelimit-Reset: - - "47" + - "15" 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/27v-mwp-sy2 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":"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 @@ -214,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:13 GMT + - Tue, 25 Jan 2022 05:56:45 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" + - "993" X-Ratelimit-Reset: - - "47" + - "15" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["yce-xdt-siz"]} + {"public_ids":["27v-mwp-sy2"]} 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-25T05:56:46.250160+00:00","public_id":"27v-mwp-sy2"}]}' headers: Cache-Control: - no-cache @@ -265,7 +275,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:15 GMT + - Tue, 25 Jan 2022 05:56:46 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" + - "14" 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/27v-mwp-sy2 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 + - Tue, 25 Jan 2022 05:56:46 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: + - "991" + X-Ratelimit-Reset: + - "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 95677a762a..cb3058b057 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze @@ -1 +1 @@ -2022-01-18T17:35:07.239048+01:00 \ No newline at end of file +2022-01-25T11:07:12.543827+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 65533da9d0..7c586a0391 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","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-1642523707","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-1643105232","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: - CreateSyntheticsAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.15.4) datadog-api-client-go/1.8.0 (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.8.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":"zf5-4zx-ui9","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1642523707","monitor_id":61339980,"type":"api","created_at":"2022-01-18T16:35:20.855019+00:00","modified_at":"2022-01-18T16:35:20.855019+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":"vwh-yzc-f9x","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1643105232","monitor_id":62016157,"type":"api","created_at":"2022-01-25T10:07:14.686879+00:00","modified_at":"2022-01-25T10:07:14.686879+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: - - Tue, 18 Jan 2022 16:35:20 GMT + - Tue, 25 Jan 2022 10:07:14 GMT Pragma: - no-cache Strict-Transport-Security: @@ -50,7 +50,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "40" + - "46" 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 0.15.4) datadog-api-client-go/1.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/zf5-4zx-ui9 + - 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/api/vwh-yzc-f9x method: GET response: - body: '{"status":"paused","public_id":"zf5-4zx-ui9","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1642523707","monitor_id":61339980,"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":"vwh-yzc-f9x","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1643105232","monitor_id":62016157,"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: - - Tue, 18 Jan 2022 16:35:21 GMT + - Tue, 25 Jan 2022 10:07:14 GMT Pragma: - no-cache Strict-Transport-Security: @@ -98,7 +98,7 @@ interactions: X-Ratelimit-Remaining: - "999" X-Ratelimit-Reset: - - "39" + - "46" 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 0.15.4) datadog-api-client-go/1.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/zf5-4zx-ui9 + - 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/vwh-yzc-f9x method: GET response: - body: '{"status":"paused","public_id":"zf5-4zx-ui9","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1642523707","monitor_id":61339980,"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":"vwh-yzc-f9x","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1643105232","monitor_id":62016157,"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: - - Tue, 18 Jan 2022 16:35:23 GMT + - Tue, 25 Jan 2022 10:07:15 GMT Pragma: - no-cache Strict-Transport-Security: @@ -146,7 +146,7 @@ interactions: X-Ratelimit-Remaining: - "998" X-Ratelimit-Reset: - - "37" + - "45" 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 0.15.4) datadog-api-client-go/1.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/zf5-4zx-ui9 + - 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/vwh-yzc-f9x method: GET response: - body: '{"status":"paused","public_id":"zf5-4zx-ui9","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1642523707","monitor_id":61339980,"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":"vwh-yzc-f9x","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1643105232","monitor_id":62016157,"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: - - Tue, 18 Jan 2022 16:35:29 GMT + - Tue, 25 Jan 2022 10:07:16 GMT Pragma: - no-cache Strict-Transport-Security: @@ -194,7 +194,7 @@ interactions: X-Ratelimit-Remaining: - "997" X-Ratelimit-Reset: - - "31" + - "45" 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 0.15.4) datadog-api-client-go/1.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/zf5-4zx-ui9 + - 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/api/vwh-yzc-f9x method: GET response: - body: '{"status":"paused","public_id":"zf5-4zx-ui9","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1642523707","monitor_id":61339980,"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":"vwh-yzc-f9x","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1643105232","monitor_id":62016157,"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: - - Tue, 18 Jan 2022 16:35:29 GMT + - Tue, 25 Jan 2022 10:07:16 GMT Pragma: - no-cache Strict-Transport-Security: @@ -242,13 +242,13 @@ interactions: X-Ratelimit-Remaining: - "996" X-Ratelimit-Reset: - - "31" + - "44" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["zf5-4zx-ui9"]} + {"public_ids":["vwh-yzc-f9x"]} form: {} headers: Accept: @@ -260,11 +260,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.8.0 (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.8.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-18T16:35:39.886964+00:00","public_id":"zf5-4zx-ui9"}]}' + body: '{"deleted_tests":[{"deleted_at":"2022-01-25T10:07:17.070308+00:00","public_id":"vwh-yzc-f9x"}]}' headers: Cache-Control: - no-cache @@ -275,7 +275,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 18 Jan 2022 16:35:40 GMT + - Tue, 25 Jan 2022 10:07:17 GMT Pragma: - no-cache Strict-Transport-Security: @@ -295,7 +295,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "21" + - "43" 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 0.15.4) datadog-api-client-go/1.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/zf5-4zx-ui9 + - 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/vwh-yzc-f9x method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -323,7 +323,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 18 Jan 2022 16:35:41 GMT + - Tue, 25 Jan 2022 10:07:17 GMT Pragma: - no-cache Strict-Transport-Security: @@ -343,7 +343,7 @@ interactions: X-Ratelimit-Remaining: - "995" X-Ratelimit-Reset: - - "19" + - "43" 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..1b77bf8a7f 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-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 46111fb85d..cb4916823f 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":"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: - - "1047" + - "1293" 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":"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: - - Mon, 20 Dec 2021 18:23:07 GMT + - Tue, 25 Jan 2022 06:09:35 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" + - "25" 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/c9d-arf-n7q 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":"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 @@ -76,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:07 GMT + - Tue, 25 Jan 2022 06:09:35 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" + - "992" X-Ratelimit-Reset: - - "53" + - "25" 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/c9d-arf-n7q 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":"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 @@ -122,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:08 GMT + - Tue, 25 Jan 2022 06:09:35 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" + - "990" X-Ratelimit-Reset: - - "52" + - "25" 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/c9d-arf-n7q 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":"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 @@ -168,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:09 GMT + - Tue, 25 Jan 2022 06:09:36 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" + - "988" X-Ratelimit-Reset: - - "51" + - "24" 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/c9d-arf-n7q 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":"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 @@ -214,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:09 GMT + - Tue, 25 Jan 2022 06:09:36 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" + - "986" X-Ratelimit-Reset: - - "51" + - "24" 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/c9d-arf-n7q 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":"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 @@ -260,7 +270,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:12 GMT + - Tue, 25 Jan 2022 06:09:37 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" + - "984" X-Ratelimit-Reset: - - "49" + - "23" 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/c9d-arf-n7q 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":"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 @@ -306,7 +318,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:12 GMT + - Tue, 25 Jan 2022 06:09:37 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" + - "983" X-Ratelimit-Reset: - - "48" + - "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-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-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: @@ -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/c9d-arf-n7q 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":"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 @@ -357,7 +371,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:13 GMT + - Tue, 25 Jan 2022 06:09:39 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" + - "22" 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/c9d-arf-n7q 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":"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 @@ -403,7 +419,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:14 GMT + - Tue, 25 Jan 2022 06:09:39 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" + - "21" 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/c9d-arf-n7q 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":"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 @@ -449,7 +467,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:15 GMT + - Tue, 25 Jan 2022 06:09:40 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" + - "20" 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/c9d-arf-n7q 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":"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 @@ -495,7 +515,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:15 GMT + - Tue, 25 Jan 2022 06:09:40 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" + - "976" X-Ratelimit-Reset: - - "45" + - "20" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["vxk-k8b-f8m"]} + {"public_ids":["c9d-arf-n7q"]} 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-25T06:09:41.313977+00:00","public_id":"c9d-arf-n7q"}]}' headers: Cache-Control: - no-cache @@ -546,7 +568,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:17 GMT + - Tue, 25 Jan 2022 06:09:41 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" + - "19" 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/c9d-arf-n7q 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 + - Tue, 25 Jan 2022 06:09:41 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: + - "974" + X-Ratelimit-Reset: + - "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 3b4a2787b1..7e04734bdf 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze @@ -1 +1 @@ -2022-01-18T17:42:51.593038+01:00 \ No newline at end of file +2022-01-25T11:08:00.33412+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 aa16ad081d..445de7493e 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","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-1642524171","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-1643105280","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: - CreateSyntheticsAPITest User-Agent: - - terraform-provider-datadog/dev (terraform 2.10.0; terraform-cli 0.15.4) datadog-api-client-go/1.8.0 (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.8.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":"myf-84a-mv8","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642524171","monitor_id":61341807,"type":"api","created_at":"2022-01-18T16:43:07.657224+00:00","modified_at":"2022-01-18T16:43:07.657224+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":"eeh-veu-nnx","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1643105280","monitor_id":62016180,"type":"api","created_at":"2022-01-25T10:08:02.470562+00:00","modified_at":"2022-01-25T10:08:02.470562+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: - - Tue, 18 Jan 2022 16:43:07 GMT + - Tue, 25 Jan 2022 10:08:02 GMT Pragma: - no-cache Strict-Transport-Security: @@ -50,7 +50,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "53" + - "58" 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 0.15.4) datadog-api-client-go/1.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/myf-84a-mv8 + - 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/api/eeh-veu-nnx method: GET response: - body: '{"status":"paused","public_id":"myf-84a-mv8","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642524171","monitor_id":61341807,"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":"eeh-veu-nnx","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1643105280","monitor_id":62016180,"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: - - Tue, 18 Jan 2022 16:43:07 GMT + - Tue, 25 Jan 2022 10:08:02 GMT Pragma: - no-cache Strict-Transport-Security: @@ -98,7 +98,7 @@ interactions: X-Ratelimit-Remaining: - "999" X-Ratelimit-Reset: - - "53" + - "58" 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 0.15.4) datadog-api-client-go/1.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/myf-84a-mv8 + - 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/eeh-veu-nnx method: GET response: - body: '{"status":"paused","public_id":"myf-84a-mv8","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642524171","monitor_id":61341807,"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":"eeh-veu-nnx","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1643105280","monitor_id":62016180,"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: - - Tue, 18 Jan 2022 16:43:10 GMT + - Tue, 25 Jan 2022 10:08:03 GMT Pragma: - no-cache Strict-Transport-Security: @@ -146,7 +146,7 @@ interactions: X-Ratelimit-Remaining: - "998" X-Ratelimit-Reset: - - "50" + - "58" 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 0.15.4) datadog-api-client-go/1.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/myf-84a-mv8 + - 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/eeh-veu-nnx method: GET response: - body: '{"status":"paused","public_id":"myf-84a-mv8","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642524171","monitor_id":61341807,"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":"eeh-veu-nnx","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1643105280","monitor_id":62016180,"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: - - Tue, 18 Jan 2022 16:43:16 GMT + - Tue, 25 Jan 2022 10:08:03 GMT Pragma: - no-cache Strict-Transport-Security: @@ -194,7 +194,7 @@ interactions: X-Ratelimit-Remaining: - "997" X-Ratelimit-Reset: - - "44" + - "57" 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 0.15.4) datadog-api-client-go/1.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/myf-84a-mv8 + - 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/api/eeh-veu-nnx method: GET response: - body: '{"status":"paused","public_id":"myf-84a-mv8","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642524171","monitor_id":61341807,"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":"eeh-veu-nnx","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1643105280","monitor_id":62016180,"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: - - Tue, 18 Jan 2022 16:43:17 GMT + - Tue, 25 Jan 2022 10:08:03 GMT Pragma: - no-cache Strict-Transport-Security: @@ -242,7 +242,7 @@ interactions: X-Ratelimit-Remaining: - "996" X-Ratelimit-Reset: - - "43" + - "57" 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 0.15.4) datadog-api-client-go/1.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/myf-84a-mv8 + - 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/eeh-veu-nnx method: GET response: - body: '{"status":"paused","public_id":"myf-84a-mv8","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642524171","monitor_id":61341807,"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":"eeh-veu-nnx","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1643105280","monitor_id":62016180,"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: - - Tue, 18 Jan 2022 16:43:28 GMT + - Tue, 25 Jan 2022 10:08:04 GMT Pragma: - no-cache Strict-Transport-Security: @@ -290,7 +290,7 @@ interactions: X-Ratelimit-Remaining: - "995" X-Ratelimit-Reset: - - "32" + - "56" 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 0.15.4) datadog-api-client-go/1.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/myf-84a-mv8 + - 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/api/eeh-veu-nnx method: GET response: - body: '{"status":"paused","public_id":"myf-84a-mv8","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642524171","monitor_id":61341807,"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":"eeh-veu-nnx","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1643105280","monitor_id":62016180,"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: - - Tue, 18 Jan 2022 16:43:28 GMT + - Tue, 25 Jan 2022 10:08:04 GMT Pragma: - no-cache Strict-Transport-Security: @@ -338,13 +338,13 @@ interactions: X-Ratelimit-Remaining: - "994" X-Ratelimit-Reset: - - "32" + - "56" 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-1642524171updated","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-1643105280updated","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 0.15.4) datadog-api-client-go/1.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/myf-84a-mv8 + - 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/api/eeh-veu-nnx method: PUT response: - body: '{"status":"live","public_id":"myf-84a-mv8","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-1642524171updated","monitor_id":61341807,"type":"api","created_at":"2022-01-18T16:43:07.657224+00:00","modified_at":"2022-01-18T16:43:35.027427+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":"eeh-veu-nnx","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-1643105280updated","monitor_id":62016180,"type":"api","created_at":"2022-01-25T10:08:02.470562+00:00","modified_at":"2022-01-25T10:08:05.653366+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: - - Tue, 18 Jan 2022 16:43:35 GMT + - Tue, 25 Jan 2022 10:08:05 GMT Pragma: - no-cache Strict-Transport-Security: @@ -391,7 +391,7 @@ interactions: X-Ratelimit-Remaining: - "499" X-Ratelimit-Reset: - - "26" + - "55" 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.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/myf-84a-mv8 + - 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/eeh-veu-nnx method: GET response: - body: '{"status":"live","public_id":"myf-84a-mv8","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642524171updated","monitor_id":61341807,"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":"eeh-veu-nnx","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1643105280updated","monitor_id":62016180,"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: - - Tue, 18 Jan 2022 16:43:37 GMT + - Tue, 25 Jan 2022 10:08:06 GMT Pragma: - no-cache Strict-Transport-Security: @@ -439,7 +439,7 @@ interactions: X-Ratelimit-Remaining: - "993" X-Ratelimit-Reset: - - "23" + - "54" 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 0.15.4) datadog-api-client-go/1.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/myf-84a-mv8 + - 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/eeh-veu-nnx method: GET response: - body: '{"status":"live","public_id":"myf-84a-mv8","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642524171updated","monitor_id":61341807,"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":"eeh-veu-nnx","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1643105280updated","monitor_id":62016180,"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: - - Tue, 18 Jan 2022 16:43:43 GMT + - Tue, 25 Jan 2022 10:08:06 GMT Pragma: - no-cache Strict-Transport-Security: @@ -487,7 +487,7 @@ interactions: X-Ratelimit-Remaining: - "992" X-Ratelimit-Reset: - - "17" + - "54" 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 0.15.4) datadog-api-client-go/1.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/myf-84a-mv8 + - 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/api/eeh-veu-nnx method: GET response: - body: '{"status":"live","public_id":"myf-84a-mv8","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1642524171updated","monitor_id":61341807,"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":"eeh-veu-nnx","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1643105280updated","monitor_id":62016180,"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: - - Tue, 18 Jan 2022 16:43:43 GMT + - Tue, 25 Jan 2022 10:08:07 GMT Pragma: - no-cache Strict-Transport-Security: @@ -535,13 +535,13 @@ interactions: X-Ratelimit-Remaining: - "991" X-Ratelimit-Reset: - - "17" + - "54" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["myf-84a-mv8"]} + {"public_ids":["eeh-veu-nnx"]} form: {} headers: Accept: @@ -553,11 +553,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.8.0 (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.8.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-18T16:43:53.272132+00:00","public_id":"myf-84a-mv8"}]}' + body: '{"deleted_tests":[{"deleted_at":"2022-01-25T10:08:08.083266+00:00","public_id":"eeh-veu-nnx"}]}' headers: Cache-Control: - no-cache @@ -568,7 +568,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 18 Jan 2022 16:43:53 GMT + - Tue, 25 Jan 2022 10:08:08 GMT Pragma: - no-cache Strict-Transport-Security: @@ -588,7 +588,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "7" + - "53" 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 0.15.4) datadog-api-client-go/1.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/myf-84a-mv8 + - 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/eeh-veu-nnx method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -616,7 +616,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 18 Jan 2022 16:43:53 GMT + - Tue, 25 Jan 2022 10:08:08 GMT Pragma: - no-cache Strict-Transport-Security: @@ -636,7 +636,7 @@ interactions: X-Ratelimit-Remaining: - "990" X-Ratelimit-Reset: - - "7" + - "52" 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..a4f8b14881 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-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 ec16056d83..bd6e6d38cf 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":"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: - - "1055" + - "1301" 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":"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: - - Mon, 20 Dec 2021 18:22:59 GMT + - Tue, 25 Jan 2022 06:03:53 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" + - "8" 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/kxd-w47-55b 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":"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 @@ -76,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:00 GMT + - Tue, 25 Jan 2022 06:03:53 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" + - "7" 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/kxd-w47-55b 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":"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 @@ -122,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:01 GMT + - Tue, 25 Jan 2022 06:03:53 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" + - "7" 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/kxd-w47-55b 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":"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 @@ -168,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:02 GMT + - Tue, 25 Jan 2022 06:03:54 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" + - "7" 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/kxd-w47-55b 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":"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 @@ -214,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:03 GMT + - Tue, 25 Jan 2022 06:03:54 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" + - "6" 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/kxd-w47-55b 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":"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 @@ -260,7 +270,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:03 GMT + - Tue, 25 Jan 2022 06:03:55 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" + - "6" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["ue6-e8u-bb5"]} + {"public_ids":["kxd-w47-55b"]} 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-25T06:03:55.558474+00:00","public_id":"kxd-w47-55b"}]}' headers: Cache-Control: - no-cache @@ -311,7 +323,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:04 GMT + - Tue, 25 Jan 2022 06:03:56 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" + - "5" 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/kxd-w47-55b 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 + - Tue, 25 Jan 2022 06:03:56 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: + - "4" 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..feda8cbf9b 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-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 c376d38d58..c282fc9f03 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic.yaml +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic.yaml @@ -3,34 +3,34 @@ 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":{"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: - - "672" + - "751" 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.8.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":"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: - - Mon, 20 Dec 2021 18:23:14 GMT + - Mon, 07 Feb 2022 12:57:15 GMT Pragma: - no-cache Strict-Transport-Security: @@ -43,12 +43,14 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - global_org X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11991" + - "11999" X-Ratelimit-Reset: - - "46" + - "45" status: 200 OK code: 200 duration: "" @@ -61,22 +63,22 @@ 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.8.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/qw7-nej-pmf 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":"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: - - Mon, 20 Dec 2021 18:23:15 GMT + - Mon, 07 Feb 2022 12:57:16 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" + - "44" status: 200 OK code: 200 duration: "" @@ -107,22 +111,22 @@ 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.8.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/qw7-nej-pmf 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":"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: - - Mon, 20 Dec 2021 18:23:15 GMT + - Mon, 07 Feb 2022 12:57:16 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" + - "44" status: 200 OK code: 200 duration: "" @@ -153,22 +159,22 @@ 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.8.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/qw7-nej-pmf 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":"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: - - Mon, 20 Dec 2021 18:23:16 GMT + - Mon, 07 Feb 2022 12:57:17 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" + - "43" status: 200 OK code: 200 duration: "" @@ -199,22 +207,22 @@ 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.8.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/browser/qw7-nej-pmf 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":"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: - - Mon, 20 Dec 2021 18:23:16 GMT + - Mon, 07 Feb 2022 12:57:17 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" + - "43" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["gb2-ie5-gm6"]} + {"public_ids":["qw7-nej-pmf"]} form: {} headers: Accept: @@ -250,22 +260,22 @@ 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.8.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-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: - - Mon, 20 Dec 2021 18:23:18 GMT + - Mon, 07 Feb 2022 12:57:18 GMT Pragma: - no-cache Strict-Transport-Security: @@ -278,10 +288,12 @@ interactions: - SAMEORIGIN X-Ratelimit-Limit: - "12000" + X-Ratelimit-Name: + - global_org X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "11988" + - "11998" X-Ratelimit-Reset: - "42" status: 200 OK @@ -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.8.1+dev (go go1.16.6; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/synthetics/tests/qw7-nej-pmf method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -307,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: - - Mon, 20 Dec 2021 18:23:18 GMT + - Mon, 07 Feb 2022 12:57:19 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: + - "41" 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..e2f096518c 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-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 0421d45a46..d9c98f17d8 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","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: - - "1065" + - "1245" 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":"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, 20 Dec 2021 18:23:17 GMT + - Tue, 25 Jan 2022 06:06:21 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" + - "40" 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/5e9-vrz-8rm 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":"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 @@ -76,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:17 GMT + - Tue, 25 Jan 2022 06:06:21 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" + - "39" 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/5e9-vrz-8rm 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":"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 @@ -122,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:18 GMT + - Tue, 25 Jan 2022 06:06:21 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" + - "39" 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/5e9-vrz-8rm 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":"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 @@ -168,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:19 GMT + - Tue, 25 Jan 2022 06:06:22 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" + - "38" 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/5e9-vrz-8rm 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":"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 @@ -214,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:19 GMT + - Tue, 25 Jan 2022 06:06:22 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" + - "38" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["78n-ns7-5jq"]} + {"public_ids":["5e9-vrz-8rm"]} 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-25T06:06:23.520763+00:00","public_id":"5e9-vrz-8rm"}]}' headers: Cache-Control: - no-cache @@ -265,7 +275,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:21 GMT + - Tue, 25 Jan 2022 06:06:23 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" + - "37" 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/5e9-vrz-8rm 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 + - Tue, 25 Jan 2022 06:06:23 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: + - "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 1c705a4ea8..8efe57b318 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-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 d47d698a93..59559d0a86 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","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: - - "1069" + - "1249" 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":"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, 20 Dec 2021 18:23:17 GMT + - Tue, 25 Jan 2022 05:59:33 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" + - "27" 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/4ap-aiv-d9k 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":"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 @@ -76,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:17 GMT + - Tue, 25 Jan 2022 05:59:33 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" + - "27" 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/4ap-aiv-d9k 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":"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 @@ -122,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:18 GMT + - Tue, 25 Jan 2022 05:59:34 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" + - "27" 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/4ap-aiv-d9k 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":"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 @@ -168,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:19 GMT + - Tue, 25 Jan 2022 05:59:35 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" + - "26" 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/4ap-aiv-d9k 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":"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 @@ -214,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:19 GMT + - Tue, 25 Jan 2022 05:59:36 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" + - "25" 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/4ap-aiv-d9k 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":"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 @@ -260,7 +270,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:21 GMT + - Tue, 25 Jan 2022 05:59:37 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" + - "24" 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/4ap-aiv-d9k 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":"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 @@ -306,7 +318,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:21 GMT + - Tue, 25 Jan 2022 05:59:37 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" + - "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-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-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: @@ -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/4ap-aiv-d9k 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":"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 @@ -357,7 +371,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:22 GMT + - Tue, 25 Jan 2022 05:59:38 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" + - "22" 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/4ap-aiv-d9k 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":"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 @@ -403,7 +419,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:23 GMT + - Tue, 25 Jan 2022 05:59:38 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" + - "22" 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/4ap-aiv-d9k 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":"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 @@ -449,7 +467,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:24 GMT + - Tue, 25 Jan 2022 05:59:39 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" + - "21" 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/4ap-aiv-d9k 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":"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 @@ -495,7 +515,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:24 GMT + - Tue, 25 Jan 2022 05:59:39 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" + - "21" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["bsn-bau-ei7"]} + {"public_ids":["4ap-aiv-d9k"]} 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-25T05:59:40.354716+00:00","public_id":"4ap-aiv-d9k"}]}' headers: Cache-Control: - no-cache @@ -546,7 +568,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:25 GMT + - Tue, 25 Jan 2022 05:59:41 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" + - "20" 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/4ap-aiv-d9k 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 + - Tue, 25 Jan 2022 05:59:41 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: + - "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 fcfad73541..0ddcd18cc9 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-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 0b50d98a1e..edd4ce22ff 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","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: - - "1077" + - "1257" 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":"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: - - Mon, 20 Dec 2021 18:23:00 GMT + - Tue, 25 Jan 2022 06:09:10 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" + - "11999" 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/bmk-8s4-wcp 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":"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 @@ -76,7 +78,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:00 GMT + - Tue, 25 Jan 2022 06:09:10 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" + - "999" X-Ratelimit-Reset: - - "60" + - "50" 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/bmk-8s4-wcp 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":"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 @@ -122,7 +126,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:01 GMT + - Tue, 25 Jan 2022 06:09: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: - - "991" + - "998" X-Ratelimit-Reset: - - "59" + - "49" 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/bmk-8s4-wcp 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":"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 @@ -168,7 +174,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:01 GMT + - Tue, 25 Jan 2022 06:09: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" + - "997" X-Ratelimit-Reset: - - "59" + - "49" 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/bmk-8s4-wcp 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":"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 @@ -214,7 +222,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:04 GMT + - Tue, 25 Jan 2022 06:09:14 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" + - "996" X-Ratelimit-Reset: - - "57" + - "46" 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/bmk-8s4-wcp 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":"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 @@ -260,7 +270,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:04 GMT + - Tue, 25 Jan 2022 06:09: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" + - "995" X-Ratelimit-Reset: - - "56" + - "46" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["8g5-siy-xws"]} + {"public_ids":["bmk-8s4-wcp"]} 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-25T06:09:14.917861+00:00","public_id":"bmk-8s4-wcp"}]}' headers: Cache-Control: - no-cache @@ -311,7 +323,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 20 Dec 2021 18:23:05 GMT + - Tue, 25 Jan 2022 06:09:15 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" + - "11999" 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/bmk-8s4-wcp 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 + - Tue, 25 Jan 2022 06:09:15 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: + - "45" 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 6e6d698edb..ead6081145 100644 --- a/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze +++ b/datadog/tests/cassettes/TestAccDatadogSyntheticsTestMultistepApi_Basic.freeze @@ -1 +1 @@ -2022-01-19T18:26:21.46752+01:00 \ No newline at end of file +2022-01-25T11:06:37.198717+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 3c2ab1db7b..4dc5e5a9b8 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_1642613181","tags":["foo:bar","baz"],"value":{"secure":false,"value":"variable-value"}} + {"description":"a global variable","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1643105197","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.8.0 (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.8.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":"d71c0691-6557-4e55-bcfa-9b91ad748f64","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1642613181"}' + 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":"6d79280a-8f44-4615-9877-a2251f8396b8","name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1643105197"}' headers: Cache-Control: - no-cache @@ -30,7 +30,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 19 Jan 2022 17:26:36 GMT + - Tue, 25 Jan 2022 10:06:39 GMT Pragma: - no-cache Strict-Transport-Security: @@ -50,7 +50,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "24" + - "21" 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.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/d71c0691-6557-4e55-bcfa-9b91ad748f64 + - 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/variables/6d79280a-8f44-4615-9877-a2251f8396b8 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":"d71c0691-6557-4e55-bcfa-9b91ad748f64","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1642613181","created_at":"2022-01-19T17:26:36.853257+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-19T17:26:36.853257+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":"6d79280a-8f44-4615-9877-a2251f8396b8","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1643105197","created_at":"2022-01-25T10:06:39.164502+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-25T10:06:39.164502+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: - - Wed, 19 Jan 2022 17:26:37 GMT + - Tue, 25 Jan 2022 10:06:39 GMT Pragma: - no-cache Strict-Transport-Security: @@ -98,7 +98,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "23" + - "21" 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.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/d71c0691-6557-4e55-bcfa-9b91ad748f64 + - 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/variables/6d79280a-8f44-4615-9877-a2251f8396b8 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":"d71c0691-6557-4e55-bcfa-9b91ad748f64","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1642613181","created_at":"2022-01-19T17:26:36.853257+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-19T17:26:36.853257+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":"6d79280a-8f44-4615-9877-a2251f8396b8","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1643105197","created_at":"2022-01-25T10:06:39.164502+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-25T10:06:39.164502+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: - - Wed, 19 Jan 2022 17:26:37 GMT + - Tue, 25 Jan 2022 10:06:39 GMT Pragma: - no-cache Strict-Transport-Security: @@ -146,29 +146,29 @@ interactions: X-Ratelimit-Remaining: - "11998" X-Ratelimit-Reset: - - "23" + - "21" status: 200 OK code: 200 duration: "" - request: body: | - {"config":{"assertions":[],"configVariables":[{"id":"d71c0691-6557-4e55-bcfa-9b91ad748f64","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","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"}},"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"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Second api step","request":{"allow_insecure":true,"body":"","follow_redirects":true,"method":"GET","timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1642613181","options":{"min_location_failed":1,"tick_every":900},"status":"paused","subtype":"multi","tags":["multistep"],"type":"api"} + {"config":{"assertions":[],"configVariables":[{"id":"6d79280a-8f44-4615-9877-a2251f8396b8","name":"VARIABLE_NAME","type":"global"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[{"field":"content-length","name":"VAR_EXTRACT","parser":{"type":"regex","value":".*"},"type":"http_header"}],"isCritical":false,"name":"First api step","request":{"allow_insecure":true,"basicAuth":{"accessKey":"sigv4-access-key","region":"sigv4-region","secretKey":"sigv4-secret-key","serviceName":"sigv4-service-name","sessionToken":"sigv4-session-token","type":"sigv4"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"follow_redirects":true,"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"method":"GET","proxy":{"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"123456789"},"url":"https://proxy.url"},"query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"},{"allowFailure":false,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[],"isCritical":false,"name":"Second api step","request":{"allow_insecure":true,"body":"","follow_redirects":true,"method":"GET","timeout":30,"url":"https://docs.datadoghq.com"},"subtype":"http"}]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1643105197","options":{"min_location_failed":1,"tick_every":900},"status":"paused","subtype":"multi","tags":["multistep"],"type":"api"} form: {} headers: Accept: - application/json Content-Length: - - "1476" + - "1706" 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.8.0 (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.8.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":"7kz-fre-gxx","tags":["multistep"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1642613181","monitor_id":61485773,"type":"api","created_at":"2022-01-19T17:26:37.554209+00:00","modified_at":"2022-01-19T17:26:37.554209+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","type":"web"},"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":"42h-3jq-nnk","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"96s-8c4-s44","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"d71c0691-6557-4e55-bcfa-9b91ad748f64","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"a5v-jqh-ekg","tags":["multistep"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1643105197","monitor_id":62015993,"type":"api","created_at":"2022-01-25T10:06:40.027948+00:00","modified_at":"2022-01-25T10:06:40.027948+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":"b8w-afy-jit","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"6im-iw3-bb8","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"6d79280a-8f44-4615-9877-a2251f8396b8","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: - - Wed, 19 Jan 2022 17:26:37 GMT + - Tue, 25 Jan 2022 10:06:40 GMT Pragma: - no-cache Strict-Transport-Security: @@ -199,7 +199,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "23" + - "21" 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.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/7kz-fre-gxx + - 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/api/a5v-jqh-ekg method: GET response: - body: '{"status":"paused","public_id":"7kz-fre-gxx","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1642613181","monitor_id":61485773,"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","type":"web"},"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":"42h-3jq-nnk","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"96s-8c4-s44","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"d71c0691-6557-4e55-bcfa-9b91ad748f64","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"a5v-jqh-ekg","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1643105197","monitor_id":62015993,"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":"b8w-afy-jit","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"6im-iw3-bb8","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"6d79280a-8f44-4615-9877-a2251f8396b8","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: - - Wed, 19 Jan 2022 17:26:37 GMT + - Tue, 25 Jan 2022 10:06:40 GMT Pragma: - no-cache Strict-Transport-Security: @@ -247,7 +247,7 @@ interactions: X-Ratelimit-Remaining: - "999" X-Ratelimit-Reset: - - "23" + - "20" status: 200 OK code: 200 duration: "" @@ -260,11 +260,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.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/d71c0691-6557-4e55-bcfa-9b91ad748f64 + - 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/variables/6d79280a-8f44-4615-9877-a2251f8396b8 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":"d71c0691-6557-4e55-bcfa-9b91ad748f64","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1642613181","created_at":"2022-01-19T17:26:36.853257+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-19T17:26:36.853257+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":"6d79280a-8f44-4615-9877-a2251f8396b8","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1643105197","created_at":"2022-01-25T10:06:39.164502+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-25T10:06:39.164502+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: - - Wed, 19 Jan 2022 17:26:39 GMT + - Tue, 25 Jan 2022 10:06:40 GMT Pragma: - no-cache Strict-Transport-Security: @@ -295,7 +295,7 @@ interactions: X-Ratelimit-Remaining: - "11997" X-Ratelimit-Reset: - - "21" + - "20" status: 200 OK code: 200 duration: "" @@ -308,11 +308,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.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/7kz-fre-gxx + - 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/a5v-jqh-ekg method: GET response: - body: '{"status":"paused","public_id":"7kz-fre-gxx","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1642613181","monitor_id":61485773,"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","type":"web"},"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":"42h-3jq-nnk","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"96s-8c4-s44","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"d71c0691-6557-4e55-bcfa-9b91ad748f64","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"a5v-jqh-ekg","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1643105197","monitor_id":62015993,"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":"b8w-afy-jit","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"6im-iw3-bb8","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"6d79280a-8f44-4615-9877-a2251f8396b8","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: - - Wed, 19 Jan 2022 17:26:40 GMT + - Tue, 25 Jan 2022 10:06:40 GMT Pragma: - no-cache Strict-Transport-Security: @@ -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.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/d71c0691-6557-4e55-bcfa-9b91ad748f64 + - 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/variables/6d79280a-8f44-4615-9877-a2251f8396b8 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":"d71c0691-6557-4e55-bcfa-9b91ad748f64","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1642613181","created_at":"2022-01-19T17:26:36.853257+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-19T17:26:36.853257+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":"6d79280a-8f44-4615-9877-a2251f8396b8","parse_test_options":null,"name":"TF_TESTACCDATADOGSYNTHETICSTESTMULTISTEPAPI_BASIC_LOCAL_1643105197","created_at":"2022-01-25T10:06:39.164502+00:00","creator":{"handle":"frog@datadoghq.com","name":null,"email":"frog@datadoghq.com"},"modified_at":"2022-01-25T10:06:39.164502+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: - - Wed, 19 Jan 2022 17:26:46 GMT + - Tue, 25 Jan 2022 10:06:41 GMT Pragma: - no-cache Strict-Transport-Security: @@ -391,7 +391,7 @@ interactions: X-Ratelimit-Remaining: - "11996" X-Ratelimit-Reset: - - "14" + - "19" 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.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/7kz-fre-gxx + - 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/a5v-jqh-ekg method: GET response: - body: '{"status":"paused","public_id":"7kz-fre-gxx","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1642613181","monitor_id":61485773,"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","type":"web"},"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":"42h-3jq-nnk","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"96s-8c4-s44","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"d71c0691-6557-4e55-bcfa-9b91ad748f64","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"a5v-jqh-ekg","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1643105197","monitor_id":62015993,"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":"b8w-afy-jit","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"6im-iw3-bb8","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"6d79280a-8f44-4615-9877-a2251f8396b8","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: - - Wed, 19 Jan 2022 17:26:46 GMT + - Tue, 25 Jan 2022 10:06:41 GMT Pragma: - no-cache Strict-Transport-Security: @@ -439,7 +439,7 @@ interactions: X-Ratelimit-Remaining: - "997" X-Ratelimit-Reset: - - "14" + - "19" 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.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/api/7kz-fre-gxx + - 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/api/a5v-jqh-ekg method: GET response: - body: '{"status":"paused","public_id":"7kz-fre-gxx","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1642613181","monitor_id":61485773,"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","type":"web"},"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":"42h-3jq-nnk","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"96s-8c4-s44","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"d71c0691-6557-4e55-bcfa-9b91ad748f64","name":"VARIABLE_NAME"}]},"options":{"min_location_failed":1,"tick_every":900}}' + body: '{"status":"paused","public_id":"a5v-jqh-ekg","tags":["multistep"],"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsTestMultistepApi_Basic-local-1643105197","monitor_id":62015993,"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":"b8w-afy-jit","extractedValues":[{"field":"content-length","parser":{"type":"regex","value":".*"},"type":"http_header","name":"VAR_EXTRACT"}]},{"name":"Second api step","request":{"body":"","allow_insecure":true,"url":"https://docs.datadoghq.com","follow_redirects":true,"timeout":30,"method":"GET"},"subtype":"http","allowFailure":false,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":false,"id":"6im-iw3-bb8","extractedValues":[]}],"assertions":[],"configVariables":[{"type":"global","id":"6d79280a-8f44-4615-9877-a2251f8396b8","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: - - Wed, 19 Jan 2022 17:26:46 GMT + - Tue, 25 Jan 2022 10:06:41 GMT Pragma: - no-cache Strict-Transport-Security: @@ -487,13 +487,13 @@ interactions: X-Ratelimit-Remaining: - "996" X-Ratelimit-Reset: - - "14" + - "19" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["7kz-fre-gxx"]} + {"public_ids":["a5v-jqh-ekg"]} 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.8.0 (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.8.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-19T17:26:55.675341+00:00","public_id":"7kz-fre-gxx"}]}' + body: '{"deleted_tests":[{"deleted_at":"2022-01-25T10:06:42.469752+00:00","public_id":"a5v-jqh-ekg"}]}' headers: Cache-Control: - no-cache @@ -520,7 +520,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 19 Jan 2022 17:26:55 GMT + - Tue, 25 Jan 2022 10:06:42 GMT Pragma: - no-cache Strict-Transport-Security: @@ -540,7 +540,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "5" + - "18" 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.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/d71c0691-6557-4e55-bcfa-9b91ad748f64 + - 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/variables/6d79280a-8f44-4615-9877-a2251f8396b8 method: DELETE response: body: '{}' @@ -570,7 +570,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 19 Jan 2022 17:26:56 GMT + - Tue, 25 Jan 2022 10:06:42 GMT Pragma: - no-cache Strict-Transport-Security: @@ -588,7 +588,7 @@ interactions: X-Ratelimit-Remaining: - "11999" X-Ratelimit-Reset: - - "5" + - "18" status: 200 OK code: 200 duration: "" @@ -601,8 +601,8 @@ 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.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/variables/d71c0691-6557-4e55-bcfa-9b91ad748f64 + - 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/variables/6d79280a-8f44-4615-9877-a2251f8396b8 method: GET response: body: '{"errors": ["Synthetics global variable not found"]}' @@ -616,7 +616,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 19 Jan 2022 17:26:56 GMT + - Tue, 25 Jan 2022 10:06:42 GMT Pragma: - no-cache Strict-Transport-Security: @@ -636,7 +636,7 @@ interactions: X-Ratelimit-Remaining: - "11995" X-Ratelimit-Reset: - - "4" + - "18" status: 404 Not Found code: 404 duration: "" @@ -649,8 +649,8 @@ 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.8.0 (go go1.17.3; os darwin; arch amd64) - url: https://api.datadoghq.com/api/v1/synthetics/tests/7kz-fre-gxx + - 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/a5v-jqh-ekg method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -664,7 +664,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 19 Jan 2022 17:26:56 GMT + - Tue, 25 Jan 2022 10:06:43 GMT Pragma: - no-cache Strict-Transport-Security: @@ -684,7 +684,7 @@ interactions: X-Ratelimit-Remaining: - "995" X-Ratelimit-Reset: - - "4" + - "17" 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 45ab5dd53d..3a52b30172 100644 --- a/datadog/tests/resource_datadog_synthetics_test_test.go +++ b/datadog/tests/resource_datadog_synthetics_test_test.go @@ -462,6 +462,28 @@ 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", "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( @@ -553,7 +575,23 @@ resource "datadog_synthetics_test" "foo" { } request_headers = { Accept = "application/json" - X-Datadog-Trace-ID = "1234566789" + X-Datadog-Trace-ID = "123456789" + } + + request_basicauth { + type = "ntlm" + username = "ntlm-username" + password = "ntlm-password" + domain = "ntlm-domain" + workstation = "ntlm-workstation" + } + + request_proxy { + url = "https://proxy.url" + headers = { + Accept = "application/json" + X-Datadog-Trace-ID = "123456789" + } } assertion { @@ -628,6 +666,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( @@ -763,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 { @@ -1920,6 +1960,24 @@ 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", "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( @@ -2010,6 +2068,19 @@ resource "datadog_synthetics_test" "bar" { X-Datadog-Trace-ID = "123456789" } + request_basicauth { + username = "username" + 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" ] @@ -2229,6 +2300,14 @@ 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", "web"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "request_basicauth.0.username", "web-username"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "request_basicauth.0.password", "web-password"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "device_ids.#", "1"), resource.TestCheckResourceAttr( @@ -2291,6 +2370,11 @@ resource "datadog_synthetics_test" "bar" { url = "https://www.datadoghq.com" } + request_basicauth { + username = "web-username" + password = "web-password" + } + device_ids = [ "laptop_large" ] locations = [ "aws:eu-central-1" ] options_list { @@ -2951,9 +3035,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.password", "secret"), + "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.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( @@ -2962,6 +3054,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( @@ -3049,8 +3151,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 { @@ -3061,6 +3167,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" diff --git a/docs/resources/synthetics_test.md b/docs/resources/synthetics_test.md index 6bc956f2ae..8d8367821d 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, Sensitive) Access key for `SIGV4` authentication. +- **domain** (String) Domain for `ntlm` authentication. - **password** (String, Sensitive) Password for authentication. +- **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 `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, Sensitive) Access key for `SIGV4` authentication. +- **domain** (String) Domain for `ntlm` authentication. - **password** (String, Sensitive) Password for authentication. +- **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 `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: diff --git a/go.mod b/go.mod index ba5f19f5b3..70fd251626 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.8.0 + github.com/DataDog/datadog-api-client-go v1.8.1-0.20220124092619-780e2cbe9b82 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 7af4aef9a6..f9657a8908 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.8.0 h1:irAgMjNaN8jRIPhSLU0ir5JgvDjZZsWxx6F+FRMQga8= -github.com/DataDog/datadog-api-client-go v1.8.0/go.mod h1:QzaQF1cDO1/BIQG1fz14VrY+6RECUGkiwzDCtVbfP5c= +github.com/DataDog/datadog-api-client-go v1.8.1-0.20220124092619-780e2cbe9b82 h1:/16+MLIcznhOaIQhXL7SJ8MvhoaDo0cdBdd0JD6j9cw= +github.com/DataDog/datadog-api-client-go v1.8.1-0.20220124092619-780e2cbe9b82/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=