diff --git a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze index 5979506a3e..dd64141d81 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze +++ b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.freeze @@ -1 +1 @@ -2021-01-06T10:49:33.846702+01:00 \ No newline at end of file +2021-01-15T11:28:33.525482+01:00 \ No newline at end of file diff --git a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml index b28145644d..10634e14b8 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"},{"operator":"validatesJSONPath","target":{"jsonPath":"something","operator":"moreThan","targetValue":5},"type":"body"},{"operator":"isNot","target":200,"type":"statusCode"},{"operator":"matches","target":"20[04]","type":"statusCode"},{"operator":"doesNotMatch","target":"20[04]","type":"statusCode"}],"configVariables":[],"request":{"basicAuth":{"password":"secret","username":"admin"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1609926573","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"}],"configVariables":[],"request":{"basicAuth":{"password":"secret","username":"admin"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1610706513","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: @@ -14,19 +14,19 @@ interactions: - CreateTest User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.13+dev (go go1.15.3; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.14+dev (go go1.15.3; os darwin; arch amd64) X-Datadog-Parent-Id: - - "3262141783173999392" + - "2472603830250944793" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "7353655356822469858" + - "235915809669742677" url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"35t-k2q-ar4","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1609926573","monitor_id":28311336,"type":"api","created_at":"2021-01-06T09:49:34.705262+00:00","modified_at":"2021-01-06T09:49:34.705262+00:00","subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","certificate":{"cert":{"filename":"Provided in Terraform config","updatedAt":"2021-01-06T09:49:34.576803+00:00"},"key":{"filename":"key","updatedAt":"2021-01-06T09:49:34.576776+00:00"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"}],"configVariables":[]},"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":"5jx-9wh-zcq","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1610706513","monitor_id":28741730,"type":"api","created_at":"2021-01-15T10:28:34.309074+00:00","modified_at":"2021-01-15T10:28:34.309074+00:00","subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","certificate":{"cert":{"filename":"Provided in Terraform config","updatedAt":"2021-01-15T10:28:34.200916+00:00"},"key":{"filename":"key","updatedAt":"2021-01-15T10:28:34.200887+00:00"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"}],"configVariables":[]},"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 @@ -37,11 +37,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 06 Jan 2021 09:49:35 GMT + - Fri, 15 Jan 2021 10:28:34 GMT Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 13-Jan-2021 09:49:34 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Fri, 22-Jan-2021 10:28:34 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -50,9 +50,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - yHg1SN54kOfDRp2Aod0BXYSVxFx21V1jRKSkwPBeHEmd2sEVS/QK2WhkC8rNJWsm + - WMqkdiu/k4tYC8oJLm7ZFuFlnIXAYAXwOPQoxLtj7bgJQppYJErVkGl/2/O/+zpm X-Dd-Version: - - "35.3647621" + - "35.3710025" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -60,7 +60,7 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "118" + - "119" X-Ratelimit-Reset: - "26" status: 200 OK @@ -76,19 +76,19 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.13+dev (go go1.15.3; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.14+dev (go go1.15.3; os darwin; arch amd64) X-Datadog-Parent-Id: - - "5871423834287236285" + - "7544980896713459630" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "7353655356822469858" - url: https://api.datadoghq.com/api/v1/synthetics/tests/35t-k2q-ar4 + - "235915809669742677" + url: https://api.datadoghq.com/api/v1/synthetics/tests/5jx-9wh-zcq method: GET response: - body: '{"status":"paused","public_id":"35t-k2q-ar4","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1609926573","monitor_id":28311336,"type":"api","subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","certificate":{"cert":{"filename":"Provided in Terraform config","updatedAt":"2021-01-06T09:49:34.576803+00:00"},"key":{"filename":"key","updatedAt":"2021-01-06T09:49:34.576776+00:00"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"}],"configVariables":[]},"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":"5jx-9wh-zcq","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1610706513","monitor_id":28741730,"type":"api","subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","certificate":{"cert":{"filename":"Provided in Terraform config","updatedAt":"2021-01-15T10:28:34.200916+00:00"},"key":{"filename":"key","updatedAt":"2021-01-15T10:28:34.200887+00:00"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"}],"configVariables":[]},"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 @@ -99,11 +99,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 06 Jan 2021 09:49:35 GMT + - Fri, 15 Jan 2021 10:28:34 GMT Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 13-Jan-2021 09:49:35 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Fri, 22-Jan-2021 10:28:34 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -112,9 +112,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - jksv6NXchM8W/4CgjBiDDYPQGBQ0jGtm+dmNJmQoft/ZYfYSEvwpU9lIHwYKsM2d + - 2vDhfmOEUBStl6KJFsHicYMybqtUSJ6AfSEVJTVlECBUwTgB5ievW7vT4NcYmXtK X-Dd-Version: - - "35.3647588" + - "35.3710025" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -122,9 +122,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "998" + - "999" X-Ratelimit-Reset: - - "25" + - "26" status: 200 OK code: 200 duration: "" @@ -138,19 +138,19 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.13+dev (go go1.15.3; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.14+dev (go go1.15.3; os darwin; arch amd64) X-Datadog-Parent-Id: - - "5870271008995614913" + - "7594618043958565347" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "7353655356822469858" - url: https://api.datadoghq.com/api/v1/synthetics/tests/35t-k2q-ar4 + - "235915809669742677" + url: https://api.datadoghq.com/api/v1/synthetics/tests/5jx-9wh-zcq method: GET response: - body: '{"status":"paused","public_id":"35t-k2q-ar4","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1609926573","monitor_id":28311336,"type":"api","subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","certificate":{"cert":{"filename":"Provided in Terraform config","updatedAt":"2021-01-06T09:49:34.576803+00:00"},"key":{"filename":"key","updatedAt":"2021-01-06T09:49:34.576776+00:00"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"}],"configVariables":[]},"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":"5jx-9wh-zcq","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1610706513","monitor_id":28741730,"type":"api","subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","certificate":{"cert":{"filename":"Provided in Terraform config","updatedAt":"2021-01-15T10:28:34.200916+00:00"},"key":{"filename":"key","updatedAt":"2021-01-15T10:28:34.200887+00:00"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"}],"configVariables":[]},"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 @@ -161,11 +161,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 06 Jan 2021 09:49:35 GMT + - Fri, 15 Jan 2021 10:28:35 GMT Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 13-Jan-2021 09:49:35 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Fri, 22-Jan-2021 10:28:34 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -174,9 +174,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - JNmeA3l0ccOXtA8wh8DpQGSmyIQ4z3r0Sqn1W1sQHkMGKxYzMqf/DJpF1RAS+Dpy + - RKpd63U5fOB9KQENZW/9vNmGmUgGzAVI24Vei0avdDhXQLPqbS5iSkbtN5YHNt1I X-Dd-Version: - - "35.3647621" + - "35.3710025" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -184,9 +184,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "996" + - "998" X-Ratelimit-Reset: - - "25" + - "26" status: 200 OK code: 200 duration: "" @@ -200,19 +200,19 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.13+dev (go go1.15.3; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.14+dev (go go1.15.3; os darwin; arch amd64) X-Datadog-Parent-Id: - - "804329284614786129" + - "906231849563962768" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "7353655356822469858" - url: https://api.datadoghq.com/api/v1/synthetics/tests/35t-k2q-ar4 + - "235915809669742677" + url: https://api.datadoghq.com/api/v1/synthetics/tests/5jx-9wh-zcq method: GET response: - body: '{"status":"paused","public_id":"35t-k2q-ar4","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1609926573","monitor_id":28311336,"type":"api","subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","certificate":{"cert":{"filename":"Provided in Terraform config","updatedAt":"2021-01-06T09:49:34.576803+00:00"},"key":{"filename":"key","updatedAt":"2021-01-06T09:49:34.576776+00:00"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"}],"configVariables":[]},"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":"5jx-9wh-zcq","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1610706513","monitor_id":28741730,"type":"api","subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","certificate":{"cert":{"filename":"Provided in Terraform config","updatedAt":"2021-01-15T10:28:34.200916+00:00"},"key":{"filename":"key","updatedAt":"2021-01-15T10:28:34.200887+00:00"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"}],"configVariables":[]},"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 @@ -223,11 +223,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 06 Jan 2021 09:49:35 GMT + - Fri, 15 Jan 2021 10:28:35 GMT Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 13-Jan-2021 09:49:35 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Fri, 22-Jan-2021 10:28:35 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -236,9 +236,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - DRZWTHDeKolQqk6GEAFoSVDF1cV93C/z8xwO7umb9e0luQPYr8BUl8IXxXdpfaM5 + - KOOy1lPBGMLqgfaB9uC20OTIJWXg6RQf2/pgyl9zFLuYtKhixa8ypYEhkGX7WYxW X-Dd-Version: - - "35.3647621" + - "35.3710025" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -246,7 +246,7 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "994" + - "997" X-Ratelimit-Reset: - "25" status: 200 OK @@ -262,19 +262,19 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.13+dev (go go1.15.3; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.14+dev (go go1.15.3; os darwin; arch amd64) X-Datadog-Parent-Id: - - "1557023784651512912" + - "1993919252311940142" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "7353655356822469858" - url: https://api.datadoghq.com/api/v1/synthetics/tests/35t-k2q-ar4 + - "235915809669742677" + url: https://api.datadoghq.com/api/v1/synthetics/tests/5jx-9wh-zcq method: GET response: - body: '{"status":"paused","public_id":"35t-k2q-ar4","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1609926573","monitor_id":28311336,"type":"api","subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","certificate":{"cert":{"filename":"Provided in Terraform config","updatedAt":"2021-01-06T09:49:34.576803+00:00"},"key":{"filename":"key","updatedAt":"2021-01-06T09:49:34.576776+00:00"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"}],"configVariables":[]},"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":"5jx-9wh-zcq","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-local-1610706513","monitor_id":28741730,"type":"api","subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","certificate":{"cert":{"filename":"Provided in Terraform config","updatedAt":"2021-01-15T10:28:34.200916+00:00"},"key":{"filename":"key","updatedAt":"2021-01-15T10:28:34.200887+00:00"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"}],"configVariables":[]},"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 @@ -285,11 +285,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 06 Jan 2021 09:49:36 GMT + - Fri, 15 Jan 2021 10:28:36 GMT Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 13-Jan-2021 09:49:36 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Fri, 22-Jan-2021 10:28:36 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -298,9 +298,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - ZvbT5Hkp4NkmoFNp2kmSQo90Sobu/hiarT/8VcAY1HhBaO2tDabc9sAn9xbJsaIr + - Q8knEw82SgGErSuAaD0RuA7obbJQJNFXaFmNNzPtQBtywdtSi82Z9gGaD787DJ0K X-Dd-Version: - - "35.3647588" + - "35.3710025" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -308,7 +308,7 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "993" + - "996" X-Ratelimit-Reset: - "24" status: 200 OK @@ -316,7 +316,7 @@ interactions: duration: "" - request: body: | - {"public_ids":["35t-k2q-ar4"]} + {"public_ids":["5jx-9wh-zcq"]} form: {} headers: Accept: @@ -327,17 +327,17 @@ interactions: - DeleteTests User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.13+dev (go go1.15.3; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.14+dev (go go1.15.3; os darwin; arch amd64) X-Datadog-Parent-Id: - - "5664935849296616412" + - "8005938817046094551" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "7353655356822469858" + - "235915809669742677" url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2021-01-06T09:49:36.396536+00:00","public_id":"35t-k2q-ar4"}]}' + body: '{"deleted_tests":[{"deleted_at":"2021-01-15T10:28:36.255608+00:00","public_id":"5jx-9wh-zcq"}]}' headers: Cache-Control: - no-cache @@ -348,11 +348,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 06 Jan 2021 09:49:36 GMT + - Fri, 15 Jan 2021 10:28:37 GMT Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 13-Jan-2021 09:49:36 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Fri, 22-Jan-2021 10:28:36 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -361,9 +361,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - WryrhJlrp33UO2Dh9ikOvV9oMDBCitVj63k+vHEWDOz2QW0FQLr/cKGijRpPHVXv + - o+DMvNLOJQfXAHeLjo7w9XOcTGCirWOThygGIHqmoMaQl6AzYuGlAbNkOlAzbCRq X-Dd-Version: - - "35.3647588" + - "35.3710025" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -387,14 +387,14 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.13+dev (go go1.15.3; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.14+dev (go go1.15.3; os darwin; arch amd64) X-Datadog-Parent-Id: - - "4748709967947007083" + - "7981466211861332810" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "7353655356822469858" - url: https://api.datadoghq.com/api/v1/synthetics/tests/35t-k2q-ar4 + - "235915809669742677" + url: https://api.datadoghq.com/api/v1/synthetics/tests/5jx-9wh-zcq method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -408,7 +408,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 06 Jan 2021 09:49:36 GMT + - Fri, 15 Jan 2021 10:28:37 GMT Pragma: - no-cache Strict-Transport-Security: @@ -418,7 +418,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.3647661" + - "35.3710025" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -426,9 +426,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "991" + - "995" X-Ratelimit-Reset: - - "24" + - "23" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze index 24ed3fadac..7106fb7584 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze +++ b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.freeze @@ -1 +1 @@ -2021-01-06T10:58:05.577416+01:00 \ No newline at end of file +2021-01-15T11:42:09.54007+01:00 \ No newline at end of file diff --git a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml index ec0c143be5..14a7c255d4 100644 --- a/datadog/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml +++ b/datadog/cassettes/TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"},{"operator":"validatesJSONPath","target":{"jsonPath":"something","operator":"moreThan","targetValue":5},"type":"body"},{"operator":"isNot","target":200,"type":"statusCode"},{"operator":"matches","target":"20[04]","type":"statusCode"},{"operator":"doesNotMatch","target":"20[04]","type":"statusCode"}],"configVariables":[],"request":{"basicAuth":{"password":"secret","username":"admin"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1609927085","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"}],"configVariables":[],"request":{"basicAuth":{"password":"secret","username":"admin"},"body":"this is a body","certificate":{"cert":{"content":"content-certificate","filename":"Provided in Terraform config"},"key":{"content":"content-key","filename":"key"}},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"method":"GET","query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1610707329","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: @@ -14,19 +14,19 @@ interactions: - CreateTest User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.13+dev (go go1.15.3; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.14+dev (go go1.15.3; os darwin; arch amd64) X-Datadog-Parent-Id: - - "3976133575282453521" + - "2739015252885037405" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "6406883155474447884" + - "1211260207436442162" url: https://api.datadoghq.com/api/v1/synthetics/tests method: POST response: - body: '{"status":"paused","public_id":"vuv-gwk-y2i","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1609927085","monitor_id":28311518,"type":"api","created_at":"2021-01-06T09:58:06.233855+00:00","modified_at":"2021-01-06T09:58:06.233855+00:00","subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","certificate":{"cert":{"filename":"Provided in Terraform config","updatedAt":"2021-01-06T09:58:06.139352+00:00"},"key":{"filename":"key","updatedAt":"2021-01-06T09:58:06.139331+00:00"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"}],"configVariables":[]},"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":"tnd-5ms-e4m","tags":["foo:bar","baz"],"org_id":321813,"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","deleted_at":null,"name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1610707329","monitor_id":28742280,"type":"api","created_at":"2021-01-15T10:42:10.230194+00:00","modified_at":"2021-01-15T10:42:10.230194+00:00","subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","certificate":{"cert":{"filename":"Provided in Terraform config","updatedAt":"2021-01-15T10:42:10.123500+00:00"},"key":{"filename":"key","updatedAt":"2021-01-15T10:42:10.123473+00:00"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"}],"configVariables":[]},"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 @@ -37,11 +37,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 06 Jan 2021 09:58:06 GMT + - Fri, 15 Jan 2021 10:42:10 GMT Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 13-Jan-2021 09:58:06 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Fri, 22-Jan-2021 10:42:10 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -50,9 +50,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - RQNZxTpzmnYtqewiwDnwjOIeDPnPlPWTnfmCTuKeHAaJNSGMGGndPJBReO57sp0w + - HvCCHsTxMdYM0gaKHtI2IcmEJsAxsAXyEwSakV4VwU0gJM0DBm5BMD3H6ZYBdo1H X-Dd-Version: - - "35.3647661" + - "35.3710025" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -62,7 +62,7 @@ interactions: X-Ratelimit-Remaining: - "119" X-Ratelimit-Reset: - - "54" + - "50" status: 200 OK code: 200 duration: "" @@ -76,19 +76,19 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.13+dev (go go1.15.3; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.14+dev (go go1.15.3; os darwin; arch amd64) X-Datadog-Parent-Id: - - "3056497357430890581" + - "3506985798036320247" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "6406883155474447884" - url: https://api.datadoghq.com/api/v1/synthetics/tests/vuv-gwk-y2i + - "1211260207436442162" + url: https://api.datadoghq.com/api/v1/synthetics/tests/tnd-5ms-e4m method: GET response: - body: '{"status":"paused","public_id":"vuv-gwk-y2i","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1609927085","monitor_id":28311518,"type":"api","subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","certificate":{"cert":{"filename":"Provided in Terraform config","updatedAt":"2021-01-06T09:58:06.139352+00:00"},"key":{"filename":"key","updatedAt":"2021-01-06T09:58:06.139331+00:00"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"}],"configVariables":[]},"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":"tnd-5ms-e4m","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1610707329","monitor_id":28742280,"type":"api","subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","certificate":{"cert":{"filename":"Provided in Terraform config","updatedAt":"2021-01-15T10:42:10.123500+00:00"},"key":{"filename":"key","updatedAt":"2021-01-15T10:42:10.123473+00:00"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"}],"configVariables":[]},"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 @@ -99,11 +99,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 06 Jan 2021 09:58:06 GMT + - Fri, 15 Jan 2021 10:42:10 GMT Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 13-Jan-2021 09:58:06 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Fri, 22-Jan-2021 10:42:10 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -112,9 +112,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - Et2YiqVRxti9EZo6Gk/yyRrgDmYxZuoE62JE6GLJjDYX0PgDmkmo9d4ASFrtRIDj + - b7N5fdPhYXDjMBDnrRAJWxJNxeU8H5y+B5ea/L1cXAMez449FKZtw3SF5mhatH7J X-Dd-Version: - - "35.3647661" + - "35.3710025" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -124,7 +124,7 @@ interactions: X-Ratelimit-Remaining: - "999" X-Ratelimit-Reset: - - "54" + - "50" status: 200 OK code: 200 duration: "" @@ -138,19 +138,19 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.13+dev (go go1.15.3; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.14+dev (go go1.15.3; os darwin; arch amd64) X-Datadog-Parent-Id: - - "1168821237537356428" + - "8989830568324220903" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "6406883155474447884" - url: https://api.datadoghq.com/api/v1/synthetics/tests/vuv-gwk-y2i + - "1211260207436442162" + url: https://api.datadoghq.com/api/v1/synthetics/tests/tnd-5ms-e4m method: GET response: - body: '{"status":"paused","public_id":"vuv-gwk-y2i","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1609927085","monitor_id":28311518,"type":"api","subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","certificate":{"cert":{"filename":"Provided in Terraform config","updatedAt":"2021-01-06T09:58:06.139352+00:00"},"key":{"filename":"key","updatedAt":"2021-01-06T09:58:06.139331+00:00"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"}],"configVariables":[]},"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":"tnd-5ms-e4m","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1610707329","monitor_id":28742280,"type":"api","subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","certificate":{"cert":{"filename":"Provided in Terraform config","updatedAt":"2021-01-15T10:42:10.123500+00:00"},"key":{"filename":"key","updatedAt":"2021-01-15T10:42:10.123473+00:00"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"}],"configVariables":[]},"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 @@ -161,11 +161,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 06 Jan 2021 09:58:06 GMT + - Fri, 15 Jan 2021 10:42:10 GMT Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 13-Jan-2021 09:58:06 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Fri, 22-Jan-2021 10:42:10 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -174,9 +174,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - yh6YON+7jbeDMg7CO+AYyoesqWeq0Iw5xzcOjFKKupoYHnh4eyLWds2GSgfB/+lP + - ZvbT5Hkp4NkmoFNp2kmSQo90Sobu/hiarT/8VcAY1HhBaO2tDabc9sAn9xbJsaIr X-Dd-Version: - - "35.3647661" + - "35.3710025" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -186,7 +186,7 @@ interactions: X-Ratelimit-Remaining: - "998" X-Ratelimit-Reset: - - "54" + - "50" status: 200 OK code: 200 duration: "" @@ -200,19 +200,19 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.13+dev (go go1.15.3; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.14+dev (go go1.15.3; os darwin; arch amd64) X-Datadog-Parent-Id: - - "5234138912116591419" + - "6838387648903360164" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "6406883155474447884" - url: https://api.datadoghq.com/api/v1/synthetics/tests/vuv-gwk-y2i + - "1211260207436442162" + url: https://api.datadoghq.com/api/v1/synthetics/tests/tnd-5ms-e4m method: GET response: - body: '{"status":"paused","public_id":"vuv-gwk-y2i","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1609927085","monitor_id":28311518,"type":"api","subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","certificate":{"cert":{"filename":"Provided in Terraform config","updatedAt":"2021-01-06T09:58:06.139352+00:00"},"key":{"filename":"key","updatedAt":"2021-01-06T09:58:06.139331+00:00"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"}],"configVariables":[]},"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":"tnd-5ms-e4m","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1610707329","monitor_id":28742280,"type":"api","subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","certificate":{"cert":{"filename":"Provided in Terraform config","updatedAt":"2021-01-15T10:42:10.123500+00:00"},"key":{"filename":"key","updatedAt":"2021-01-15T10:42:10.123473+00:00"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"}],"configVariables":[]},"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 @@ -223,11 +223,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 06 Jan 2021 09:58:06 GMT + - Fri, 15 Jan 2021 10:42:10 GMT Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 13-Jan-2021 09:58:06 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Fri, 22-Jan-2021 10:42:10 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -236,9 +236,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - QgQu/iPnCQXRgWPQKBm0M4xipFcbwl50MnRHSjKNayyZv/6KjuJNpOhY5+udaeL8 + - ZG2d6PTZdN5GjOj1q5TL+mECh5HT9EM/Aj77tmQRsy/bdfhBJv7oKLtfntznaoTC X-Dd-Version: - - "35.3647661" + - "35.3710025" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -246,9 +246,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "995" + - "997" X-Ratelimit-Reset: - - "54" + - "50" status: 200 OK code: 200 duration: "" @@ -262,19 +262,19 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.13+dev (go go1.15.3; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.14+dev (go go1.15.3; os darwin; arch amd64) X-Datadog-Parent-Id: - - "7429672150021738245" + - "3921363911382453682" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "6406883155474447884" - url: https://api.datadoghq.com/api/v1/synthetics/tests/vuv-gwk-y2i + - "1211260207436442162" + url: https://api.datadoghq.com/api/v1/synthetics/tests/tnd-5ms-e4m method: GET response: - body: '{"status":"paused","public_id":"vuv-gwk-y2i","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1609927085","monitor_id":28311518,"type":"api","subtype":"http","config":{"variables":[],"request":{"body":"this - is a body","certificate":{"cert":{"filename":"Provided in Terraform config","updatedAt":"2021-01-06T09:58:06.139352+00:00"},"key":{"filename":"key","updatedAt":"2021-01-06T09:58:06.139331+00:00"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"}],"configVariables":[]},"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":"tnd-5ms-e4m","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify + @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1610707329","monitor_id":28742280,"type":"api","subtype":"http","config":{"variables":[],"request":{"body":"this + is a body","certificate":{"cert":{"filename":"Provided in Terraform config","updatedAt":"2021-01-15T10:42:10.123500+00:00"},"key":{"filename":"key","updatedAt":"2021-01-15T10:42:10.123473+00:00"}},"url":"https://www.datadoghq.com","basicAuth":{"username":"admin","password":"secret"},"headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"timeout":30,"query":{"foo":"bar"},"method":"GET"},"assertions":[{"operator":"contains","property":"content-type","type":"header","target":"application/json"},{"operator":"is","type":"statusCode","target":200},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}},{"operator":"validatesJSONPath","type":"body","target":{"operator":"moreThan","targetValue":5,"jsonPath":"something"}},{"operator":"isNot","type":"statusCode","target":200},{"operator":"matches","type":"statusCode","target":"20[04]"},{"operator":"doesNotMatch","type":"statusCode","target":"20[04]"}],"configVariables":[]},"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 @@ -285,11 +285,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 06 Jan 2021 09:58:07 GMT + - Fri, 15 Jan 2021 10:42:11 GMT Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 13-Jan-2021 09:58:06 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Fri, 22-Jan-2021 10:42:10 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -298,9 +298,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - ERAR+wIpkUrPjdmF8Izu2K5/ZMTkW0RxdMJp2EI5/HgIxQDnb5krpGDLSDYaD2KU + - /pM3t244uCdX9dMTNWxe1gvYLT702JRfo8ITQW70OgOLnoV6jDL7q1DSaqmfhgYL X-Dd-Version: - - "35.3647661" + - "35.3710025" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -308,15 +308,15 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "993" + - "996" X-Ratelimit-Reset: - - "54" + - "49" status: 200 OK code: 200 duration: "" - request: body: | - {"config":{"assertions":[{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"}],"configVariables":[],"request":{"method":"GET","timeout":60,"url":"https://docs.datadoghq.com"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1609927085updated","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"},"variables":[]},"locations":["aws:eu-central-1"],"message":"Notify @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1610707329updated","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: @@ -327,18 +327,19 @@ interactions: - UpdateTest User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.13+dev (go go1.15.3; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.14+dev (go go1.15.3; os darwin; arch amd64) X-Datadog-Parent-Id: - - "1888551840247624732" + - "2239830536092471642" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "6406883155474447884" - url: https://api.datadoghq.com/api/v1/synthetics/tests/vuv-gwk-y2i + - "1211260207436442162" + url: https://api.datadoghq.com/api/v1/synthetics/tests/tnd-5ms-e4m method: PUT response: - body: '{"status":"live","public_id":"vuv-gwk-y2i","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-1609927085updated","monitor_id":28311518,"type":"api","created_at":"2021-01-06T09:58:06.233855+00:00","modified_at":"2021-01-06T09:58:07.315633+00:00","subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","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":"tnd-5ms-e4m","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-1610707329updated","monitor_id":28742280,"type":"api","created_at":"2021-01-15T10:42:10.230194+00:00","modified_at":"2021-01-15T10:42:11.404423+00:00","subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided + in Terraform config","updatedAt":"2021-01-15T10:42:11.329627+00:00"},"key":{"filename":"key-updated","updatedAt":"2021-01-15T10:42:11.329602+00:00"}},"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 @@ -349,11 +350,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 06 Jan 2021 09:58:07 GMT + - Fri, 15 Jan 2021 10:42:12 GMT Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 13-Jan-2021 09:58:07 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Fri, 22-Jan-2021 10:42:11 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -362,9 +363,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - gr+QII7IFZVxhXS35BsEOrW9Uz3gs+l7g2tB1FOjy4hKCe3rtnWg3KfE74dirBtE + - 1P9wTBqAbIBgrelvLhZC6yMU4dh3hoPJxqgVxGKRZAP7KGr8YPkzxcmHF9q0g7sB X-Dd-Version: - - "35.3647661" + - "35.3710025" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -374,7 +375,7 @@ interactions: X-Ratelimit-Remaining: - "499" X-Ratelimit-Reset: - - "53" + - "49" status: 200 OK code: 200 duration: "" @@ -388,18 +389,19 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.13+dev (go go1.15.3; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.14+dev (go go1.15.3; os darwin; arch amd64) X-Datadog-Parent-Id: - - "4310583137934765582" + - "9091920758924538400" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "6406883155474447884" - url: https://api.datadoghq.com/api/v1/synthetics/tests/vuv-gwk-y2i + - "1211260207436442162" + url: https://api.datadoghq.com/api/v1/synthetics/tests/tnd-5ms-e4m method: GET response: - body: '{"status":"live","public_id":"vuv-gwk-y2i","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1609927085updated","monitor_id":28311518,"type":"api","subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","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":"tnd-5ms-e4m","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1610707329updated","monitor_id":28742280,"type":"api","subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided + in Terraform config","updatedAt":"2021-01-15T10:42:11.329627+00:00"},"key":{"filename":"key-updated","updatedAt":"2021-01-15T10:42:11.329602+00:00"}},"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 @@ -410,11 +412,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 06 Jan 2021 09:58:07 GMT + - Fri, 15 Jan 2021 10:42:12 GMT Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 13-Jan-2021 09:58:07 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Fri, 22-Jan-2021 10:42:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -423,9 +425,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - nuSFLkQ1s7gwoRNAfifc8jXTyjLsWBSRPtQKveq6qMTKGNJs/ULg6uo/9G1YZzFs + - bCBSaf0t3cWhIJuGOGz9PtbBY7MrMPu1HpZVAposegdxNlFMe/qHi/UbtNAIVmzS X-Dd-Version: - - "35.3647661" + - "35.3710025" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -433,9 +435,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "991" + - "995" X-Ratelimit-Reset: - - "53" + - "48" status: 200 OK code: 200 duration: "" @@ -449,18 +451,19 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.13+dev (go go1.15.3; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.14+dev (go go1.15.3; os darwin; arch amd64) X-Datadog-Parent-Id: - - "5277006032804172942" + - "5520093191912650594" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "6406883155474447884" - url: https://api.datadoghq.com/api/v1/synthetics/tests/vuv-gwk-y2i + - "1211260207436442162" + url: https://api.datadoghq.com/api/v1/synthetics/tests/tnd-5ms-e4m method: GET response: - body: '{"status":"live","public_id":"vuv-gwk-y2i","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1609927085updated","monitor_id":28311518,"type":"api","subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","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":"tnd-5ms-e4m","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1610707329updated","monitor_id":28742280,"type":"api","subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided + in Terraform config","updatedAt":"2021-01-15T10:42:11.329627+00:00"},"key":{"filename":"key-updated","updatedAt":"2021-01-15T10:42:11.329602+00:00"}},"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 @@ -471,11 +474,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 06 Jan 2021 09:58:07 GMT + - Fri, 15 Jan 2021 10:42:12 GMT Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 13-Jan-2021 09:58:07 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Fri, 22-Jan-2021 10:42:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -484,9 +487,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - 0xx9Vajt2z9Bjd3zEZxSq+HXBSiVDpVx3zcehHaUF6Rbof5oICp4xtQ5KAyASYVV + - 91aMs4Xd/NaPhGMoIvSvdd0mjw6sy0ZqzVUdTt9hqt35qwhu0snxCQESFXt90Pzi X-Dd-Version: - - "35.3647661" + - "35.3710025" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -494,9 +497,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "990" + - "994" X-Ratelimit-Reset: - - "53" + - "48" status: 200 OK code: 200 duration: "" @@ -510,18 +513,19 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.13+dev (go go1.15.3; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.14+dev (go go1.15.3; os darwin; arch amd64) X-Datadog-Parent-Id: - - "6761994757465602682" + - "6739141836621015841" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "6406883155474447884" - url: https://api.datadoghq.com/api/v1/synthetics/tests/vuv-gwk-y2i + - "1211260207436442162" + url: https://api.datadoghq.com/api/v1/synthetics/tests/tnd-5ms-e4m method: GET response: - body: '{"status":"live","public_id":"vuv-gwk-y2i","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1609927085updated","monitor_id":28311518,"type":"api","subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","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":"tnd-5ms-e4m","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1610707329updated","monitor_id":28742280,"type":"api","subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided + in Terraform config","updatedAt":"2021-01-15T10:42:11.329627+00:00"},"key":{"filename":"key-updated","updatedAt":"2021-01-15T10:42:11.329602+00:00"}},"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 @@ -532,11 +536,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 06 Jan 2021 09:58:07 GMT + - Fri, 15 Jan 2021 10:42:12 GMT Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 13-Jan-2021 09:58:07 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Fri, 22-Jan-2021 10:42:12 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -545,9 +549,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - RQNZxTpzmnYtqewiwDnwjOIeDPnPlPWTnfmCTuKeHAaJNSGMGGndPJBReO57sp0w + - d31ebXSBBNIfMRbwTUSeNjY3IxejCQxGK8GB7MdTMNs7w40n94in+BXmkLo5BsFJ X-Dd-Version: - - "35.3647661" + - "35.3710025" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -555,9 +559,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "988" + - "993" X-Ratelimit-Reset: - - "53" + - "48" status: 200 OK code: 200 duration: "" @@ -571,18 +575,19 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.13+dev (go go1.15.3; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.14+dev (go go1.15.3; os darwin; arch amd64) X-Datadog-Parent-Id: - - "848347469640838999" + - "3484898346693737697" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "6406883155474447884" - url: https://api.datadoghq.com/api/v1/synthetics/tests/vuv-gwk-y2i + - "1211260207436442162" + url: https://api.datadoghq.com/api/v1/synthetics/tests/tnd-5ms-e4m method: GET response: - body: '{"status":"live","public_id":"vuv-gwk-y2i","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1609927085updated","monitor_id":28311518,"type":"api","subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","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":"tnd-5ms-e4m","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-local-1610707329updated","monitor_id":28742280,"type":"api","subtype":"http","config":{"variables":[],"request":{"url":"https://docs.datadoghq.com","certificate":{"cert":{"filename":"Provided + in Terraform config","updatedAt":"2021-01-15T10:42:11.329627+00:00"},"key":{"filename":"key-updated","updatedAt":"2021-01-15T10:42:11.329602+00:00"}},"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 @@ -593,11 +598,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 06 Jan 2021 09:58:08 GMT + - Fri, 15 Jan 2021 10:42:13 GMT Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 13-Jan-2021 09:58:08 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Fri, 22-Jan-2021 10:42:13 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -606,9 +611,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - pU+5spIfOFTru2RhY1ezKdt9iD04gzaa+zDs5x6Ik5VkXfw5rZx6HoPylEAvTInE + - ERAR+wIpkUrPjdmF8Izu2K5/ZMTkW0RxdMJp2EI5/HgIxQDnb5krpGDLSDYaD2KU X-Dd-Version: - - "35.3647661" + - "35.3710025" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -616,15 +621,15 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "986" + - "992" X-Ratelimit-Reset: - - "52" + - "47" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["vuv-gwk-y2i"]} + {"public_ids":["tnd-5ms-e4m"]} form: {} headers: Accept: @@ -635,17 +640,17 @@ interactions: - DeleteTests User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.13+dev (go go1.15.3; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.14+dev (go go1.15.3; os darwin; arch amd64) X-Datadog-Parent-Id: - - "7355370269205169448" + - "411850961973775671" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "6406883155474447884" + - "1211260207436442162" url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2021-01-06T09:58:08.248645+00:00","public_id":"vuv-gwk-y2i"}]}' + body: '{"deleted_tests":[{"deleted_at":"2021-01-15T10:42:13.351830+00:00","public_id":"tnd-5ms-e4m"}]}' headers: Cache-Control: - no-cache @@ -656,11 +661,11 @@ interactions: Content-Type: - application/json Date: - - Wed, 06 Jan 2021 09:58:09 GMT + - Fri, 15 Jan 2021 10:42:13 GMT Pragma: - no-cache Set-Cookie: - - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Wed, 13-Jan-2021 09:58:08 GMT; + - DD-PSHARD=233; Max-Age=604800; Path=/; expires=Fri, 22-Jan-2021 10:42:13 GMT; secure; HttpOnly Strict-Transport-Security: - max-age=15724800; @@ -669,9 +674,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - xRBFY2Rp8NHDG9Rp4RaGjcqlKnbzhHpETMjn37ZNtmzdKqGU6DeuhyyL4o7jfpVZ + - u6DvYk2HTsv9JK8VlfzAetNutf1Eel5LZX1SupoC065LdrYdAgOwtNj060V1NNiO X-Dd-Version: - - "35.3647661" + - "35.3710025" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -681,7 +686,7 @@ interactions: X-Ratelimit-Remaining: - "119" X-Ratelimit-Reset: - - "52" + - "47" status: 200 OK code: 200 duration: "" @@ -695,14 +700,14 @@ interactions: - GetTest User-Agent: - terraform-provider-datadog/dev (terraform 1.15.0; terraform-cli 0.12.7-sdk) - datadog-api-client-go/1.0.0-beta.13+dev (go go1.15.3; os darwin; arch amd64) + datadog-api-client-go/1.0.0-beta.14+dev (go go1.15.3; os darwin; arch amd64) X-Datadog-Parent-Id: - - "5687053935216337334" + - "1781754062822849932" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "6406883155474447884" - url: https://api.datadoghq.com/api/v1/synthetics/tests/vuv-gwk-y2i + - "1211260207436442162" + url: https://api.datadoghq.com/api/v1/synthetics/tests/tnd-5ms-e4m method: GET response: body: '{"errors": ["Synthetics test not found"]}' @@ -716,7 +721,7 @@ interactions: Content-Type: - application/json Date: - - Wed, 06 Jan 2021 09:58:09 GMT + - Fri, 15 Jan 2021 10:42:13 GMT Pragma: - no-cache Strict-Transport-Security: @@ -726,7 +731,7 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Version: - - "35.3647661" + - "35.3710025" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -734,9 +739,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "982" + - "991" X-Ratelimit-Reset: - - "51" + - "47" status: 404 Not Found code: 404 duration: "" diff --git a/datadog/resource_datadog_synthetics_test_.go b/datadog/resource_datadog_synthetics_test_.go index 6ab1208910..983d17f88a 100644 --- a/datadog/resource_datadog_synthetics_test_.go +++ b/datadog/resource_datadog_synthetics_test_.go @@ -3,6 +3,7 @@ package datadog import ( + "crypto/sha256" "encoding/json" "fmt" "log" @@ -273,6 +274,9 @@ func syntheticsTestRequestClientCertificateItem() *schema.Schema { Type: schema.TypeString, Required: true, Sensitive: true, + StateFunc: func(val interface{}) string { + return convertToSha256(val.(string)) + }, }, "filename": { Description: "File name for the certificate.", @@ -1106,14 +1110,14 @@ func updateSyntheticsTestLocalState(d *schema.ResourceData, syntheticsTest *data key := clientCertificate.GetKey() localCertificate["key"][0]["filename"] = key.GetFilename() - // the content of the certificate and the key are write-only - // so we need to get them from the config since they will - // not be in the api response + // the content of client certificate is write-only so it will not be returned by the API. + // To avoid useless diff but also prevent storing the value in clear in the state + // we store a hash of the value. if configCertificateContent, ok := d.GetOk("request_client_certificate.0.cert.0.content"); ok { - localCertificate["cert"][0]["content"] = configCertificateContent.(string) + localCertificate["cert"][0]["content"] = getCertificateStateValue(configCertificateContent.(string)) } if configKeyContent, ok := d.GetOk("request_client_certificate.0.key.0.content"); ok { - localCertificate["key"][0]["content"] = configKeyContent.(string) + localCertificate["key"][0]["content"] = getCertificateStateValue(configKeyContent.(string)) } d.Set("request_client_certificate", []map[string][]map[string]string{localCertificate}) @@ -1371,3 +1375,24 @@ func validateSyntheticsAssertionOperator(val interface{}, key string) (warns []s } return } + +func convertToSha256(content string) string { + data := []byte(content) + hash := sha256.Sum256(data) + return fmt.Sprintf("%x", hash[:]) +} + +// get the sha256 of a client certificate content +// in some case where Terraform compares the state value +// we already get the hashed value so we don't need to +// hash it again +func getCertificateStateValue(content string) string { + contentBytes := []byte(content) + + // hacky way to detect if the value is already a sha256 hash + if len(contentBytes) == 64 { + return content + } + + return convertToSha256(content) +} diff --git a/datadog/resource_datadog_synthetics_test_test.go b/datadog/resource_datadog_synthetics_test_test.go index fa8bc2b9be..be5581020b 100644 --- a/datadog/resource_datadog_synthetics_test_test.go +++ b/datadog/resource_datadog_synthetics_test_test.go @@ -551,11 +551,11 @@ func createSyntheticsAPITestStepNewAssertionsOptions(accProvider *schema.Provide resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "request_basicauth.0.password", "secret"), resource.TestCheckResourceAttr( - "datadog_synthetics_test.bar", "request_client_certificate.0.cert.0.content", "content-certificate"), + "datadog_synthetics_test.bar", "request_client_certificate.0.cert.0.content", convertToSha256("content-certificate")), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "request_client_certificate.0.cert.0.filename", "Provided in Terraform config"), resource.TestCheckResourceAttr( - "datadog_synthetics_test.bar", "request_client_certificate.0.key.0.content", "content-key"), + "datadog_synthetics_test.bar", "request_client_certificate.0.key.0.content", convertToSha256("content-key")), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "request_client_certificate.0.key.0.filename", "key"), resource.TestCheckResourceAttr( @@ -872,6 +872,14 @@ func updateSyntheticsAPITestStepNewAssertionsOptions(accProvider *schema.Provide "datadog_synthetics_test.bar", "request.url", "https://docs.datadoghq.com"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "request.timeout", "60"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "request_client_certificate.0.cert.0.content", convertToSha256("content-certificate-updated")), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "request_client_certificate.0.cert.0.filename", "Provided in Terraform config"), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "request_client_certificate.0.key.0.content", convertToSha256("content-key-updated")), + resource.TestCheckResourceAttr( + "datadog_synthetics_test.bar", "request_client_certificate.0.key.0.filename", "key-updated"), resource.TestCheckResourceAttr( "datadog_synthetics_test.bar", "assertion.#", "1"), resource.TestCheckResourceAttr( @@ -932,6 +940,16 @@ resource "datadog_synthetics_test" "bar" { timeout = 60 } + request_client_certificate { + cert { + content = "content-certificate-updated" + } + key { + content = "content-key-updated" + filename = "key-updated" + } + } + assertion { type = "body" operator = "validatesJSONPath"