From 1566115ba1df48d63b243323f5705747c311c6d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Herv=C3=A9?= Date: Fri, 14 May 2021 11:23:36 +0200 Subject: [PATCH 1/2] Fix tests, re-record --- tests/api/v1/datadog/api_synthetics_test.go | 4 +- ...stSyntheticsMultipleTestsOperations.freeze | 2 +- ...TestSyntheticsMultipleTestsOperations.yaml | 171 ++++++------------ 3 files changed, 58 insertions(+), 119 deletions(-) diff --git a/tests/api/v1/datadog/api_synthetics_test.go b/tests/api/v1/datadog/api_synthetics_test.go index a67c887e0a6..cac11234bd7 100644 --- a/tests/api/v1/datadog/api_synthetics_test.go +++ b/tests/api/v1/datadog/api_synthetics_test.go @@ -1361,7 +1361,7 @@ func TestSyntheticsVariableLifecycle(t *testing.T) { Tags: []string{"synthetics"}, Value: datadog.SyntheticsGlobalVariableValue{ Secure: datadog.PtrBool(false), - Value: "VARIABLE_VALUE", + Value: datadog.PtrString("VARIABLE_VALUE"), }, } @@ -1433,7 +1433,7 @@ func TestSyntheticsVariableFromTestLifecycle(t *testing.T) { Tags: []string{"synthetics"}, Value: datadog.SyntheticsGlobalVariableValue{ Secure: datadog.PtrBool(false), - Value: "", + Value: datadog.PtrString(""), }, } diff --git a/tests/api/v1/datadog/cassettes/TestSyntheticsMultipleTestsOperations.freeze b/tests/api/v1/datadog/cassettes/TestSyntheticsMultipleTestsOperations.freeze index 292d0b32dd7..451878a9eb4 100644 --- a/tests/api/v1/datadog/cassettes/TestSyntheticsMultipleTestsOperations.freeze +++ b/tests/api/v1/datadog/cassettes/TestSyntheticsMultipleTestsOperations.freeze @@ -1 +1 @@ -2021-04-27T08:37:25.855666715Z \ No newline at end of file +2021-05-14T11:23:05.854899+02:00 \ No newline at end of file diff --git a/tests/api/v1/datadog/cassettes/TestSyntheticsMultipleTestsOperations.yaml b/tests/api/v1/datadog/cassettes/TestSyntheticsMultipleTestsOperations.yaml index ba46a0dc448..1b5ffc95876 100644 --- a/tests/api/v1/datadog/cassettes/TestSyntheticsMultipleTestsOperations.yaml +++ b/tests/api/v1/datadog/cassettes/TestSyntheticsMultipleTestsOperations.yaml @@ -3,7 +3,7 @@ version: 1 interactions: - request: body: | - {"config":{"assertions":[{"operator":"is","property":"{{ PROPERTY }}","target":"text/html","type":"header"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"}],"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"request":{"certificate":{"cert":{"content":"cert-content","filename":"cert-filename","updatedAt":"2020-10-16T09:23:24.857Z"},"key":{"content":"key-content","filename":"key-filename","updatedAt":"2020-10-16T09:23:24.857Z"}},"headers":{"testingGoClient":"true"},"method":"GET","timeout":10,"url":"https://datadoghq.com"}},"locations":["aws:us-east-2"],"message":"Go client testing Synthetics API test - this is message","name":"Test-TestSyntheticsMultipleTestsOperations-1619512645","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"retry":{"count":3,"interval":10},"tick_every":60},"subtype":"http","tags":["testing:api"],"type":"api"} + {"config":{"assertions":[{"operator":"is","property":"{{ PROPERTY }}","target":"text/html","type":"header"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"}],"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"request":{"certificate":{"cert":{"content":"cert-content","filename":"cert-filename","updatedAt":"2020-10-16T09:23:24.857Z"},"key":{"content":"key-content","filename":"key-filename","updatedAt":"2020-10-16T09:23:24.857Z"}},"headers":{"testingGoClient":"true"},"method":"GET","timeout":10,"url":"https://datadoghq.com"}},"locations":["aws:us-east-2"],"message":"Go client testing Synthetics API test - this is message","name":"Test-TestSyntheticsMultipleTestsOperations-1620984185","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"retry":{"count":3,"interval":10},"tick_every":60},"subtype":"http","tags":["testing:api"],"type":"api"} form: {} headers: Accept: @@ -13,18 +13,18 @@ interactions: Dd-Operation-Id: - CreateSyntheticsAPITest User-Agent: - - datadog-api-client-go/1.0.0-beta.20+dev (go go1.16.3; os linux; arch amd64) + - datadog-api-client-go/1.0.0-beta.22+dev (go go1.15.7; os darwin; arch amd64) X-Datadog-Parent-Id: - - "6953546810388922688" + - "5058539891417927321" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "3444615562244543820" + - "5680212470042573391" url: https://api.datadoghq.com/api/v1/synthetics/tests/api method: POST response: - body: '{"status":"live","public_id":"6q3-rsh-rfx","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"Go - client testing Synthetics API test - this is message","deleted_at":null,"name":"Test-TestSyntheticsMultipleTestsOperations-1619512645","monitor_id":34501133,"type":"api","created_at":"2021-04-27T08:37:26.347106+00:00","modified_at":"2021-04-27T08:37:26.347106+00:00","subtype":"http","config":{"request":{"url":"https://datadoghq.com","headers":{"testingGoClient":"true"},"certificate":{"cert":{"filename":"cert-filename","updatedAt":"2021-04-27T08:37:26.265192+00:00"},"key":{"filename":"key-filename","updatedAt":"2021-04-27T08:37:26.265168+00:00"}},"method":"GET","timeout":10},"assertions":[{"operator":"is","property":"{{ + body: '{"status":"live","public_id":"cvm-gca-4iu","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"Go + client testing Synthetics API test - this is message","deleted_at":null,"name":"Test-TestSyntheticsMultipleTestsOperations-1620984185","monitor_id":35414944,"type":"api","created_at":"2021-05-14T09:23:06.514169+00:00","modified_at":"2021-05-14T09:23:06.514169+00:00","subtype":"http","config":{"request":{"url":"https://datadoghq.com","headers":{"testingGoClient":"true"},"certificate":{"cert":{"filename":"cert-filename","updatedAt":"2021-05-14T09:23:06.376064+00:00"},"key":{"filename":"key-filename","updatedAt":"2021-05-14T09:23:06.376039+00:00"}},"method":"GET","timeout":10},"assertions":[{"operator":"is","property":"{{ PROPERTY }}","type":"header","target":"text/html"},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"tick_every":60}}' headers: Cache-Control: @@ -34,7 +34,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Apr 2021 08:37:27 GMT + - Fri, 14 May 2021 09:23:06 GMT Pragma: - no-cache Strict-Transport-Security: @@ -44,9 +44,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - fIO2C4qGDheGHy4YbS+r3a3CXbh4cbRo7roILOimQyiHGjQdOat0cIpWCkupM1uX + - LcgNasIYBRkNppmD6mCKE9J6iv0eEjosuuHR5V5zw2fWbR54i39C8dhdK8zDq/40 X-Dd-Version: - - "35.4397207" + - "35.4528823" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -54,15 +54,15 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "117" + - "119" X-Ratelimit-Reset: - - "34" + - "54" status: 200 OK code: 200 duration: "" - request: body: | - {"config":{"assertions":[],"request":{"method":"GET","url":"https://datadoghq.com"},"setCookie":"name:test"},"locations":["aws:us-east-2"],"message":"Go client testing Synthetics Browser test - this is message","name":"Test-TestSyntheticsMultipleTestsOperations-1619512645","options":{"accept_self_signed":false,"allow_insecure":true,"device_ids":["tablet"],"disableCors":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"noScreenshot":true,"retry":{"count":3,"interval":10},"tick_every":300},"tags":["testing:browser"],"type":"browser"} + {"config":{"assertions":[],"request":{"method":"GET","url":"https://datadoghq.com"},"setCookie":"name:test"},"locations":["aws:us-east-2"],"message":"Go client testing Synthetics Browser test - this is message","name":"Test-TestSyntheticsMultipleTestsOperations-1620984185","options":{"accept_self_signed":false,"allow_insecure":true,"device_ids":["tablet"],"disableCors":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"noScreenshot":true,"retry":{"count":3,"interval":10},"tick_every":300},"tags":["testing:browser"],"type":"browser"} form: {} headers: Accept: @@ -72,18 +72,18 @@ interactions: Dd-Operation-Id: - CreateSyntheticsBrowserTest User-Agent: - - datadog-api-client-go/1.0.0-beta.20+dev (go go1.16.3; os linux; arch amd64) + - datadog-api-client-go/1.0.0-beta.22+dev (go go1.15.7; os darwin; arch amd64) X-Datadog-Parent-Id: - - "4381639802230867875" + - "3767662557241245017" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "3444615562244543820" + - "5680212470042573391" url: https://api.datadoghq.com/api/v1/synthetics/tests/browser method: POST response: - body: '{"status":"paused","public_id":"6yq-cjp-yt5","tags":["testing:browser"],"org_id":321813,"locations":["aws:us-east-2"],"message":"Go - client testing Synthetics Browser test - this is message","deleted_at":null,"name":"Test-TestSyntheticsMultipleTestsOperations-1619512645","monitor_id":34501134,"type":"browser","created_at":"2021-04-27T08:37:27.367989+00:00","modified_at":"2021-04-27T08:37:27.367989+00:00","config":{"setCookie":"name:test","request":{"url":"https://datadoghq.com","method":"GET"},"assertions":[]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"noScreenshot":true,"disableCors":true,"device_ids":["tablet"],"tick_every":300}}' + body: '{"status":"paused","public_id":"suf-d4v-j7f","tags":["testing:browser"],"org_id":321813,"locations":["aws:us-east-2"],"message":"Go + client testing Synthetics Browser test - this is message","deleted_at":null,"name":"Test-TestSyntheticsMultipleTestsOperations-1620984185","monitor_id":35414945,"type":"browser","created_at":"2021-05-14T09:23:06.792315+00:00","modified_at":"2021-05-14T09:23:06.792315+00:00","config":{"setCookie":"name:test","request":{"url":"https://datadoghq.com","method":"GET"},"assertions":[]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"noScreenshot":true,"disableCors":true,"device_ids":["tablet"],"tick_every":300}}' headers: Cache-Control: - no-cache @@ -92,7 +92,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Apr 2021 08:37:27 GMT + - Fri, 14 May 2021 09:23:06 GMT Pragma: - no-cache Strict-Transport-Security: @@ -102,9 +102,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - S1wfaMZOKGT/IoMw6fqAwAwGWo2vQ44sjF3YzuETnQfxZO2T5eJbs0aX3UKb9Dwu + - 5gfwVh/5HZ+AnGd/Di93w3NEWC6KMHT9KzmHEiRJmNdOjBtAsbOcgVFyqEChw71h X-Dd-Version: - - "35.4397207" + - "35.4528823" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -112,9 +112,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "116" + - "118" X-Ratelimit-Reset: - - "33" + - "54" status: 200 OK code: 200 duration: "" @@ -127,83 +127,22 @@ interactions: Dd-Operation-Id: - ListTests User-Agent: - - datadog-api-client-go/1.0.0-beta.20+dev (go go1.16.3; os linux; arch amd64) + - datadog-api-client-go/1.0.0-beta.22+dev (go go1.15.7; os darwin; arch amd64) X-Datadog-Parent-Id: - - "1650518938927520990" + - "3657009476625444103" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "3444615562244543820" + - "5680212470042573391" url: https://api.datadoghq.com/api/v1/synthetics/tests method: GET response: - body: '{"tests":[{"status":"paused","public_id":"d5m-78h-yh4","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Basic-58976-1618572293","monitor_id":33967097,"type":"api","created_at":"2021-04-16T11:24:54.239395+00:00","modified_at":"2021-04-16T11:24:54.239395+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":{"follow_redirects":true,"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"tick_every":60}},{"status":"paused","public_id":"2m6-hgb-z58","tags":[],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsSSLMissingTagsAttributeTest_Basic-58979-1618574989","monitor_id":33969709,"type":"api","created_at":"2021-04-16T12:09:50.056120+00:00","modified_at":"2021-04-16T12:09:50.056120+00:00","subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}],"configVariables":[]},"options":{"accept_self_signed":true,"tick_every":60}},{"status":"live","public_id":"8xy-tih-fgh","tags":["testing:api"],"locations":["aws:us-east-2"],"message":"testing - Synthetics API test - this is message","name":"java-updateTestSyntheticsErrorsTest-59147-1618605948","monitor_id":33997909,"type":"api","created_at":"2021-04-16T20:45:48.975589+00:00","modified_at":"2021-04-16T20:45:48.975589+00:00","subtype":"http","config":{"request":{"url":"https://datadoghq.com","headers":{"testingJavaClient":"true"},"method":"GET","timeout":10.0},"assertions":[{"operator":"is","property":"content-type","type":"header","target":"text/html"},{"operator":"lessThan","type":"responseTime","target":2000}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10.0},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"tick_every":60}},{"status":"live","public_id":"6d4-zdr-2ss","tags":["testing:api"],"locations":["aws:us-east-2"],"message":"Go - client testing Synthetics API test - this is message","name":"Test-Go-TestSyntheticsVariableFromTestLifecycle-1618682786","monitor_id":34024791,"type":"api","created_at":"2021-04-17T18:06:26.542647+00:00","modified_at":"2021-04-17T18:06:26.542647+00:00","subtype":"http","config":{"request":{"url":"https://datadoghq.com","headers":{"testingGoClient":"true"},"certificate":{"cert":{"filename":"cert-filename","updatedAt":"2021-04-17T18:06:26.408002+00:00"},"key":{"filename":"key-filename","updatedAt":"2021-04-17T18:06:26.407975+00:00"}},"method":"GET","timeout":10},"assertions":[{"operator":"is","property":"{{ - PROPERTY }}","type":"header","target":"text/html"},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"tick_every":60}},{"status":"live","public_id":"qgb-njt-smd","tags":["testing:api"],"locations":["aws:us-east-2"],"message":"Go - client testing Synthetics API test - this is message","name":"Test-Go-TestSyntheticsTriggerCITests-1618682787","monitor_id":34024793,"type":"api","created_at":"2021-04-17T18:06:27.381751+00:00","modified_at":"2021-04-17T18:06:27.381751+00:00","subtype":"http","config":{"request":{"url":"https://datadoghq.com","headers":{"testingGoClient":"true"},"certificate":{"cert":{"filename":"cert-filename","updatedAt":"2021-04-17T18:06:27.316079+00:00"},"key":{"filename":"key-filename","updatedAt":"2021-04-17T18:06:27.316054+00:00"}},"method":"GET","timeout":10},"assertions":[{"operator":"is","property":"{{ - PROPERTY }}","type":"header","target":"text/html"},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"tick_every":60}},{"status":"paused","public_id":"98q-q9b-69g","tags":[],"locations":["aws:eu-central-1"],"message":"","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserNewBrowserStep_Basic-59224-1618704628-subtest","monitor_id":34032375,"type":"browser","created_at":"2021-04-18T00:10:28.870598+00:00","modified_at":"2021-04-18T00:10:28.870598+00:00","config":{"variables":[],"request":{"url":"https://www.datadoghq.com","method":"GET"},"assertions":[]},"options":{"retry":{"count":2,"interval":300},"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900}},{"status":"paused","public_id":"yka-fbu-pqh","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserNewBrowserStep_Basic-59224-1618704628","monitor_id":34032377,"type":"browser","created_at":"2021-04-18T00:10:29.785551+00:00","modified_at":"2021-04-18T00:10:29.785551+00:00","config":{"variables":[],"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":[]},"options":{"retry":{"count":2,"interval":300},"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"device_ids":["laptop_large","mobile_small"],"min_location_failed":1,"tick_every":900}},{"status":"live","public_id":"msw-gps-xa3","tags":["testing:api"],"locations":["aws:us-east-2"],"message":"testing - Synthetics API test - this is message","name":"java-testSyntheticsAPILifecycle-59264-1618763992","monitor_id":34051737,"type":"api","created_at":"2021-04-18T16:39:52.849772+00:00","modified_at":"2021-04-18T16:39:52.849772+00:00","subtype":"http","config":{"request":{"url":"https://datadoghq.com","headers":{"testingJavaClient":"true"},"method":"GET","timeout":10.0},"assertions":[{"operator":"is","property":"content-type","type":"header","target":"text/html"},{"operator":"lessThan","type":"responseTime","target":2000}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10.0},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"tick_every":60}},{"status":"live","public_id":"fed-58x-hve","tags":["testing:api"],"locations":["aws:us-east-2"],"message":"Go - client testing Synthetics API test - this is message","name":"Test-Go-TestSyntheticsTriggerCITests-1618831652","monitor_id":34084003,"type":"api","created_at":"2021-04-19T11:27:32.908561+00:00","modified_at":"2021-04-19T11:27:32.908561+00:00","subtype":"http","config":{"request":{"url":"https://datadoghq.com","headers":{"testingGoClient":"true"},"certificate":{"cert":{"filename":"cert-filename","updatedAt":"2021-04-19T11:27:32.751325+00:00"},"key":{"filename":"key-filename","updatedAt":"2021-04-19T11:27:32.751299+00:00"}},"method":"GET","timeout":10},"assertions":[{"operator":"is","property":"{{ - PROPERTY }}","type":"header","target":"text/html"},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"tick_every":60}},{"status":"live","public_id":"77f-u3b-tpr","tags":["testing:api"],"locations":["aws:us-east-2"],"message":"testing - Synthetics API test - this is message","name":"java-testSyntheticsAPILifecycle-59365-1618833370-updated","monitor_id":34085460,"type":"api","created_at":"2021-04-19T11:56:10.921051+00:00","modified_at":"2021-04-19T11:56:14.073553+00:00","subtype":"http","config":{"request":{"url":"https://datadoghq.com","headers":{"testingJavaClient":"true"},"method":"GET","timeout":10.0},"assertions":[{"operator":"is","property":"content-type","type":"header","target":"text/html"},{"operator":"lessThan","type":"responseTime","target":2000}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10.0},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"tick_every":60}},{"status":"paused","public_id":"9ma-snj-25g","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-59675-1618963637","monitor_id":34187826,"type":"api","created_at":"2021-04-21T00:07:17.645821+00:00","modified_at":"2021-04-21T00:07:17.645821+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":{"follow_redirects":true,"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"tick_every":60}},{"status":"paused","public_id":"9jk-jhv-cg6","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsDNSTest_importBasic-59761-1619007039","monitor_id":34216550,"type":"api","created_at":"2021-04-21T12:10:39.929984+00:00","modified_at":"2021-04-21T12:10:39.929984+00:00","subtype":"dns","config":{"request":{"host":"https://www.datadoghq.com","dnsServer":"8.8.8.8"},"assertions":[{"operator":"is","property":"A","type":"recordSome","target":"0.0.0.0"}],"configVariables":[]},"options":{"min_location_failed":1,"tick_every":60}},{"status":"paused","public_id":"tzi-e8a-q3f","tags":[],"locations":["aws:eu-central-1"],"message":"","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserNewBrowserStep_Basic-59959-1619093392-subtest","monitor_id":34271384,"type":"browser","created_at":"2021-04-22T12:09:52.956940+00:00","modified_at":"2021-04-22T12:09:52.956940+00:00","config":{"variables":[],"request":{"url":"https://www.datadoghq.com","method":"GET"},"assertions":[]},"options":{"retry":{"count":2,"interval":300},"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":100},"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900}},{"status":"paused","public_id":"zf7-vz8-ymw","tags":["foo:bar"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-59959-1619093395","monitor_id":34271390,"type":"browser","created_at":"2021-04-22T12:09:56.398265+00:00","modified_at":"2021-04-22T12:09:56.398265+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"request":{"url":"https://www.datadoghq.com","method":"GET"},"assertions":[]},"options":{"retry":{"count":2,"interval":300},"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900}},{"status":"live","public_id":"dj5-xn8-vce","tags":["testing:api"],"locations":["aws:us-east-2"],"message":"testing - Synthetics API test - this is message","name":"java-testSyntheticsAPILifecycle-60023-1619120047","monitor_id":34290835,"type":"api","created_at":"2021-04-22T19:34:07.932690+00:00","modified_at":"2021-04-22T19:34:07.932690+00:00","subtype":"http","config":{"request":{"url":"https://datadoghq.com","headers":{"testingJavaClient":"true"},"method":"GET","timeout":10.0},"assertions":[{"operator":"is","property":"content-type","type":"header","target":"text/html"},{"operator":"lessThan","type":"responseTime","target":2000}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10.0},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"tick_every":60}},{"status":"paused","public_id":"k2c-f4k-4gq","tags":["foo:bar"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsBrowserTestBrowserVariables_Basic-60045-1619136405","monitor_id":34312301,"type":"browser","created_at":"2021-04-23T00:06:46.431010+00:00","modified_at":"2021-04-23T00:06:46.431010+00:00","config":{"variables":[{"pattern":"{{numeric(3)}}","type":"text","example":"597","name":"MY_PATTERN_VAR"}],"request":{"url":"https://www.datadoghq.com","method":"GET"},"assertions":[]},"options":{"retry":{"count":2,"interval":300},"device_ids":["laptop_large"],"min_location_failed":1,"tick_every":900}},{"status":"paused","public_id":"sth-685-exy","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsDNSTest_Basic-60128-1619179574","monitor_id":34345120,"type":"api","created_at":"2021-04-23T12:06:15.002363+00:00","modified_at":"2021-04-23T12:06:15.002363+00:00","subtype":"dns","config":{"request":{"host":"https://www.datadoghq.com","dnsServer":"8.8.8.8"},"assertions":[{"operator":"is","property":"A","type":"recordSome","target":"0.0.0.0"}],"configVariables":[]},"options":{"min_location_failed":1,"tick_every":60}},{"status":"live","public_id":"6by-nnf-efq","tags":["foo:bar","baz","env:test"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsTCPTest_Updated-60128-1619179575-updated","monitor_id":34345122,"type":"api","created_at":"2021-04-23T12:06:16.279748+00:00","modified_at":"2021-04-23T12:06:18.055891+00:00","subtype":"tcp","config":{"request":{"host":"agent-intake.logs.datadoghq.com","port":443},"assertions":[{"operator":"lessThan","type":"responseTime","target":3000}],"configVariables":[]},"options":{"min_location_failed":1,"tick_every":300}},{"status":"paused","public_id":"2vx-57m-g43","tags":[],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsSSLTest_Updated-60128-1619179578","monitor_id":34345127,"type":"api","created_at":"2021-04-23T12:06:19.394500+00:00","modified_at":"2021-04-23T12:06:19.394500+00:00","subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}],"configVariables":[]},"options":{"accept_self_signed":true,"min_location_failed":1,"tick_every":60}},{"status":"paused","public_id":"qye-itp-84c","tags":[],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsSSLMissingTagsAttributeTest_Basic-60222-1619201435","monitor_id":34360728,"type":"api","created_at":"2021-04-23T18:10:36.079627+00:00","modified_at":"2021-04-23T18:10:36.079627+00:00","subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":30}],"configVariables":[]},"options":{"accept_self_signed":true,"tick_every":60}},{"status":"paused","public_id":"byz-snd-96v","tags":["testing:browser"],"locations":["aws:us-east-2"],"message":"Go - client testing Synthetics Browser test - this is message","name":"Test-Go-TestSyntheticsBrowserTestEndpointLifecycle-1619276838","monitor_id":34390161,"type":"browser","created_at":"2021-04-24T15:07:19.114868+00:00","modified_at":"2021-04-24T15:07:19.114868+00:00","config":{"request":{"url":"https://datadoghq.com","method":"GET"},"assertions":[]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"noScreenshot":true,"disableCors":true,"device_ids":["tablet"],"tick_every":300}},{"status":"live","public_id":"up8-asa-far","tags":["testing:api"],"locations":["aws:us-east-2"],"message":"Go - client testing Synthetics API test - this is message","name":"Test-Go-TestSyntheticsTriggerCITests-1619319993","monitor_id":34401389,"type":"api","created_at":"2021-04-25T03:06:33.483241+00:00","modified_at":"2021-04-25T03:06:33.483241+00:00","subtype":"http","config":{"request":{"url":"https://datadoghq.com","headers":{"testingGoClient":"true"},"certificate":{"cert":{"filename":"cert-filename","updatedAt":"2021-04-25T03:06:33.312085+00:00"},"key":{"filename":"key-filename","updatedAt":"2021-04-25T03:06:33.312057+00:00"}},"method":"GET","timeout":10},"assertions":[{"operator":"is","property":"{{ - PROPERTY }}","type":"header","target":"text/html"},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"tick_every":60}},{"status":"live","public_id":"4xu-eff-z8j","tags":["testing:api"],"locations":["aws:us-east-2"],"message":"Go - client testing Synthetics API test - this is message","name":"Test-Go-TestSyntheticsAPITestEndpointLifecycle-1619319997","monitor_id":34401390,"type":"api","created_at":"2021-04-25T03:06:37.473047+00:00","modified_at":"2021-04-25T03:06:37.473047+00:00","subtype":"http","config":{"request":{"url":"https://datadoghq.com","headers":{"testingGoClient":"true"},"certificate":{"cert":{"filename":"cert-filename","updatedAt":"2021-04-25T03:06:37.341867+00:00"},"key":{"filename":"key-filename","updatedAt":"2021-04-25T03:06:37.341842+00:00"}},"method":"GET","timeout":10},"assertions":[{"operator":"is","property":"{{ - PROPERTY }}","type":"header","target":"text/html"},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"tick_every":60}},{"status":"paused","public_id":"d32-mdj-mxx","tags":["testing:browser"],"locations":["aws:us-east-2"],"message":"Go - client testing Synthetics Browser test - this is message","name":"Test-Go-TestSyntheticsBrowserTestEndpointLifecycle-1619319997","monitor_id":34401391,"type":"browser","created_at":"2021-04-25T03:06:38.106823+00:00","modified_at":"2021-04-25T03:06:38.106823+00:00","config":{"request":{"url":"https://datadoghq.com","method":"GET"},"assertions":[]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"noScreenshot":true,"disableCors":true,"device_ids":["tablet"],"tick_every":300}},{"status":"live","public_id":"h3c-bd4-gu2","tags":["testing:api"],"locations":["aws:us-east-2"],"message":"Go - client testing Synthetics API test - this is message","name":"Test-Go-TestSyntheticsAPIMultistepTestEndpointLifecycle-1619319998","monitor_id":34401392,"type":"api","created_at":"2021-04-25T03:06:38.800185+00:00","modified_at":"2021-04-25T03:06:38.800185+00:00","subtype":"multi","config":{"steps":[{"name":"First - step","request":{"url":"https://datadoghq.com","headers":{"testingGoClient":"true"},"method":"GET","timeout":10},"subtype":"http","extractedValues":[{"field":"content-type","parser":{"type":"raw"},"type":"http_header","name":"EXTRACTED_VALUE"}],"id":"y7t-hav-jrk","assertions":[]}],"assertions":[],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"tick_every":60}},{"status":"paused","public_id":"zyj-8mp-cbe","tags":["test:edited"],"locations":["aws:us-west-2"],"message":"Test - Browser edited","name":"Test Browser edited","monitor_id":34425204,"type":"api","created_at":"2021-04-26T05:56:29.427356+00:00","modified_at":"2021-04-26T05:56:31.370562+00:00","subtype":"http","config":{"request":{"url":"https://example.com","method":"GET","timeout":300},"assertions":[{"operator":"isNot","type":"statusCode","target":404}]},"options":{"device_ids":["tablet"],"tick_every":1800}},{"status":"paused","public_id":"ejt-g2j-uuy","tags":["test:synthetics_browser"],"locations":["aws:us-east-2"],"message":"Test - Browser","name":"Test with Browser","monitor_id":34425205,"type":"browser","created_at":"2021-04-26T05:56:30.147100+00:00","modified_at":"2021-04-26T05:56:30.147100+00:00","config":{"request":{"url":"https://example.com","method":"GET","timeout":300},"assertions":[{"operator":"is","type":"statusCode","target":200}]},"options":{"device_ids":["laptop_large"],"tick_every":900}},{"status":"live","public_id":"r3t-vey-zt8","tags":["test:synthetics_api"],"locations":["aws:us-east-2"],"message":"Test - API","name":"Test with API","monitor_id":34425207,"type":"api","created_at":"2021-04-26T05:56:32.213095+00:00","modified_at":"2021-04-26T05:56:32.213095+00:00","subtype":"http","config":{"request":{"url":"https://example.com","method":"GET","timeout":300},"assertions":[{"operator":"is","type":"statusCode","target":200}]},"options":{"tick_every":300}},{"status":"paused","public_id":"c2b-ftm-fbs","tags":["test:synthetics_browser"],"locations":["aws:us-east-2"],"message":"Test - Browser","name":"Test with Browser","monitor_id":34425208,"type":"browser","created_at":"2021-04-26T05:56:32.523956+00:00","modified_at":"2021-04-26T05:56:32.523956+00:00","config":{"request":{"url":"https://example.com","method":"GET","timeout":300},"assertions":[{"operator":"is","type":"statusCode","target":200}]},"options":{"device_ids":["laptop_large"],"tick_every":900}},{"status":"live","public_id":"bgn-sqz-iic","tags":["test:synthetics_api"],"locations":["aws:us-east-2"],"message":"Test - API","name":"Test with API","monitor_id":34425210,"type":"api","created_at":"2021-04-26T05:56:34.196196+00:00","modified_at":"2021-04-26T05:56:34.196196+00:00","subtype":"http","config":{"request":{"url":"https://example.com","method":"GET","timeout":300},"assertions":[{"operator":"is","type":"statusCode","target":200}]},"options":{"tick_every":300}},{"status":"paused","public_id":"4av-rns-ub8","tags":["test:synthetics_browser"],"locations":["aws:us-east-2"],"message":"Test - Browser","name":"Test with Browser","monitor_id":34425211,"type":"browser","created_at":"2021-04-26T05:56:34.906901+00:00","modified_at":"2021-04-26T05:56:34.906901+00:00","config":{"request":{"url":"https://example.com","method":"GET","timeout":300},"assertions":[{"operator":"is","type":"statusCode","target":200}]},"options":{"device_ids":["laptop_large"],"tick_every":900}},{"status":"live","public_id":"hvk-fn6-bn5","tags":["test:synthetics_api"],"locations":["aws:us-east-2"],"message":"Test - API","name":"Test with API","monitor_id":34425212,"type":"api","created_at":"2021-04-26T05:56:36.588029+00:00","modified_at":"2021-04-26T05:56:36.588029+00:00","subtype":"http","config":{"request":{"url":"https://example.com","method":"GET","timeout":300},"assertions":[{"operator":"is","type":"statusCode","target":200}]},"options":{"tick_every":300}},{"status":"paused","public_id":"rdd-nda-dpu","tags":["test:synthetics_browser"],"locations":["aws:us-east-2"],"message":"Test - Browser","name":"Test with Browser","monitor_id":34425213,"type":"browser","created_at":"2021-04-26T05:56:37.464056+00:00","modified_at":"2021-04-26T05:56:37.464056+00:00","config":{"request":{"url":"https://example.com","method":"GET","timeout":300},"assertions":[{"operator":"is","type":"statusCode","target":200}]},"options":{"device_ids":["laptop_large"],"tick_every":900}},{"status":"paused","public_id":"3fm-fr9-5hc","tags":["test:synthetics_browser"],"locations":["aws:us-east-2"],"message":"Test - Browser","name":"Test with Browser","monitor_id":34425215,"type":"browser","created_at":"2021-04-26T05:56:38.721649+00:00","modified_at":"2021-04-26T05:56:38.721649+00:00","config":{"request":{"url":"https://example.com","method":"GET","timeout":300},"assertions":[{"operator":"is","type":"statusCode","target":200}]},"options":{"device_ids":["laptop_large"],"tick_every":900}},{"status":"paused","public_id":"k3h-ww7-w85","tags":["test:edited"],"locations":["aws:us-west-2"],"message":"Test - Browser edited","name":"Test Browser edited","monitor_id":34426598,"type":"api","created_at":"2021-04-26T06:58:03.493140+00:00","modified_at":"2021-04-26T06:58:06.558958+00:00","subtype":"http","config":{"request":{"url":"https://example.com","method":"GET","timeout":300},"assertions":[{"operator":"isNot","type":"statusCode","target":404}]},"options":{"device_ids":["tablet"],"tick_every":1800}},{"status":"paused","public_id":"5ut-g6i-pcz","tags":["test:synthetics_browser"],"locations":["aws:us-east-2"],"message":"Test - Browser","name":"Test with Browser","monitor_id":34426599,"type":"browser","created_at":"2021-04-26T06:58:04.153024+00:00","modified_at":"2021-04-26T06:58:04.153024+00:00","config":{"request":{"url":"https://example.com","method":"GET","timeout":300},"assertions":[{"operator":"is","type":"statusCode","target":200}]},"options":{"device_ids":["laptop_large"],"tick_every":900}},{"status":"live","public_id":"7tk-9wu-9e2","tags":["test:synthetics_api"],"locations":["aws:us-east-2"],"message":"Test - API","name":"Test with API","monitor_id":34426600,"type":"api","created_at":"2021-04-26T06:58:07.514444+00:00","modified_at":"2021-04-26T06:58:07.514444+00:00","subtype":"http","config":{"request":{"url":"https://example.com","method":"GET","timeout":300},"assertions":[{"operator":"is","type":"statusCode","target":200}]},"options":{"tick_every":300}},{"status":"paused","public_id":"665-7pr-cm3","tags":["test:synthetics_browser"],"locations":["aws:us-east-2"],"message":"Test - Browser","name":"Test with Browser","monitor_id":34426602,"type":"browser","created_at":"2021-04-26T06:58:07.790640+00:00","modified_at":"2021-04-26T06:58:07.790640+00:00","config":{"request":{"url":"https://example.com","method":"GET","timeout":300},"assertions":[{"operator":"is","type":"statusCode","target":200}]},"options":{"device_ids":["laptop_large"],"tick_every":900}},{"status":"live","public_id":"6kr-kdz-a2b","tags":["test:synthetics_api"],"locations":["aws:us-east-2"],"message":"Test - API","name":"Test with API","monitor_id":34426603,"type":"api","created_at":"2021-04-26T06:58:09.685503+00:00","modified_at":"2021-04-26T06:58:09.685503+00:00","subtype":"http","config":{"request":{"url":"https://example.com","method":"GET","timeout":300},"assertions":[{"operator":"is","type":"statusCode","target":200}]},"options":{"tick_every":300}},{"status":"paused","public_id":"3dp-kp7-vx6","tags":["test:synthetics_browser"],"locations":["aws:us-east-2"],"message":"Test - Browser","name":"Test with Browser","monitor_id":34426605,"type":"browser","created_at":"2021-04-26T06:58:10.026449+00:00","modified_at":"2021-04-26T06:58:10.026449+00:00","config":{"request":{"url":"https://example.com","method":"GET","timeout":300},"assertions":[{"operator":"is","type":"statusCode","target":200}]},"options":{"device_ids":["laptop_large"],"tick_every":900}},{"status":"live","public_id":"pvi-zpa-tx5","tags":["test:synthetics_api"],"locations":["aws:us-east-2"],"message":"Test - API","name":"Test with API","monitor_id":34426606,"type":"api","created_at":"2021-04-26T06:58:11.013605+00:00","modified_at":"2021-04-26T06:58:11.013605+00:00","subtype":"http","config":{"request":{"url":"https://example.com","method":"GET","timeout":300},"assertions":[{"operator":"is","type":"statusCode","target":200}]},"options":{"tick_every":300}},{"status":"paused","public_id":"xf7-932-tug","tags":["test:synthetics_browser"],"locations":["aws:us-east-2"],"message":"Test - Browser","name":"Test with Browser","monitor_id":34426607,"type":"browser","created_at":"2021-04-26T06:58:11.311720+00:00","modified_at":"2021-04-26T06:58:11.311720+00:00","config":{"request":{"url":"https://example.com","method":"GET","timeout":300},"assertions":[{"operator":"is","type":"statusCode","target":200}]},"options":{"device_ids":["laptop_large"],"tick_every":900}},{"status":"paused","public_id":"d75-2ik-xx4","tags":["test:synthetics_browser"],"locations":["aws:us-east-2"],"message":"Test - Browser","name":"Test with Browser","monitor_id":34426609,"type":"browser","created_at":"2021-04-26T06:58:12.592894+00:00","modified_at":"2021-04-26T06:58:12.592894+00:00","config":{"request":{"url":"https://example.com","method":"GET","timeout":300},"assertions":[{"operator":"is","type":"statusCode","target":200}]},"options":{"device_ids":["laptop_large"],"tick_every":900}},{"status":"live","public_id":"ypx-r57-y7i","tags":["testing:api"],"locations":["aws:us-east-2"],"message":"testing - Synthetics API test - this is message","name":"java-updateTestSyntheticsErrorsTest-60462-1619444408","monitor_id":34446971,"type":"api","created_at":"2021-04-26T13:40:09.275651+00:00","modified_at":"2021-04-26T13:40:09.275651+00:00","subtype":"http","config":{"request":{"url":"https://datadoghq.com","headers":{"testingJavaClient":"true"},"method":"GET","timeout":10.0},"assertions":[{"operator":"is","property":"content-type","type":"header","target":"text/html"},{"operator":"lessThan","type":"responseTime","target":2000}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10.0},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"tick_every":60}},{"status":"live","public_id":"gjn-zbx-vrd","tags":["testing:api"],"locations":["aws:us-east-2"],"message":"Go - client testing Synthetics API test - this is message","name":"Test-Go-TestSyntheticsAPIMultistepTestEndpointLifecycle-1619482064","monitor_id":34474656,"type":"api","created_at":"2021-04-27T00:07:45.353747+00:00","modified_at":"2021-04-27T00:07:45.353747+00:00","subtype":"multi","config":{"steps":[{"name":"First - step","request":{"url":"https://datadoghq.com","headers":{"testingGoClient":"true"},"method":"GET","timeout":10},"subtype":"http","extractedValues":[{"field":"content-type","parser":{"type":"raw"},"type":"http_header","name":"EXTRACTED_VALUE"}],"id":"5pc-f88-bef","assertions":[]}],"assertions":[],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"tick_every":60}},{"status":"paused","public_id":"2tq-5pu-wqm","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedNewAssertionsOptions-60639-1619507394","monitor_id":34497306,"type":"api","created_at":"2021-04-27T07:09:55.307136+00:00","modified_at":"2021-04-27T07:09:55.307136+00:00","subtype":"http","config":{"request":{"body":"this - is a body","certificate":{"cert":{"filename":"Provided in Terraform config","updatedAt":"2021-04-27T07:09:55.054897+00:00"},"key":{"filename":"key","updatedAt":"2021-04-27T07:09:55.054874+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}},{"status":"paused","public_id":"4g2-xmy-4v2","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_BasicNewAssertionsOptions-60639-1619507394","monitor_id":34497307,"type":"api","created_at":"2021-04-27T07:09:55.355211+00:00","modified_at":"2021-04-27T07:09:55.355211+00:00","subtype":"http","config":{"request":{"body":"this - is a body","certificate":{"cert":{"filename":"Provided in Terraform config","updatedAt":"2021-04-27T07:09:55.064181+00:00"},"key":{"filename":"key","updatedAt":"2021-04-27T07:09:55.064157+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}},{"status":"paused","public_id":"nmp-8kb-ctk","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_importBasic-60640-1619507394","monitor_id":34497308,"type":"api","created_at":"2021-04-27T07:09:55.906051+00:00","modified_at":"2021-04-27T07:09:55.906051+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":{"follow_redirects":true,"retry":{"count":1,"interval":300},"min_location_failed":1,"allow_insecure":true,"tick_every":60}},{"status":"paused","public_id":"mvn-fjk-ubs","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_Updated-60639-1619507395","monitor_id":34497309,"type":"api","created_at":"2021-04-27T07:09:56.137392+00:00","modified_at":"2021-04-27T07:09:56.137392+00:00","subtype":"http","config":{"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","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},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":0,"tick_every":60}},{"status":"paused","public_id":"5zw-wsb-yx5","tags":["foo:bar","baz"],"locations":["aws:eu-central-1"],"message":"Notify - @datadog.user","name":"tf-TestAccDatadogSyntheticsAPITest_UpdatedDeprecated-60639-1619507395","monitor_id":34497310,"type":"api","created_at":"2021-04-27T07:09:56.249975+00:00","modified_at":"2021-04-27T07:09:56.249975+00:00","subtype":"http","config":{"request":{"body":"this - is a body","headers":{"Accept":"application/json","X-Datadog-Trace-ID":"1234566789"},"url":"https://www.datadoghq.com","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},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":0,"tick_every":60}},{"status":"live","public_id":"6q3-rsh-rfx","tags":["testing:api"],"locations":["aws:us-east-2"],"message":"Go - client testing Synthetics API test - this is message","name":"Test-TestSyntheticsMultipleTestsOperations-1619512645","monitor_id":34501133,"type":"api","created_at":"2021-04-27T08:37:26.347106+00:00","modified_at":"2021-04-27T08:37:26.347106+00:00","subtype":"http","config":{"request":{"url":"https://datadoghq.com","headers":{"testingGoClient":"true"},"certificate":{"cert":{"filename":"cert-filename","updatedAt":"2021-04-27T08:37:26.265192+00:00"},"key":{"filename":"key-filename","updatedAt":"2021-04-27T08:37:26.265168+00:00"}},"method":"GET","timeout":10},"assertions":[{"operator":"is","property":"{{ - PROPERTY }}","type":"header","target":"text/html"},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"tick_every":60}},{"status":"paused","public_id":"6yq-cjp-yt5","tags":["testing:browser"],"locations":["aws:us-east-2"],"message":"Go - client testing Synthetics Browser test - this is message","name":"Test-TestSyntheticsMultipleTestsOperations-1619512645","monitor_id":34501134,"type":"browser","created_at":"2021-04-27T08:37:27.367989+00:00","modified_at":"2021-04-27T08:37:27.367989+00:00","config":{"setCookie":"name:test","request":{"url":"https://datadoghq.com","method":"GET"},"assertions":[]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"noScreenshot":true,"disableCors":true,"device_ids":["tablet"],"tick_every":300}}]}' + body: '{"tests":[{"status":"live","public_id":"q36-ruq-6dk","tags":["foo:bar","foo","env:test"],"locations":["aws:eu-central-1"],"message":"Notify + @pagerduty","name":"An API test on example.org","monitor_id":35414765,"type":"api","created_at":"2021-05-14T09:15:16.774112+00:00","modified_at":"2021-05-14T09:15:16.774112+00:00","subtype":"http","config":{"request":{"url":"https://www.example.org","headers":{"Authentication":"Token: + 1234566789","Content-Type":"application/json"},"method":"GET","timeout":5},"assertions":[{"operator":"is","type":"statusCode","target":200}],"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":2,"interval":300},"min_location_failed":1,"tick_every":900}},{"status":"live","public_id":"qs9-d8s-h23","tags":["tags_example"],"locations":["aws:ap-northeast-1"],"message":"message_example","name":"name_example","monitor_id":35414840,"type":"api","created_at":"2021-05-14T09:18:54.535318+00:00","modified_at":"2021-05-14T09:18:54.535318+00:00","subtype":"http","config":{"request":{"body":"body_example","certificate":{"cert":{"filename":"filename_example","updatedAt":"2021-05-14T09:18:54.455916+00:00"},"key":{"filename":"filename_example","updatedAt":"2021-05-14T09:18:54.455889+00:00"}},"url":"http://doesngothere.com/fh","basicAuth":{"username":"","password":""},"headers":{"key":"key_example"},"host":"host_example","timeout":3.0,"method":"GET"},"steps":[{"name":"name_example","request":{"body":"body_example","certificate":{"cert":{"filename":"filename_example","updatedAt":"2021-05-14T09:18:54.455934+00:00"},"key":{"filename":"filename_example","updatedAt":"2021-05-14T09:18:54.455927+00:00"}},"url":"url_example","basicAuth":{"username":"","password":""},"host":"host_example","timeout":3.0,"method":"GET"},"subtype":"http","allowFailure":true,"assertions":[],"isCritical":true,"extractedValues":[{"field":"content-type","parser":{"type":"raw","value":"value_example"},"type":"http_body","name":"name_example"}]}],"assertions":[{"operator":"is","type":"statusCode","target":200}],"configVariables":[{"pattern":"pattern_example","type":"text","example":"example_example","name":"VARIABLE_NAME"}]},"options":{"accept_self_signed":true,"retry":{"count":1,"interval":3.0},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":1,"noScreenshot":true,"monitor_options":{"notify_audit":false,"locked":false,"include_tags":true,"new_host_delay":300,"notify_no_data":false,"renotify_interval":0},"disableCors":true,"device_ids":["laptop_large"],"tick_every":30}},{"status":"live","public_id":"cvm-gca-4iu","tags":["testing:api"],"locations":["aws:us-east-2"],"message":"Go + client testing Synthetics API test - this is message","name":"Test-TestSyntheticsMultipleTestsOperations-1620984185","monitor_id":35414944,"type":"api","created_at":"2021-05-14T09:23:06.514169+00:00","modified_at":"2021-05-14T09:23:06.514169+00:00","subtype":"http","config":{"request":{"url":"https://datadoghq.com","headers":{"testingGoClient":"true"},"certificate":{"cert":{"filename":"cert-filename","updatedAt":"2021-05-14T09:23:06.376064+00:00"},"key":{"filename":"key-filename","updatedAt":"2021-05-14T09:23:06.376039+00:00"}},"method":"GET","timeout":10},"assertions":[{"operator":"is","property":"{{ + PROPERTY }}","type":"header","target":"text/html"},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"tick_every":60}},{"status":"paused","public_id":"suf-d4v-j7f","tags":["testing:browser"],"locations":["aws:us-east-2"],"message":"Go + client testing Synthetics Browser test - this is message","name":"Test-TestSyntheticsMultipleTestsOperations-1620984185","monitor_id":35414945,"type":"browser","created_at":"2021-05-14T09:23:06.792315+00:00","modified_at":"2021-05-14T09:23:06.792315+00:00","config":{"setCookie":"name:test","request":{"url":"https://datadoghq.com","method":"GET"},"assertions":[]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"noScreenshot":true,"disableCors":true,"device_ids":["tablet"],"tick_every":300}}]}' headers: Cache-Control: - no-cache @@ -212,7 +151,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Apr 2021 08:37:27 GMT + - Fri, 14 May 2021 09:23:07 GMT Pragma: - no-cache Strict-Transport-Security: @@ -222,9 +161,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - JpIJLwIH2nFlZOC+u71rq7aAOL43MLZN3MUsL+gpYHdZz5QLUOG8Jysf8kVK6tPU + - nLnnBNvlCFDECRnZvzDb0z4sAO35G+IMidcAs8vrCKyjvsKWE8Yd9S3n6OjZ1qRN X-Dd-Version: - - "35.4397207" + - "35.4528823" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -234,13 +173,13 @@ interactions: X-Ratelimit-Remaining: - "119" X-Ratelimit-Reset: - - "33" + - "54" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["6yq-cjp-yt5"]} + {"public_ids":["suf-d4v-j7f"]} form: {} headers: Accept: @@ -250,17 +189,17 @@ interactions: Dd-Operation-Id: - DeleteTests User-Agent: - - datadog-api-client-go/1.0.0-beta.20+dev (go go1.16.3; os linux; arch amd64) + - datadog-api-client-go/1.0.0-beta.22+dev (go go1.15.7; os darwin; arch amd64) X-Datadog-Parent-Id: - - "6943490976625511751" + - "5231271023547725807" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "3444615562244543820" + - "5680212470042573391" url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2021-04-27T08:37:27.713786+00:00","public_id":"6yq-cjp-yt5"}]}' + body: '{"deleted_tests":[{"deleted_at":"2021-05-14T09:23:07.171243+00:00","public_id":"suf-d4v-j7f"}]}' headers: Cache-Control: - no-cache @@ -269,7 +208,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Apr 2021 08:37:27 GMT + - Fri, 14 May 2021 09:23:07 GMT Pragma: - no-cache Strict-Transport-Security: @@ -279,9 +218,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - twvpGlmuom5y6A0pjGtXzTf554cmwJgTcCZ71fK4H/RDi+v5ehBK0zQiRcTJQG5C + - dCmL/3rURV6BPeaqeP3Rxigq41m5CAb17XjrRE42uZ01zpr07HVhbL5/3TWMkvgu X-Dd-Version: - - "35.4397207" + - "35.4528823" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -289,15 +228,15 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "115" + - "119" X-Ratelimit-Reset: - - "33" + - "53" status: 200 OK code: 200 duration: "" - request: body: | - {"public_ids":["6q3-rsh-rfx"]} + {"public_ids":["cvm-gca-4iu"]} form: {} headers: Accept: @@ -307,17 +246,17 @@ interactions: Dd-Operation-Id: - DeleteTests User-Agent: - - datadog-api-client-go/1.0.0-beta.20+dev (go go1.16.3; os linux; arch amd64) + - datadog-api-client-go/1.0.0-beta.22+dev (go go1.15.7; os darwin; arch amd64) X-Datadog-Parent-Id: - - "15897173352368075" + - "6819854674177803092" X-Datadog-Sampling-Priority: - "1" X-Datadog-Trace-Id: - - "3444615562244543820" + - "5680212470042573391" url: https://api.datadoghq.com/api/v1/synthetics/tests/delete method: POST response: - body: '{"deleted_tests":[{"deleted_at":"2021-04-27T08:37:27.946147+00:00","public_id":"6q3-rsh-rfx"}]}' + body: '{"deleted_tests":[{"deleted_at":"2021-05-14T09:23:07.887900+00:00","public_id":"cvm-gca-4iu"}]}' headers: Cache-Control: - no-cache @@ -326,7 +265,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Apr 2021 08:37:28 GMT + - Fri, 14 May 2021 09:23:07 GMT Pragma: - no-cache Strict-Transport-Security: @@ -336,9 +275,9 @@ interactions: X-Content-Type-Options: - nosniff X-Dd-Debug: - - bgHykj7A9bfZx0Y5ZO3swhhp5tGUSNJHqFWR868+qg087CYrDOd5hQslC+noiEtH + - nLnnBNvlCFDECRnZvzDb0z4sAO35G+IMidcAs8vrCKyjvsKWE8Yd9S3n6OjZ1qRN X-Dd-Version: - - "35.4397207" + - "35.4528823" X-Frame-Options: - SAMEORIGIN X-Ratelimit-Limit: @@ -346,9 +285,9 @@ interactions: X-Ratelimit-Period: - "60" X-Ratelimit-Remaining: - - "114" + - "118" X-Ratelimit-Reset: - - "33" + - "53" status: 200 OK code: 200 duration: "" From bf545c1135b705a4e0c58169f4bd08b99658f0f4 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 14 May 2021 12:58:55 +0000 Subject: [PATCH 2/2] Regenerate client from commit 8dce4be of spec repo --- .apigentools-info | 8 +-- api/v1/datadog/api/openapi.yaml | 8 ++- api/v1/datadog/docs/SyntheticsAPITest.md | 4 +- api/v1/datadog/docs/SyntheticsApi.md | 4 +- api/v1/datadog/docs/SyntheticsBrowserTest.md | 4 +- .../docs/SyntheticsGlobalVariableValue.md | 9 ++- api/v1/datadog/docs/SyntheticsTestDetails.md | 4 +- .../model_synthetics_global_variable_value.go | 58 +++++++------------ .../v1/datadog/features/synthetics.feature | 24 ++++---- 9 files changed, 57 insertions(+), 66 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index a96f0991556..9731382beb7 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.4.1.dev6", - "regenerated": "2021-05-14 07:20:15.237082", - "spec_repo_commit": "cc429de" + "regenerated": "2021-05-14 12:57:54.828603", + "spec_repo_commit": "8dce4be" }, "v2": { "apigentools_version": "1.4.1.dev6", - "regenerated": "2021-05-14 07:21:29.333035", - "spec_repo_commit": "cc429de" + "regenerated": "2021-05-14 12:58:52.756713", + "spec_repo_commit": "8dce4be" } } } \ No newline at end of file diff --git a/api/v1/datadog/api/openapi.yaml b/api/v1/datadog/api/openapi.yaml index 1eb173809a5..89aa8ee981e 100644 --- a/api/v1/datadog/api/openapi.yaml +++ b/api/v1/datadog/api/openapi.yaml @@ -19038,6 +19038,7 @@ components: monitor_id: description: The associated monitor ID. format: int64 + readOnly: true type: integer name: description: Name of the test. @@ -19046,6 +19047,7 @@ components: $ref: '#/components/schemas/SyntheticsTestOptions' public_id: description: The public ID for the test. + readOnly: true type: string status: $ref: '#/components/schemas/SyntheticsTestPauseStatus' @@ -19712,6 +19714,7 @@ components: monitor_id: description: The associated monitor ID. format: int64 + readOnly: true type: integer name: description: Name of the test. @@ -19720,6 +19723,7 @@ components: $ref: '#/components/schemas/SyntheticsTestOptions' public_id: description: The public ID of the test. + readOnly: true type: string status: $ref: '#/components/schemas/SyntheticsTestPauseStatus' @@ -20706,8 +20710,6 @@ components: the value will not be present if the variable is secure. example: example-value type: string - required: - - value type: object SyntheticsListTestsResponse: description: Object containing an array of Synthetic tests configuration. @@ -21447,6 +21449,7 @@ components: monitor_id: description: The associated monitor ID. format: int64 + readOnly: true type: integer name: description: Name of the test. @@ -21455,6 +21458,7 @@ components: $ref: '#/components/schemas/SyntheticsTestOptions' public_id: description: The test public ID. + readOnly: true type: string status: $ref: '#/components/schemas/SyntheticsTestPauseStatus' diff --git a/api/v1/datadog/docs/SyntheticsAPITest.md b/api/v1/datadog/docs/SyntheticsAPITest.md index 9281205b02f..063c2ca9285 100644 --- a/api/v1/datadog/docs/SyntheticsAPITest.md +++ b/api/v1/datadog/docs/SyntheticsAPITest.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes **Config** | Pointer to [**SyntheticsAPITestConfig**](SyntheticsAPITestConfig.md) | | [optional] **Locations** | Pointer to **[]string** | Array of locations used to run the test. | [optional] **Message** | Pointer to **string** | Notification message associated with the test. | [optional] -**MonitorId** | Pointer to **int64** | The associated monitor ID. | [optional] +**MonitorId** | Pointer to **int64** | The associated monitor ID. | [optional] [readonly] **Name** | Pointer to **string** | Name of the test. | [optional] **Options** | Pointer to [**SyntheticsTestOptions**](SyntheticsTestOptions.md) | | [optional] -**PublicId** | Pointer to **string** | The public ID for the test. | [optional] +**PublicId** | Pointer to **string** | The public ID for the test. | [optional] [readonly] **Status** | Pointer to [**SyntheticsTestPauseStatus**](SyntheticsTestPauseStatus.md) | | [optional] **Subtype** | Pointer to [**SyntheticsTestDetailsSubType**](SyntheticsTestDetailsSubType.md) | | [optional] **Tags** | Pointer to **[]string** | Array of tags attached to the test. | [optional] diff --git a/api/v1/datadog/docs/SyntheticsApi.md b/api/v1/datadog/docs/SyntheticsApi.md index ad47272b74c..a636af8869f 100644 --- a/api/v1/datadog/docs/SyntheticsApi.md +++ b/api/v1/datadog/docs/SyntheticsApi.md @@ -53,7 +53,7 @@ import ( func main() { ctx := datadog.NewDefaultContext(context.Background()) - body := *datadog.NewSyntheticsGlobalVariable("Example description", "MY_VARIABLE", []string{"Tags_example"}, *datadog.NewSyntheticsGlobalVariableValue("example-value")) // SyntheticsGlobalVariable | Details of the global variable to create. + body := *datadog.NewSyntheticsGlobalVariable("Example description", "MY_VARIABLE", []string{"Tags_example"}, *datadog.NewSyntheticsGlobalVariableValue()) // SyntheticsGlobalVariable | Details of the global variable to create. configuration := datadog.NewConfiguration() @@ -536,7 +536,7 @@ func main() { ctx := datadog.NewDefaultContext(context.Background()) variableId := "variableId_example" // string | The ID of the global variable. - body := *datadog.NewSyntheticsGlobalVariable("Example description", "MY_VARIABLE", []string{"Tags_example"}, *datadog.NewSyntheticsGlobalVariableValue("example-value")) // SyntheticsGlobalVariable | Details of the global variable to update. + body := *datadog.NewSyntheticsGlobalVariable("Example description", "MY_VARIABLE", []string{"Tags_example"}, *datadog.NewSyntheticsGlobalVariableValue()) // SyntheticsGlobalVariable | Details of the global variable to update. configuration := datadog.NewConfiguration() diff --git a/api/v1/datadog/docs/SyntheticsBrowserTest.md b/api/v1/datadog/docs/SyntheticsBrowserTest.md index cae9fc59d5b..77e16c17165 100644 --- a/api/v1/datadog/docs/SyntheticsBrowserTest.md +++ b/api/v1/datadog/docs/SyntheticsBrowserTest.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes **Config** | Pointer to [**SyntheticsBrowserTestConfig**](SyntheticsBrowserTestConfig.md) | | [optional] **Locations** | Pointer to **[]string** | Array of locations used to run the test. | [optional] **Message** | **string** | Notification message associated with the test. Message can either be text or an empty string. | -**MonitorId** | Pointer to **int64** | The associated monitor ID. | [optional] +**MonitorId** | Pointer to **int64** | The associated monitor ID. | [optional] [readonly] **Name** | Pointer to **string** | Name of the test. | [optional] **Options** | Pointer to [**SyntheticsTestOptions**](SyntheticsTestOptions.md) | | [optional] -**PublicId** | Pointer to **string** | The public ID of the test. | [optional] +**PublicId** | Pointer to **string** | The public ID of the test. | [optional] [readonly] **Status** | Pointer to [**SyntheticsTestPauseStatus**](SyntheticsTestPauseStatus.md) | | [optional] **Steps** | Pointer to [**[]SyntheticsStep**](SyntheticsStep.md) | The steps of the test. | [optional] **Tags** | Pointer to **[]string** | Array of tags attached to the test. | [optional] diff --git a/api/v1/datadog/docs/SyntheticsGlobalVariableValue.md b/api/v1/datadog/docs/SyntheticsGlobalVariableValue.md index 029abe5a63c..fe5e3b98ea1 100644 --- a/api/v1/datadog/docs/SyntheticsGlobalVariableValue.md +++ b/api/v1/datadog/docs/SyntheticsGlobalVariableValue.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ---- | ---- | ----------- | ------ **Secure** | Pointer to **bool** | Determines if the variable is secure. | [optional] -**Value** | **string** | Value of the global variable. When reading a global variable, the value will not be present if the variable is secure. | +**Value** | Pointer to **string** | Value of the global variable. When reading a global variable, the value will not be present if the variable is secure. | [optional] ## Methods ### NewSyntheticsGlobalVariableValue -`func NewSyntheticsGlobalVariableValue(value string, ) *SyntheticsGlobalVariableValue` +`func NewSyntheticsGlobalVariableValue() *SyntheticsGlobalVariableValue` NewSyntheticsGlobalVariableValue instantiates a new SyntheticsGlobalVariableValue object This constructor will assign default values to properties that have it defined, @@ -70,6 +70,11 @@ and a boolean to check if the value has been set. SetValue sets Value field to given value. +### HasValue + +`func (o *SyntheticsGlobalVariableValue) HasValue() bool` + +HasValue returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/v1/datadog/docs/SyntheticsTestDetails.md b/api/v1/datadog/docs/SyntheticsTestDetails.md index 259c8fa77f6..5ff03c27f4a 100644 --- a/api/v1/datadog/docs/SyntheticsTestDetails.md +++ b/api/v1/datadog/docs/SyntheticsTestDetails.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes **Config** | Pointer to [**SyntheticsTestConfig**](SyntheticsTestConfig.md) | | [optional] **Locations** | Pointer to **[]string** | Array of locations used to run the test. | [optional] **Message** | Pointer to **string** | Notification message associated with the test. | [optional] -**MonitorId** | Pointer to **int64** | The associated monitor ID. | [optional] +**MonitorId** | Pointer to **int64** | The associated monitor ID. | [optional] [readonly] **Name** | Pointer to **string** | Name of the test. | [optional] **Options** | Pointer to [**SyntheticsTestOptions**](SyntheticsTestOptions.md) | | [optional] -**PublicId** | Pointer to **string** | The test public ID. | [optional] +**PublicId** | Pointer to **string** | The test public ID. | [optional] [readonly] **Status** | Pointer to [**SyntheticsTestPauseStatus**](SyntheticsTestPauseStatus.md) | | [optional] **Steps** | Pointer to [**[]SyntheticsStep**](SyntheticsStep.md) | For browser test, the steps of the test. | [optional] **Subtype** | Pointer to [**SyntheticsTestDetailsSubType**](SyntheticsTestDetailsSubType.md) | | [optional] diff --git a/api/v1/datadog/model_synthetics_global_variable_value.go b/api/v1/datadog/model_synthetics_global_variable_value.go index d9db53d487c..27df464016c 100644 --- a/api/v1/datadog/model_synthetics_global_variable_value.go +++ b/api/v1/datadog/model_synthetics_global_variable_value.go @@ -10,7 +10,6 @@ package datadog import ( "encoding/json" - "fmt" ) // SyntheticsGlobalVariableValue Value of the global variable. @@ -18,16 +17,15 @@ type SyntheticsGlobalVariableValue struct { // Determines if the variable is secure. Secure *bool `json:"secure,omitempty"` // Value of the global variable. When reading a global variable, the value will not be present if the variable is secure. - Value string `json:"value"` + Value *string `json:"value,omitempty"` } // NewSyntheticsGlobalVariableValue instantiates a new SyntheticsGlobalVariableValue object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewSyntheticsGlobalVariableValue(value string) *SyntheticsGlobalVariableValue { +func NewSyntheticsGlobalVariableValue() *SyntheticsGlobalVariableValue { this := SyntheticsGlobalVariableValue{} - this.Value = value return &this } @@ -71,28 +69,36 @@ func (o *SyntheticsGlobalVariableValue) SetSecure(v bool) { o.Secure = &v } -// GetValue returns the Value field value +// GetValue returns the Value field value if set, zero value otherwise. func (o *SyntheticsGlobalVariableValue) GetValue() string { - if o == nil { + if o == nil || o.Value == nil { var ret string return ret } - - return o.Value + return *o.Value } -// GetValueOk returns a tuple with the Value field value +// GetValueOk returns a tuple with the Value field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SyntheticsGlobalVariableValue) GetValueOk() (*string, bool) { - if o == nil { + if o == nil || o.Value == nil { return nil, false } - return &o.Value, true + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *SyntheticsGlobalVariableValue) HasValue() bool { + if o != nil && o.Value != nil { + return true + } + + return false } -// SetValue sets field value +// SetValue gets a reference to the given string and assigns it to the Value field. func (o *SyntheticsGlobalVariableValue) SetValue(v string) { - o.Value = v + o.Value = &v } func (o SyntheticsGlobalVariableValue) MarshalJSON() ([]byte, error) { @@ -100,36 +106,12 @@ func (o SyntheticsGlobalVariableValue) MarshalJSON() ([]byte, error) { if o.Secure != nil { toSerialize["secure"] = o.Secure } - if true { + if o.Value != nil { toSerialize["value"] = o.Value } return json.Marshal(toSerialize) } -func (o *SyntheticsGlobalVariableValue) UnmarshalJSON(bytes []byte) (err error) { - required := struct { - Value *string `json:"value"` - }{} - all := struct { - Secure *bool `json:"secure,omitempty"}` - Value string `json:"value"}` - }{} - err = json.Unmarshal(bytes, &required) - if err != nil { - return err - } - if required.Value == nil { - return fmt.Errorf("Required field value missing") - } - err = json.Unmarshal(bytes, &all) - if err != nil { - return err - } - o.Secure = all.Secure - o.Value = all.Value - return nil -} - type NullableSyntheticsGlobalVariableValue struct { value *SyntheticsGlobalVariableValue isSet bool diff --git a/tests/api/v1/datadog/features/synthetics.feature b/tests/api/v1/datadog/features/synthetics.feature index 84777b44f1a..f861e3a1cb2 100644 --- a/tests/api/v1/datadog/features/synthetics.feature +++ b/tests/api/v1/datadog/features/synthetics.feature @@ -18,21 +18,21 @@ Feature: Synthetics @generated @skip Scenario: Create a browser test returns "- JSON format is wrong" response Given new "CreateSyntheticsBrowserTest" request - And body with value {"config": {"assertions": [], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "setCookie": null, "variables": [{"example": null, "id": null, "name": "VARIABLE_NAME", "pattern": null, "type": "element"}]}, "locations": [null], "message": "", "monitor_id": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "public_id": null, "status": "live", "steps": [{"allowFailure": null, "name": null, "params": null, "timeout": null, "type": "assertCurrentUrl"}], "tags": [null], "type": "browser"} + And body with value {"config": {"assertions": [], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "setCookie": null, "variables": [{"example": null, "id": null, "name": "VARIABLE_NAME", "pattern": null, "type": "element"}]}, "locations": [null], "message": "", "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "status": "live", "steps": [{"allowFailure": null, "name": null, "params": null, "timeout": null, "type": "assertCurrentUrl"}], "tags": [null], "type": "browser"} When the request is sent Then the response status is 400 - JSON format is wrong @generated @skip Scenario: Create a browser test returns "OK - Returns the created test details." response Given new "CreateSyntheticsBrowserTest" request - And body with value {"config": {"assertions": [], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "setCookie": null, "variables": [{"example": null, "id": null, "name": "VARIABLE_NAME", "pattern": null, "type": "element"}]}, "locations": [null], "message": "", "monitor_id": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "public_id": null, "status": "live", "steps": [{"allowFailure": null, "name": null, "params": null, "timeout": null, "type": "assertCurrentUrl"}], "tags": [null], "type": "browser"} + And body with value {"config": {"assertions": [], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "setCookie": null, "variables": [{"example": null, "id": null, "name": "VARIABLE_NAME", "pattern": null, "type": "element"}]}, "locations": [null], "message": "", "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "status": "live", "steps": [{"allowFailure": null, "name": null, "params": null, "timeout": null, "type": "assertCurrentUrl"}], "tags": [null], "type": "browser"} When the request is sent Then the response status is 200 OK - Returns the created test details. @generated @skip Scenario: Create a browser test returns "Test quota is reached" response Given new "CreateSyntheticsBrowserTest" request - And body with value {"config": {"assertions": [], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "setCookie": null, "variables": [{"example": null, "id": null, "name": "VARIABLE_NAME", "pattern": null, "type": "element"}]}, "locations": [null], "message": "", "monitor_id": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "public_id": null, "status": "live", "steps": [{"allowFailure": null, "name": null, "params": null, "timeout": null, "type": "assertCurrentUrl"}], "tags": [null], "type": "browser"} + And body with value {"config": {"assertions": [], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "setCookie": null, "variables": [{"example": null, "id": null, "name": "VARIABLE_NAME", "pattern": null, "type": "element"}]}, "locations": [null], "message": "", "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "status": "live", "steps": [{"allowFailure": null, "name": null, "params": null, "timeout": null, "type": "assertCurrentUrl"}], "tags": [null], "type": "browser"} When the request is sent Then the response status is 402 Test quota is reached @@ -74,21 +74,21 @@ Feature: Synthetics @generated @skip Scenario: Create an API test returns "- JSON format is wrong" response Given new "CreateSyntheticsAPITest" request - And body with value {"config": {"assertions": [], "configVariables": [{"example": null, "name": "VARIABLE_NAME", "pattern": null, "type": "text"}], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "steps": [{"allowFailure": null, "assertions": [], "extractedValues": [{"field": "content-type", "name": null, "parser": {"type": "regex", "value": ".*"}, "type": "http_body"}], "isCritical": null, "name": null, "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "subtype": "http"}]}, "locations": [null], "message": null, "monitor_id": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "public_id": null, "status": "live", "subtype": "http", "tags": [null], "type": "api"} + And body with value {"config": {"assertions": [], "configVariables": [{"example": null, "name": "VARIABLE_NAME", "pattern": null, "type": "text"}], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "steps": [{"allowFailure": null, "assertions": [], "extractedValues": [{"field": "content-type", "name": null, "parser": {"type": "regex", "value": ".*"}, "type": "http_body"}], "isCritical": null, "name": null, "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "subtype": "http"}]}, "locations": [null], "message": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "status": "live", "subtype": "http", "tags": [null], "type": "api"} When the request is sent Then the response status is 400 - JSON format is wrong @generated @skip Scenario: Create an API test returns "OK - Returns the created test details." response Given new "CreateSyntheticsAPITest" request - And body with value {"config": {"assertions": [], "configVariables": [{"example": null, "name": "VARIABLE_NAME", "pattern": null, "type": "text"}], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "steps": [{"allowFailure": null, "assertions": [], "extractedValues": [{"field": "content-type", "name": null, "parser": {"type": "regex", "value": ".*"}, "type": "http_body"}], "isCritical": null, "name": null, "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "subtype": "http"}]}, "locations": [null], "message": null, "monitor_id": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "public_id": null, "status": "live", "subtype": "http", "tags": [null], "type": "api"} + And body with value {"config": {"assertions": [], "configVariables": [{"example": null, "name": "VARIABLE_NAME", "pattern": null, "type": "text"}], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "steps": [{"allowFailure": null, "assertions": [], "extractedValues": [{"field": "content-type", "name": null, "parser": {"type": "regex", "value": ".*"}, "type": "http_body"}], "isCritical": null, "name": null, "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "subtype": "http"}]}, "locations": [null], "message": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "status": "live", "subtype": "http", "tags": [null], "type": "api"} When the request is sent Then the response status is 200 OK - Returns the created test details. @generated @skip Scenario: Create an API test returns "Test quota is reached" response Given new "CreateSyntheticsAPITest" request - And body with value {"config": {"assertions": [], "configVariables": [{"example": null, "name": "VARIABLE_NAME", "pattern": null, "type": "text"}], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "steps": [{"allowFailure": null, "assertions": [], "extractedValues": [{"field": "content-type", "name": null, "parser": {"type": "regex", "value": ".*"}, "type": "http_body"}], "isCritical": null, "name": null, "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "subtype": "http"}]}, "locations": [null], "message": null, "monitor_id": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "public_id": null, "status": "live", "subtype": "http", "tags": [null], "type": "api"} + And body with value {"config": {"assertions": [], "configVariables": [{"example": null, "name": "VARIABLE_NAME", "pattern": null, "type": "text"}], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "steps": [{"allowFailure": null, "assertions": [], "extractedValues": [{"field": "content-type", "name": null, "parser": {"type": "regex", "value": ".*"}, "type": "http_body"}], "isCritical": null, "name": null, "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "subtype": "http"}]}, "locations": [null], "message": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "status": "live", "subtype": "http", "tags": [null], "type": "api"} When the request is sent Then the response status is 402 Test quota is reached @@ -152,7 +152,7 @@ Feature: Synthetics Scenario: Edit a browser test returns "- JSON format is wrong" response Given new "UpdateBrowserTest" request And request contains "public_id" parameter from "" - And body with value {"config": {"assertions": [], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "setCookie": null, "variables": [{"example": null, "id": null, "name": "VARIABLE_NAME", "pattern": null, "type": "element"}]}, "locations": [null], "message": "", "monitor_id": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "public_id": null, "status": "live", "steps": [{"allowFailure": null, "name": null, "params": null, "timeout": null, "type": "assertCurrentUrl"}], "tags": [null], "type": "browser"} + And body with value {"config": {"assertions": [], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "setCookie": null, "variables": [{"example": null, "id": null, "name": "VARIABLE_NAME", "pattern": null, "type": "element"}]}, "locations": [null], "message": "", "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "status": "live", "steps": [{"allowFailure": null, "name": null, "params": null, "timeout": null, "type": "assertCurrentUrl"}], "tags": [null], "type": "browser"} When the request is sent Then the response status is 400 - JSON format is wrong @@ -160,7 +160,7 @@ Feature: Synthetics Scenario: Edit a browser test returns "- Synthetic Monitoring is not activated for the user" response Given new "UpdateBrowserTest" request And request contains "public_id" parameter from "" - And body with value {"config": {"assertions": [], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "setCookie": null, "variables": [{"example": null, "id": null, "name": "VARIABLE_NAME", "pattern": null, "type": "element"}]}, "locations": [null], "message": "", "monitor_id": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "public_id": null, "status": "live", "steps": [{"allowFailure": null, "name": null, "params": null, "timeout": null, "type": "assertCurrentUrl"}], "tags": [null], "type": "browser"} + And body with value {"config": {"assertions": [], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "setCookie": null, "variables": [{"example": null, "id": null, "name": "VARIABLE_NAME", "pattern": null, "type": "element"}]}, "locations": [null], "message": "", "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "status": "live", "steps": [{"allowFailure": null, "name": null, "params": null, "timeout": null, "type": "assertCurrentUrl"}], "tags": [null], "type": "browser"} When the request is sent Then the response status is 404 - Synthetic Monitoring is not activated for the user @@ -168,7 +168,7 @@ Feature: Synthetics Scenario: Edit a browser test returns "OK" response Given new "UpdateBrowserTest" request And request contains "public_id" parameter from "" - And body with value {"config": {"assertions": [], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "setCookie": null, "variables": [{"example": null, "id": null, "name": "VARIABLE_NAME", "pattern": null, "type": "element"}]}, "locations": [null], "message": "", "monitor_id": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "public_id": null, "status": "live", "steps": [{"allowFailure": null, "name": null, "params": null, "timeout": null, "type": "assertCurrentUrl"}], "tags": [null], "type": "browser"} + And body with value {"config": {"assertions": [], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "setCookie": null, "variables": [{"example": null, "id": null, "name": "VARIABLE_NAME", "pattern": null, "type": "element"}]}, "locations": [null], "message": "", "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "status": "live", "steps": [{"allowFailure": null, "name": null, "params": null, "timeout": null, "type": "assertCurrentUrl"}], "tags": [null], "type": "browser"} When the request is sent Then the response status is 200 OK @@ -208,7 +208,7 @@ Feature: Synthetics Scenario: Edit an API test returns "- JSON format is wrong" response Given new "UpdateAPITest" request And request contains "public_id" parameter from "" - And body with value {"config": {"assertions": [], "configVariables": [{"example": null, "name": "VARIABLE_NAME", "pattern": null, "type": "text"}], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "steps": [{"allowFailure": null, "assertions": [], "extractedValues": [{"field": "content-type", "name": null, "parser": {"type": "regex", "value": ".*"}, "type": "http_body"}], "isCritical": null, "name": null, "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "subtype": "http"}]}, "locations": [null], "message": null, "monitor_id": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "public_id": null, "status": "live", "subtype": "http", "tags": [null], "type": "api"} + And body with value {"config": {"assertions": [], "configVariables": [{"example": null, "name": "VARIABLE_NAME", "pattern": null, "type": "text"}], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "steps": [{"allowFailure": null, "assertions": [], "extractedValues": [{"field": "content-type", "name": null, "parser": {"type": "regex", "value": ".*"}, "type": "http_body"}], "isCritical": null, "name": null, "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "subtype": "http"}]}, "locations": [null], "message": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "status": "live", "subtype": "http", "tags": [null], "type": "api"} When the request is sent Then the response status is 400 - JSON format is wrong @@ -216,7 +216,7 @@ Feature: Synthetics Scenario: Edit an API test returns "- Synthetic Monitoring is not activated for the user" response Given new "UpdateAPITest" request And request contains "public_id" parameter from "" - And body with value {"config": {"assertions": [], "configVariables": [{"example": null, "name": "VARIABLE_NAME", "pattern": null, "type": "text"}], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "steps": [{"allowFailure": null, "assertions": [], "extractedValues": [{"field": "content-type", "name": null, "parser": {"type": "regex", "value": ".*"}, "type": "http_body"}], "isCritical": null, "name": null, "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "subtype": "http"}]}, "locations": [null], "message": null, "monitor_id": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "public_id": null, "status": "live", "subtype": "http", "tags": [null], "type": "api"} + And body with value {"config": {"assertions": [], "configVariables": [{"example": null, "name": "VARIABLE_NAME", "pattern": null, "type": "text"}], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "steps": [{"allowFailure": null, "assertions": [], "extractedValues": [{"field": "content-type", "name": null, "parser": {"type": "regex", "value": ".*"}, "type": "http_body"}], "isCritical": null, "name": null, "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "subtype": "http"}]}, "locations": [null], "message": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "status": "live", "subtype": "http", "tags": [null], "type": "api"} When the request is sent Then the response status is 404 - Synthetic Monitoring is not activated for the user @@ -224,7 +224,7 @@ Feature: Synthetics Scenario: Edit an API test returns "OK" response Given new "UpdateAPITest" request And request contains "public_id" parameter from "" - And body with value {"config": {"assertions": [], "configVariables": [{"example": null, "name": "VARIABLE_NAME", "pattern": null, "type": "text"}], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "steps": [{"allowFailure": null, "assertions": [], "extractedValues": [{"field": "content-type", "name": null, "parser": {"type": "regex", "value": ".*"}, "type": "http_body"}], "isCritical": null, "name": null, "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "subtype": "http"}]}, "locations": [null], "message": null, "monitor_id": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "public_id": null, "status": "live", "subtype": "http", "tags": [null], "type": "api"} + And body with value {"config": {"assertions": [], "configVariables": [{"example": null, "name": "VARIABLE_NAME", "pattern": null, "type": "text"}], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "steps": [{"allowFailure": null, "assertions": [], "extractedValues": [{"field": "content-type", "name": null, "parser": {"type": "regex", "value": ".*"}, "type": "http_body"}], "isCritical": null, "name": null, "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "subtype": "http"}]}, "locations": [null], "message": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "status": "live", "subtype": "http", "tags": [null], "type": "api"} When the request is sent Then the response status is 200 OK