From 13f199d926263dfd46ed554048755fcd4c12c5ed Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 30 Aug 2022 12:29:43 +0000 Subject: [PATCH] Regenerate client from commit 47f45603 of spec repo --- .apigentools-info | 8 ++-- .generator/schemas/v1/openapi.yaml | 21 ++++++++++ ...-Returns-saved-rumSettings-response.frozen | 2 +- ...-OK-Returns-saved-rumSettings-response.yml | 18 ++++----- ...s-the-created-test-details-response.frozen | 2 +- ...urns-the-created-test-details-response.yml | 14 +++---- ...rivate-location-returns-OK-response.frozen | 2 +- ...a-private-location-returns-OK-response.yml | 40 ++++++++++--------- ...s-the-created-test-details-response.frozen | 2 +- ...urns-the-created-test-details-response.yml | 14 +++---- ...s-the-created-test-details-response.frozen | 2 +- ...urns-the-created-test-details-response.yml | 18 ++++----- ...s-the-created-test-details-response.frozen | 2 +- ...urns-the-created-test-details-response.yml | 14 +++---- ...s-the-created-test-details-response.frozen | 2 +- ...urns-the-created-test-details-response.yml | 14 +++---- ...s-the-created-test-details-response.frozen | 2 +- ...urns-the-created-test-details-response.yml | 14 +++---- ...s-the-created-test-details-response.frozen | 2 +- ...urns-the-created-test-details-response.yml | 16 ++++---- ...dit-an-API-test-returns-OK-response.frozen | 2 +- .../Edit-an-API-test-returns-OK-response.yml | 30 +++++++------- ...ynthetics-tests-returns-OK-response.frozen | 2 +- ...r-Synthetics-tests-returns-OK-response.yml | 24 +++++------ .../CreateSyntheticsBrowserTest_2932742688.rb | 6 +++ examples/v1/synthetics/UpdateBrowserTest.rb | 1 + features/v1/synthetics.feature | 10 ++--- ...rowser_test_payload_with_rum_settings.json | 11 ++++- .../v1/models/synthetics_test_options.rb | 32 ++++++++++++++- .../v1/models/synthetics_test_request.rb | 16 +++++++- 30 files changed, 213 insertions(+), 130 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index c8390c959148..4afc7b674635 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.4", - "regenerated": "2022-08-30 09:41:10.267849", - "spec_repo_commit": "267e916e" + "regenerated": "2022-08-30 12:29:18.404263", + "spec_repo_commit": "47f45603" }, "v2": { "apigentools_version": "1.6.4", - "regenerated": "2022-08-30 09:41:10.281160", - "spec_repo_commit": "267e916e" + "regenerated": "2022-08-30 12:29:18.419749", + "spec_repo_commit": "47f45603" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 4bb9bb9798f2..dab7248ce695 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -12564,9 +12564,20 @@ components: disableCors: description: Whether or not to disable CORS mechanism. type: boolean + disableCsp: + description: Disable Content Security Policy for browser tests. + type: boolean follow_redirects: description: For API HTTP test, whether or not the test should follow redirects. type: boolean + ignoreServerCertificateError: + description: Ignore server certificate error. + type: boolean + initialNavigationTimeout: + description: Timeout before declaring the initial step as failed (in seconds) + for browser tests. + format: int64 + type: integer min_failure_duration: description: Minimum amount of time in failure required to trigger an alert. format: int64 @@ -12677,6 +12688,16 @@ components: type: string certificate: $ref: '#/components/schemas/SyntheticsTestRequestCertificate' + certificateDomains: + default: [] + description: By default, the client certificate is applied on the domain + of the starting URL for browser tests. If you want your client certificate + to be applied on other domains instead, add them in `certificateDomains`. + items: + description: Domain to apply the client certificate. + example: '' + type: string + type: array dnsServer: description: DNS server to use for DNS tests. type: string diff --git a/cassettes/features/v1/synthetics/Create-a-browser-test-returns-OK-Returns-saved-rumSettings-response.frozen b/cassettes/features/v1/synthetics/Create-a-browser-test-returns-OK-Returns-saved-rumSettings-response.frozen index eb63d80ec5ba..f1a418baf88a 100644 --- a/cassettes/features/v1/synthetics/Create-a-browser-test-returns-OK-Returns-saved-rumSettings-response.frozen +++ b/cassettes/features/v1/synthetics/Create-a-browser-test-returns-OK-Returns-saved-rumSettings-response.frozen @@ -1 +1 @@ -2022-07-11T13:41:26.739Z \ No newline at end of file +2022-08-18T09:19:30.220Z \ No newline at end of file diff --git a/cassettes/features/v1/synthetics/Create-a-browser-test-returns-OK-Returns-saved-rumSettings-response.yml b/cassettes/features/v1/synthetics/Create-a-browser-test-returns-OK-Returns-saved-rumSettings-response.yml index 829f473a40dc..150b64cee99b 100644 --- a/cassettes/features/v1/synthetics/Create-a-browser-test-returns-OK-Returns-saved-rumSettings-response.yml +++ b/cassettes/features/v1/synthetics/Create-a-browser-test-returns-OK-Returns-saved-rumSettings-response.yml @@ -1,10 +1,10 @@ http_interactions: -- recorded_at: Mon, 11 Jul 2022 13:41:26 GMT +- recorded_at: Thu, 18 Aug 2022 09:19:30 GMT request: body: encoding: UTF-8 - string: '{"config":{"assertions":[],"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"request":{"method":"GET","url":"https://datadoghq.com"},"setCookie":"name:test"},"locations":["aws:us-east-2"],"message":"Test - message","name":"Test-Create_a_browser_test_returns_OK_Returns_saved_rumSettings_response-1657546886","options":{"accept_self_signed":false,"allow_insecure":true,"ci":{"executionRule":"skipped"},"device_ids":["tablet"],"disableCors":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"noScreenshot":true,"retry":{"count":3,"interval":10},"rumSettings":{"applicationId":"mockApplicationId","clientTokenId":12345,"isEnabled":true},"tick_every":300},"steps":[{"allowFailure":false,"isCritical":true,"name":"Refresh + string: '{"config":{"assertions":[],"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"request":{"certificateDomains":["https://datadoghq.com"],"method":"GET","url":"https://datadoghq.com"},"setCookie":"name:test"},"locations":["aws:us-east-2"],"message":"Test + message","name":"Test-Create_a_browser_test_returns_OK_Returns_saved_rumSettings_response-1660814370","options":{"accept_self_signed":false,"allow_insecure":true,"ci":{"executionRule":"skipped"},"device_ids":["tablet"],"disableCors":true,"disableCsp":true,"follow_redirects":true,"ignoreServerCertificateError":true,"initialNavigationTimeout":200,"min_failure_duration":10,"min_location_failed":1,"noScreenshot":true,"retry":{"count":3,"interval":10},"rumSettings":{"applicationId":"mockApplicationId","clientTokenId":12345,"isEnabled":true},"tick_every":300},"steps":[{"allowFailure":false,"isCritical":true,"name":"Refresh page","params":{},"type":"refresh"}],"tags":["testing:browser"],"type":"browser"}' headers: Accept: @@ -16,20 +16,20 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"status":"paused","public_id":"wc2-mv4-f5w","tags":["testing:browser"],"org_id":321813,"locations":["aws:us-east-2"],"message":"Test - message","deleted_at":null,"name":"Test-Create_a_browser_test_returns_OK_Returns_saved_rumSettings_response-1657546886","monitor_id":76610201,"type":"browser","created_at":"2022-07-11T13:41:27.188209+00:00","modified_at":"2022-07-11T13:41:27.188209+00:00","steps":[{"name":"Refresh - page","allowFailure":false,"params":{},"isCritical":true,"type":"refresh"}],"config":{"setCookie":"name:test","request":{"url":"https://datadoghq.com","method":"GET"},"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,"ci":{"executionRule":"skipped"},"noScreenshot":true,"rumSettings":{"isEnabled":true,"applicationId":"mockApplicationId","clientTokenId":12345},"disableCors":true,"device_ids":["tablet"],"tick_every":300}}' + string: '{"status":"paused","public_id":"3ry-tnf-fqu","tags":["testing:browser"],"org_id":321813,"locations":["aws:us-east-2"],"message":"Test + message","deleted_at":null,"name":"Test-Create_a_browser_test_returns_OK_Returns_saved_rumSettings_response-1660814370","monitor_id":80432986,"type":"browser","created_at":"2022-08-18T09:19:30.959520+00:00","modified_at":"2022-08-18T09:19:30.959520+00:00","steps":[{"name":"Refresh + page","allowFailure":false,"params":{},"isCritical":true,"type":"refresh"}],"config":{"setCookie":"name:test","request":{"url":"https://datadoghq.com","certificateDomains":["https://datadoghq.com"],"method":"GET"},"assertions":[],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"disableCsp":true,"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"ci":{"executionRule":"skipped"},"noScreenshot":true,"rumSettings":{"isEnabled":true,"applicationId":"mockApplicationId","clientTokenId":12345},"initialNavigationTimeout":200,"disableCors":true,"device_ids":["tablet"],"tick_every":300,"ignoreServerCertificateError":true}}' headers: Content-Type: - application/json status: code: 200 message: OK -- recorded_at: Mon, 11 Jul 2022 13:41:26 GMT +- recorded_at: Thu, 18 Aug 2022 09:19:30 GMT request: body: encoding: UTF-8 - string: '{"public_ids":["wc2-mv4-f5w"]}' + string: '{"public_ids":["3ry-tnf-fqu"]}' headers: Accept: - application/json @@ -40,7 +40,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"deleted_tests":[{"deleted_at":"2022-07-11T13:41:32.446608+00:00","public_id":"wc2-mv4-f5w"}]}' + string: '{"deleted_tests":[{"deleted_at":"2022-08-18T09:19:36.462930+00:00","public_id":"3ry-tnf-fqu"}]}' headers: Content-Type: - application/json diff --git a/cassettes/features/v1/synthetics/Create-a-browser-test-returns-OK-Returns-the-created-test-details-response.frozen b/cassettes/features/v1/synthetics/Create-a-browser-test-returns-OK-Returns-the-created-test-details-response.frozen index 1397e06d8c00..36b8c9c9ad24 100644 --- a/cassettes/features/v1/synthetics/Create-a-browser-test-returns-OK-Returns-the-created-test-details-response.frozen +++ b/cassettes/features/v1/synthetics/Create-a-browser-test-returns-OK-Returns-the-created-test-details-response.frozen @@ -1 +1 @@ -2022-02-10T12:24:10.485Z \ No newline at end of file +2022-08-18T09:19:36.544Z \ No newline at end of file diff --git a/cassettes/features/v1/synthetics/Create-a-browser-test-returns-OK-Returns-the-created-test-details-response.yml b/cassettes/features/v1/synthetics/Create-a-browser-test-returns-OK-Returns-the-created-test-details-response.yml index 47e1c2a9156a..e97dba4d7458 100644 --- a/cassettes/features/v1/synthetics/Create-a-browser-test-returns-OK-Returns-the-created-test-details-response.yml +++ b/cassettes/features/v1/synthetics/Create-a-browser-test-returns-OK-Returns-the-created-test-details-response.yml @@ -1,10 +1,10 @@ http_interactions: -- recorded_at: Thu, 10 Feb 2022 12:24:10 GMT +- recorded_at: Thu, 18 Aug 2022 09:19:36 GMT request: body: encoding: UTF-8 string: '{"config":{"assertions":[],"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"request":{"method":"GET","url":"https://datadoghq.com"},"setCookie":"name:test"},"locations":["aws:us-east-2"],"message":"Test - message","name":"Test-Create_a_browser_test_returns_OK_Returns_the_created_test_details_response-1644495850","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},"steps":[{"allowFailure":false,"isCritical":true,"name":"Refresh + message","name":"Test-Create_a_browser_test_returns_OK_Returns_the_created_test_details_response-1660814376","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},"steps":[{"allowFailure":false,"isCritical":true,"name":"Refresh page","params":{},"type":"refresh"}],"tags":["testing:browser"],"type":"browser"}' headers: Accept: @@ -16,8 +16,8 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"status":"paused","public_id":"rsw-sd4-iu5","tags":["testing:browser"],"org_id":321813,"locations":["aws:us-east-2"],"message":"Test - message","deleted_at":null,"name":"Test-Create_a_browser_test_returns_OK_Returns_the_created_test_details_response-1644495850","monitor_id":63812386,"type":"browser","created_at":"2022-02-10T12:24:11.196393+00:00","modified_at":"2022-02-10T12:24:11.196393+00:00","steps":[{"name":"Refresh + string: '{"status":"paused","public_id":"j74-mhg-nnq","tags":["testing:browser"],"org_id":321813,"locations":["aws:us-east-2"],"message":"Test + message","deleted_at":null,"name":"Test-Create_a_browser_test_returns_OK_Returns_the_created_test_details_response-1660814376","monitor_id":80432989,"type":"browser","created_at":"2022-08-18T09:19:38.140296+00:00","modified_at":"2022-08-18T09:19:38.140296+00:00","steps":[{"name":"Refresh page","allowFailure":false,"params":{},"isCritical":true,"type":"refresh"}],"config":{"setCookie":"name:test","request":{"url":"https://datadoghq.com","method":"GET"},"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,"noScreenshot":true,"disableCors":true,"device_ids":["tablet"],"tick_every":300}}' headers: Content-Type: @@ -25,11 +25,11 @@ http_interactions: status: code: 200 message: OK -- recorded_at: Thu, 10 Feb 2022 12:24:10 GMT +- recorded_at: Thu, 18 Aug 2022 09:19:36 GMT request: body: encoding: UTF-8 - string: '{"public_ids":["rsw-sd4-iu5"]}' + string: '{"public_ids":["j74-mhg-nnq"]}' headers: Accept: - application/json @@ -40,7 +40,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"deleted_tests":[{"deleted_at":"2022-02-10T12:24:11.753160+00:00","public_id":"rsw-sd4-iu5"}]}' + string: '{"deleted_tests":[{"deleted_at":"2022-08-18T09:19:43.678246+00:00","public_id":"j74-mhg-nnq"}]}' headers: Content-Type: - application/json diff --git a/cassettes/features/v1/synthetics/Create-a-private-location-returns-OK-response.frozen b/cassettes/features/v1/synthetics/Create-a-private-location-returns-OK-response.frozen index b0145329208b..9eadd837e3bc 100644 --- a/cassettes/features/v1/synthetics/Create-a-private-location-returns-OK-response.frozen +++ b/cassettes/features/v1/synthetics/Create-a-private-location-returns-OK-response.frozen @@ -1 +1 @@ -2022-05-12T09:50:27.289Z \ No newline at end of file +2022-08-18T09:19:44.397Z \ No newline at end of file diff --git a/cassettes/features/v1/synthetics/Create-a-private-location-returns-OK-response.yml b/cassettes/features/v1/synthetics/Create-a-private-location-returns-OK-response.yml index d2e316daaf93..66ac9281a578 100644 --- a/cassettes/features/v1/synthetics/Create-a-private-location-returns-OK-response.yml +++ b/cassettes/features/v1/synthetics/Create-a-private-location-returns-OK-response.yml @@ -1,9 +1,9 @@ http_interactions: -- recorded_at: Thu, 12 May 2022 09:50:27 GMT +- recorded_at: Thu, 18 Aug 2022 09:19:44 GMT request: body: encoding: UTF-8 - string: '{"data":{"attributes":{"name":"Test-Create_a_private_location_returns_OK_response-1652349027"},"type":"roles"}}' + string: '{"data":{"attributes":{"name":"Test-Create_a_private_location_returns_OK_response-1660814384"},"type":"roles"}}' headers: Accept: - application/json @@ -14,19 +14,21 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":{"type":"roles","id":"f3ea9674-d1d8-11ec-ad3d-da7ad0900002","attributes":{"name":"Test-Create_a_private_location_returns_OK_response-1652349027","created_at":"2022-05-12T09:50:27.701486+00:00","modified_at":"2022-05-12T09:50:27.766410+00:00"},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"97971c1c-e895-11eb-b13c-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"}]}}}}' + string: '{"data":{"type":"roles","id":"e5f2f0a2-1ed6-11ed-b232-da7ad0900002","attributes":{"name":"Test-Create_a_private_location_returns_OK_response-1660814384","created_at":"2022-08-18T09:19:44.808254+00:00","modified_at":"2022-08-18T09:19:44.872671+00:00"},"relationships":{"permissions":{"data":[{"type":"permissions","id":"d90f6830-d3d8-11e9-a77a-b3404e5e9ee2"},{"type":"permissions","id":"4441648c-d8b1-11e9-a77a-1b899a04b304"},{"type":"permissions","id":"417ba636-2dce-11eb-84c0-6bce5b0d9de0"},{"type":"permissions","id":"12efc20e-d36c-11eb-a9b8-da7ad0900002"},{"type":"permissions","id":"97971c1c-e895-11eb-b13c-da7ad0900002"},{"type":"permissions","id":"7605ef24-f376-11eb-b90b-da7ad0900002"},{"type":"permissions","id":"b6bf9ac6-9a59-11ec-8480-da7ad0900002"},{"type":"permissions","id":"f8e941cf-e746-11ec-b22d-da7ad0900002"}]}}}} + + ' headers: Content-Type: - application/json status: code: 200 message: OK -- recorded_at: Thu, 12 May 2022 09:50:27 GMT +- recorded_at: Thu, 18 Aug 2022 09:19:44 GMT request: body: encoding: UTF-8 - string: '{"description":"Test Test-Create_a_private_location_returns_OK_response-1652349027 - description","metadata":{"restricted_roles":["f3ea9674-d1d8-11ec-ad3d-da7ad0900002"]},"name":"Test-Create_a_private_location_returns_OK_response-1652349027","tags":["test:testcreateaprivatelocationreturnsokresponse1652349027"]}' + string: '{"description":"Test Test-Create_a_private_location_returns_OK_response-1660814384 + description","metadata":{"restricted_roles":["e5f2f0a2-1ed6-11ed-b232-da7ad0900002"]},"name":"Test-Create_a_private_location_returns_OK_response-1660814384","tags":["test:testcreateaprivatelocationreturnsokresponse1660814384"]}' headers: Accept: - application/json @@ -37,14 +39,14 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"private_location":{"name":"Test-Create_a_private_location_returns_OK_response-1652349027","tags":["test:testcreateaprivatelocationreturnsokresponse1652349027"],"secrets":{"authentication":{"id":"a7bf32c681a5791a1930e5501740505e","key":"e5b960a1f6796be74f3511afa47704ff4eb5a7e67b3a2f9be4c444881142ea38"},"config_decryption":{"id":"4b2ea0ec82c2e9501ff09a77c2470c9e","key":"-----BEGIN - RSA PRIVATE KEY-----\nMIIJKQIBAAKCAgEA51H2Xf8dExXSLxneHLB5DSYbjLptXsb57HiAAfUDhjScM7sg\neBpfoolHRpOUJDuZqBLGGBGMe0Qx+TDUWj25pNDZiC+75ZiEe+rPlmcFjYdIyVwj\nz6EZllIrfY0wuL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n/Mspr9CcHw3DVqOsP70U++mTu7j4rmRI9/Jzqvy3qyjEHPaCWck8l6cU2xj7vHe7\noYnnCRU+z8Cly1dbO58OKQCTlfK8JeigBP8MldaLHctem/n6x4E0Bh6RVwxZh6Aa\nQNkdd9FMCD5ty5BtatOYkGbFyrefvVpSLBALCVr60vSkQxBBOmeU/qqW8ge7a0+P\nuj1pYQKCAQEA9P/jjrckWBv6sHipyl2DjWVCN6iER8ZlBDiw9k8O5lE2bCzeq12/\n4LQBUT37wiFbonQtr6NKDP2MSomiz2oaKsOhVAlG48oAWQ7nvo8H2U0cKaJkQL7Z\nhCbq6ooZvoaXnR9HowrCKgAcNVlteoazmWTnr40LYjPIY3SpXt+Gj8Wjanpg3RB3\nWKfI9l70IE9phRNgzjXpeIFQHUctq+cOPuKl55UTAKFpuNK9PZAUXSYgQ2FL+CBS\niX2VK4sSD6dgrlyE+j/iX2vabj4E5VDKj9WmTYXO1MjgcImvAzbAa7zf1eN/v84l\nbnfDl/xHbRViab7DV9H5LHv1EdNfXpTDnQKCAQAGz3egAkAObEHiP9Q4kXpNT5NS\n4ivLLA7wppkjVYbQJ/Bk1HtEwePT+CB7LqFuYtMBkW++0FK/RaE93zgJOju4Yi9f\nTRyDkzY/psCHF3BabRLWVeSr/P5eoJMM3e+8WBheHOfq/AcGiUmDBHrYFAixMgCz\ns+fd2WhUD8dhVfSHg9bcWA7LAh6zVxWce6qWxT+7jPSyxLO4wMCtWu47Svkizdbx\naGzHpuFsDVjBbNHNErUNMmJZQj08B+FKDavv6/nmlrUsp6vWBIzSc/msZZFgURbp\nFY6CA3PKEYQC/JvHKr20PcN/IG0i2w+ULc9COfpWv9lsVDM6/BJeYqY9TBiq\n-----END - RSA PRIVATE KEY-----"}},"modifiedAt":"2022-05-12T09:50:29.676958+00:00","createdBy":"frog@datadoghq.com","metadata":{"restricted_roles":["f3ea9674-d1d8-11ec-ad3d-da7ad0900002"]},"config":{"site":"datadoghq.com"},"id":"pl:test-create_a_private_location_returns_ok_response-1652349027-f25e95d60b40f1c257d8d213eb20034c","createdAt":"2022-05-12T09:50:29.676958+00:00","description":"Test - Test-Create_a_private_location_returns_OK_response-1652349027 description"},"config":{"accessKey":"a7bf32c681a5791a1930e5501740505e","privateKey":"-----BEGIN - RSA PRIVATE KEY-----\nMIIJKQIBAAKCAgEA51H2Xf8dExXSLxneHLB5DSYbjLptXsb57HiAAfUDhjScM7sg\neBpfoolHRpOUJDuZqBLGGBGMe0Qx+TDUWj25pNDZiC+75ZiEe+rPlmcFjYdIyVwj\nz6EZllIrfY0wuL+TEXU/LYHC8rxioNEdcRqML4ytiTWba/oqjwalX9tmfJXdDfag\n+F02Dfnua5t3fr2PpXv4AN8CXviCA3txgtujztGBjsh0hB3RakXb6zWKUYAKlldu\nEVdy84m/kRWi1pOOQe5DaMXmDONw2EpyPa7J/+Zi2PUKDyKrdqkOjIvUTtATJeuC\nYEMfqTyyb62tNRTn4oG8jo5VQvjRpMLbnVZdk6SdwLDXT78UNrh9KZj0wfXqWQxD\nq8RRLrQ0LHS8lK3zAxYKhzt0r53lQQlu4ke9cr3AB9o62OIsYG1qjSdXbDVpIiUl\nmJ1ZK3LZm+dpiIUagtZgoDnAme3yU/7DmlemCzFoFbjVHplp2eUUrf3nTzAx/WnK\nZyKuS+axL4m8QdF5V306Nq0g0RcDO7tIiBjFQ1tGIR5ctGqMfsFo2FhuZQ9X1thL\n7zTUNok0BtRTRBZev5eMe174DqT7suzJDU0IndUmKlunlTAMyisYlJDgN/zzaHxc\nekcWVeU4WHH9B7izEq5eE9JyItEJMxtdla17XwMIeQ11quD1ZPJKlRjroKsCAwEA\nAQKCAgAUgOZWhJNeKrP7qs5OOrIwIS2V9rxVB0wF0tR91+rdDXK+/xosqyHI9WQU\n9GXQJFxFUoyue3e5QV0wmkxoR0paOozdjmWYP0GW/kQyL6WFWvVvq7Qc5kmvUk86\njLZB2fE+PedAsFzISTxwxrhWWyUL3etP2ymQk5cMIGmuKnNWHa5/W1n/SbvN11Z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jPSyxLO4wMCtWu47Svkizdbx\naGzHpuFsDVjBbNHNErUNMmJZQj08B+FKDavv6/nmlrUsp6vWBIzSc/msZZFgURbp\nFY6CA3PKEYQC/JvHKr20PcN/IG0i2w+ULc9COfpWv9lsVDM6/BJeYqY9TBiq\n-----END - RSA PRIVATE KEY-----","site":"datadoghq.com","secretAccessKey":"e5b960a1f6796be74f3511afa47704ff4eb5a7e67b3a2f9be4c444881142ea38","publicKey":{"pem":"-----BEGIN + string: '{"private_location":{"name":"Test-Create_a_private_location_returns_OK_response-1660814384","tags":["test:testcreateaprivatelocationreturnsokresponse1660814384"],"secrets":{"authentication":{"id":"a8be7686c8e3f5eec74c613705801cb5","key":"0bc18820c68a5ebb743f925ac7f683fd65c7348556eae4e548002b71338a1beb"},"config_decryption":{"id":"788a20d504cfcf0c946ca313566ed8b8","key":"-----BEGIN + RSA PRIVATE KEY-----\nMIIJJwIBAAKCAgEAng03lClMXmwjvgk5bFPjzBD2fpVTXMAuTYDvZF8OIUcfmq/K\nPoLDseQ1YrgTPmTjoPhZUU/NKh+bXJmwcC39X02dYQcv/GSdCED07aiaC1P4s3zW\nLHwfpA9oCYD7ztQ/BYjqtBSi7NbJXXMXfLqLqKEM4XXS0TgLWvHx7y9jsJBiq227\nAweDSRXP9Z05mhdPvL55SV2U6zEZmJ/UxBk5xA0NqAbimRdlEm2TD6NrCxGL/UQQ\nINrItSyEQOz8sdqKVHO1gdcF7Xh3Y1LQDMHBZIP9YPlgCZ1eRv8MlPFdiCbwr9eW\nWxkUnj+JRhshYXK22WoKdRumMuPNP+/7C8Y3LTbbFPjtckgCqJMGSxpYjSfuA7pg\noe771RO/JYmPgBFff09hMHi746f1u7BM+uQa2+JP9JVWVxbisWFZkkOcHmLnnln1\n/amrZ3b6CX3rmh3+HRi6UosVLrMw9tm1OA9MEr3ac1VpC9qS04EmiXqRGzr4CIXI\n9mUr7kr23iREf+6aLE5fKNj9bIZ4WunFr1FJd4xJ/9EKec6/nv4Q+KP/wQlu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E+SPxYDIlXiQmjmUgtox0R7EZ\nZxzdvtP+0IfvSbRVIPOzL4QTrnzx6wZlRBOHaczep0LGIKQgOMVXI9d+RXiVpmJp\nE0TMoyNDMJLWPZTYkFW6w2WSG6TBM6ECggEAUnUWgZxXqV9JJ0gaVy7JqNXAtj9Y\n020YglSjhYjFrDhB1FrNvWDW5PO8SalMOqMf2tQJTz+cyjVumqbzc0L7+at5XHyw\ntaa/H9vp2Dnca13QZSZfi0H9uvKSUpif9PkAapyyIA7rTc8okZVsfRM/ODtp5UtI\nTfTdr6aPBM7KNTZYKzD6CBzJGbrxsutuR7ESrwZO9zBw2y6NmnBO5NbhdizEE2gf\n59QwzzRu8iBrn6QXTZmQOsDygR8APg23/GdsMT7+tDKlrFKqmCn+BQKXzbgR9/VA\nVb0UqkH9nwQAbU8538ClsRPlJDIeAUs65XW3mG0VJZXEdvORCD9dZmeukA==\n-----END + RSA PRIVATE KEY-----"}},"modifiedAt":"2022-08-18T09:19:45.832126+00:00","createdBy":"frog@datadoghq.com","metadata":{"restricted_roles":["e5f2f0a2-1ed6-11ed-b232-da7ad0900002"]},"config":{"site":"datadoghq.com"},"id":"pl:test-create_a_private_location_returns_ok_response-1660814384-bf47a0a1543124fdcc802ce6781d1f89","createdAt":"2022-08-18T09:19:45.832126+00:00","description":"Test + Test-Create_a_private_location_returns_OK_response-1660814384 description"},"config":{"accessKey":"a8be7686c8e3f5eec74c613705801cb5","privateKey":"-----BEGIN + RSA PRIVATE KEY-----\nMIIJJwIBAAKCAgEAng03lClMXmwjvgk5bFPjzBD2fpVTXMAuTYDvZF8OIUcfmq/K\nPoLDseQ1YrgTPmTjoPhZUU/NKh+bXJmwcC39X02dYQcv/GSdCED07aiaC1P4s3zW\nLHwfpA9oCYD7ztQ/BYjqtBSi7NbJXXMXfLqLqKEM4XXS0TgLWvHx7y9jsJBiq227\nAweDSRXP9Z05mhdPvL55SV2U6zEZmJ/UxBk5xA0NqAbimRdlEm2TD6NrCxGL/UQQ\nINr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e4GMzaVZ+zyHa9\ngW9XiiNkO3nRMBSOc6D7YHTg7hlcjq5fbaeTNqy97wSwNtB7fKgkiJJCtWb7bnEg\nPudpAoIBAGgmZ8vgC8y35eYWU7SueooJwO7QZePNefzuctZvKOTbAl8cNtmvbQkL\nDUCFh6vyp9BkDzwJuaWYbsi89iT4X60bsPMmpM+oL4AeRsbAMXvg2SriIeVHfizn\nLDYipEE0P1sLpJihIiiTBfkbw7sUpjjSEGPF3pMk5qpouJ1ugMWlSsibUjhUsv6Z\nGyvkPzHJTVfJVU7HFZ3h8xNhRvtY43a1F0FoRR8E+SPxYDIlXiQmjmUgtox0R7EZ\nZxzdvtP+0IfvSbRVIPOzL4QTrnzx6wZlRBOHaczep0LGIKQgOMVXI9d+RXiVpmJp\nE0TMoyNDMJLWPZTYkFW6w2WSG6TBM6ECggEAUnUWgZxXqV9JJ0gaVy7JqNXAtj9Y\n020YglSjhYjFrDhB1FrNvWDW5PO8SalMOqMf2tQJTz+cyjVumqbzc0L7+at5XHyw\ntaa/H9vp2Dnca13QZSZfi0H9uvKSUpif9PkAapyyIA7rTc8okZVsfRM/ODtp5UtI\nTfTdr6aPBM7KNTZYKzD6CBzJGbrxsutuR7ESrwZO9zBw2y6NmnBO5NbhdizEE2gf\n59QwzzRu8iBrn6QXTZmQOsDygR8APg23/GdsMT7+tDKlrFKqmCn+BQKXzbgR9/VA\nVb0UqkH9nwQAbU8538ClsRPlJDIeAUs65XW3mG0VJZXEdvORCD9dZmeukA==\n-----END + RSA PRIVATE KEY-----","site":"datadoghq.com","secretAccessKey":"0bc18820c68a5ebb743f925ac7f683fd65c7348556eae4e548002b71338a1beb","publicKey":{"pem":"-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA0yCGWhamEUB1Xyp8a0lI\nXIJX9xEGS4Os467tfjMXF8SJj2+47EqZNNB0SPbesethiTH/3zVvsFhzCtXOfuKG\nNZIN+6IWVEIsecgiFGYPnCdnOawzKTPHzE+sD/ipbJCkINvbbcgmxYE5Hw1Ju26n\nneFv25fKTAI/JHETBMQGxFbcJ4QU2IdJrQ6Er7mT6s1BT/HO7X7WAWs34FBGDPtg\nlM6erRoY5CSCP5/5x++xDzw4gfWOkawMBgS9GfBnfp3FWy9H33GwvPhBelRbxzOC\n3FMKx5dwngWRFJYekIdwFBEJt088EwyTS9MqYGyt+5AiJVEQ7LV6Hz6HH89sbyQB\n0QxrFQlQ38qeReA8QV6o4SVNa+JmvyHWHExX9Mnb2w1n86iYYinu1DcA+kuXvsG0\njGeym0Uz9l/ufZrhLmFDFOMpN1J6/FK8mHGtXz2weupflNNwWWgyD1jKPn9U1ZQP\ndYXjdBhTHU7H9beoUQ40eYpF4JGBQEu8ARgKYBGSwCsiu0zIykd9zAFndouakFSj\nqSq1h8kNY1Yp/1NZjPbvMTXt+hNPgBBKJ+aV3Z4tl+DB7HLKrWirAX6RNeFqH6Ys\n/CZk1xH3wTGuvBKsdEL93o8EoxhZxh0O4o7936aPYtpDucExXcqaao8jdXprs0q0\nqvDZkEI3/aUB3LclvfXjavMCAwEAAQ==\n-----END - PUBLIC KEY-----\n","fingerprint":"sha256$base64$GA8WCOyWvWP6GJAGhywibAf0NuEeFgqJKZVjrCogbqU="},"id":"pl:test-create_a_private_location_returns_ok_response-1652349027-f25e95d60b40f1c257d8d213eb20034c"},"result_encryption":{"id":"sha256$base64$GA8WCOyWvWP6GJAGhywibAf0NuEeFgqJKZVjrCogbqU=","key":"-----BEGIN + PUBLIC KEY-----\n","fingerprint":"sha256$base64$GA8WCOyWvWP6GJAGhywibAf0NuEeFgqJKZVjrCogbqU="},"id":"pl:test-create_a_private_location_returns_ok_response-1660814384-bf47a0a1543124fdcc802ce6781d1f89"},"result_encryption":{"id":"sha256$base64$GA8WCOyWvWP6GJAGhywibAf0NuEeFgqJKZVjrCogbqU=","key":"-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA0yCGWhamEUB1Xyp8a0lI\nXIJX9xEGS4Os467tfjMXF8SJj2+47EqZNNB0SPbesethiTH/3zVvsFhzCtXOfuKG\nNZIN+6IWVEIsecgiFGYPnCdnOawzKTPHzE+sD/ipbJCkINvbbcgmxYE5Hw1Ju26n\nneFv25fKTAI/JHETBMQGxFbcJ4QU2IdJrQ6Er7mT6s1BT/HO7X7WAWs34FBGDPtg\nlM6erRoY5CSCP5/5x++xDzw4gfWOkawMBgS9GfBnfp3FWy9H33GwvPhBelRbxzOC\n3FMKx5dwngWRFJYekIdwFBEJt088EwyTS9MqYGyt+5AiJVEQ7LV6Hz6HH89sbyQB\n0QxrFQlQ38qeReA8QV6o4SVNa+JmvyHWHExX9Mnb2w1n86iYYinu1DcA+kuXvsG0\njGeym0Uz9l/ufZrhLmFDFOMpN1J6/FK8mHGtXz2weupflNNwWWgyD1jKPn9U1ZQP\ndYXjdBhTHU7H9beoUQ40eYpF4JGBQEu8ARgKYBGSwCsiu0zIykd9zAFndouakFSj\nqSq1h8kNY1Yp/1NZjPbvMTXt+hNPgBBKJ+aV3Z4tl+DB7HLKrWirAX6RNeFqH6Ys\n/CZk1xH3wTGuvBKsdEL93o8EoxhZxh0O4o7936aPYtpDucExXcqaao8jdXprs0q0\nqvDZkEI3/aUB3LclvfXjavMCAwEAAQ==\n-----END PUBLIC KEY-----\n"}}' headers: @@ -53,14 +55,14 @@ http_interactions: status: code: 200 message: OK -- recorded_at: Thu, 12 May 2022 09:50:27 GMT +- recorded_at: Thu, 18 Aug 2022 09:19:44 GMT request: body: null headers: Accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v1/synthetics/private-locations/pl%3Atest-create_a_private_location_returns_ok_response-1652349027-f25e95d60b40f1c257d8d213eb20034c + uri: https://api.datadoghq.com/api/v1/synthetics/private-locations/pl%3Atest-create_a_private_location_returns_ok_response-1660814384-bf47a0a1543124fdcc802ce6781d1f89 response: body: encoding: UTF-8 @@ -69,19 +71,21 @@ http_interactions: status: code: 204 message: No Content -- recorded_at: Thu, 12 May 2022 09:50:27 GMT +- recorded_at: Thu, 18 Aug 2022 09:19:44 GMT request: body: null headers: Accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v2/roles/f3ea9674-d1d8-11ec-ad3d-da7ad0900002 + uri: https://api.datadoghq.com/api/v2/roles/e5f2f0a2-1ed6-11ed-b232-da7ad0900002 response: body: encoding: UTF-8 string: '' - headers: {} + headers: + Content-Type: + - text/html; charset=utf-8 status: code: 204 message: No Content diff --git a/cassettes/features/v1/synthetics/Create-an-API-GRPC-test-returns-OK-Returns-the-created-test-details-response.frozen b/cassettes/features/v1/synthetics/Create-an-API-GRPC-test-returns-OK-Returns-the-created-test-details-response.frozen index bada38fe3818..054fee601dcd 100644 --- a/cassettes/features/v1/synthetics/Create-an-API-GRPC-test-returns-OK-Returns-the-created-test-details-response.frozen +++ b/cassettes/features/v1/synthetics/Create-an-API-GRPC-test-returns-OK-Returns-the-created-test-details-response.frozen @@ -1 +1 @@ -2022-05-24T11:58:25.551Z \ No newline at end of file +2022-08-18T09:19:47.020Z \ No newline at end of file diff --git a/cassettes/features/v1/synthetics/Create-an-API-GRPC-test-returns-OK-Returns-the-created-test-details-response.yml b/cassettes/features/v1/synthetics/Create-an-API-GRPC-test-returns-OK-Returns-the-created-test-details-response.yml index dd024ece2308..8b07ba8aee77 100644 --- a/cassettes/features/v1/synthetics/Create-an-API-GRPC-test-returns-OK-Returns-the-created-test-details-response.yml +++ b/cassettes/features/v1/synthetics/Create-an-API-GRPC-test-returns-OK-Returns-the-created-test-details-response.yml @@ -1,10 +1,10 @@ http_interactions: -- recorded_at: Tue, 24 May 2022 11:58:25 GMT +- recorded_at: Thu, 18 Aug 2022 09:19:47 GMT request: body: encoding: UTF-8 string: '{"config":{"assertions":[{"operator":"is","target":1,"type":"grpcHealthcheckStatus"}],"request":{"host":"localhost","message":"","metadata":{},"method":"GET","port":50051,"service":"Hello"}},"locations":["aws:us-east-2"],"message":"BDD - test payload: synthetics_api_grpc_test_payload.json","name":"Test-Create_an_API_GRPC_test_returns_OK_Returns_the_created_test_details_response-1653393505","options":{"min_failure_duration":0,"min_location_failed":1,"monitor_name":"Test-Create_an_API_GRPC_test_returns_OK_Returns_the_created_test_details_response-1653393505","monitor_options":{"renotify_interval":0},"tick_every":60},"subtype":"grpc","tags":["testing:api"],"type":"api"}' + test payload: synthetics_api_grpc_test_payload.json","name":"Test-Create_an_API_GRPC_test_returns_OK_Returns_the_created_test_details_response-1660814387","options":{"min_failure_duration":0,"min_location_failed":1,"monitor_name":"Test-Create_an_API_GRPC_test_returns_OK_Returns_the_created_test_details_response-1660814387","monitor_options":{"renotify_interval":0},"tick_every":60},"subtype":"grpc","tags":["testing:api"],"type":"api"}' headers: Accept: - application/json @@ -15,19 +15,19 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"status":"live","public_id":"b42-9bj-kdp","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD - test payload: synthetics_api_grpc_test_payload.json","deleted_at":null,"name":"Test-Create_an_API_GRPC_test_returns_OK_Returns_the_created_test_details_response-1653393505","monitor_id":72307136,"type":"api","created_at":"2022-05-24T11:58:26.204508+00:00","modified_at":"2022-05-24T11:58:26.204508+00:00","subtype":"grpc","config":{"request":{"service":"Hello","port":50051,"host":"localhost","message":"","method":"GET","metadata":{}},"assertions":[{"operator":"is","type":"grpcHealthcheckStatus","target":1}]},"options":{"monitor_options":{"include_tags":true,"notify_no_data":false,"notify_audit":false,"new_host_delay":300,"renotify_interval":0},"tick_every":60,"monitor_name":"Test-Create_an_API_GRPC_test_returns_OK_Returns_the_created_test_details_response-1653393505","min_failure_duration":0,"min_location_failed":1}}' + string: '{"status":"live","public_id":"vef-dtr-m3a","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD + test payload: synthetics_api_grpc_test_payload.json","deleted_at":null,"name":"Test-Create_an_API_GRPC_test_returns_OK_Returns_the_created_test_details_response-1660814387","monitor_id":80432992,"type":"api","created_at":"2022-08-18T09:19:47.669239+00:00","modified_at":"2022-08-18T09:19:47.669239+00:00","subtype":"grpc","config":{"request":{"service":"Hello","port":50051,"host":"localhost","message":"","method":"GET","metadata":{}},"assertions":[{"operator":"is","type":"grpcHealthcheckStatus","target":1}]},"options":{"monitor_options":{"include_tags":true,"notify_no_data":false,"notify_audit":false,"new_host_delay":300,"renotify_interval":0},"tick_every":60,"monitor_name":"Test-Create_an_API_GRPC_test_returns_OK_Returns_the_created_test_details_response-1660814387","min_failure_duration":0,"min_location_failed":1}}' headers: Content-Type: - application/json status: code: 200 message: OK -- recorded_at: Tue, 24 May 2022 11:58:25 GMT +- recorded_at: Thu, 18 Aug 2022 09:19:47 GMT request: body: encoding: UTF-8 - string: '{"public_ids":["b42-9bj-kdp"]}' + string: '{"public_ids":["vef-dtr-m3a"]}' headers: Accept: - application/json @@ -38,7 +38,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"deleted_tests":[{"deleted_at":"2022-05-24T11:58:31.800773+00:00","public_id":"b42-9bj-kdp"}]}' + string: '{"deleted_tests":[{"deleted_at":"2022-08-18T09:19:53.073279+00:00","public_id":"vef-dtr-m3a"}]}' headers: Content-Type: - application/json diff --git a/cassettes/features/v1/synthetics/Create-an-API-HTTP-test-returns-OK-Returns-the-created-test-details-response.frozen b/cassettes/features/v1/synthetics/Create-an-API-HTTP-test-returns-OK-Returns-the-created-test-details-response.frozen index adfe09efd8d6..1dd5d7fc1af3 100644 --- a/cassettes/features/v1/synthetics/Create-an-API-HTTP-test-returns-OK-Returns-the-created-test-details-response.frozen +++ b/cassettes/features/v1/synthetics/Create-an-API-HTTP-test-returns-OK-Returns-the-created-test-details-response.frozen @@ -1 +1 @@ -2022-02-22T17:12:29.866Z \ No newline at end of file +2022-08-18T09:19:53.144Z \ No newline at end of file diff --git a/cassettes/features/v1/synthetics/Create-an-API-HTTP-test-returns-OK-Returns-the-created-test-details-response.yml b/cassettes/features/v1/synthetics/Create-an-API-HTTP-test-returns-OK-Returns-the-created-test-details-response.yml index b993443955b0..7a4220d47f28 100644 --- a/cassettes/features/v1/synthetics/Create-an-API-HTTP-test-returns-OK-Returns-the-created-test-details-response.yml +++ b/cassettes/features/v1/synthetics/Create-an-API-HTTP-test-returns-OK-Returns-the-created-test-details-response.yml @@ -1,10 +1,10 @@ http_interactions: -- recorded_at: Tue, 22 Feb 2022 17:12:29 GMT +- recorded_at: Thu, 18 Aug 2022 09:19:53 GMT request: body: encoding: UTF-8 - string: '{"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":{"unique":"testcreateanapihttptestreturnsokreturnsthecreatedtestdetailsresponse1645549949"},"method":"GET","proxy":{"headers":{},"url":"https://datadoghq.com"},"timeout":10,"url":"https://datadoghq.com"}},"locations":["aws:us-east-2"],"message":"BDD - test payload: synthetics_api_http_test_payload.json","name":"Test-Create_an_API_HTTP_test_returns_OK_Returns_the_created_test_details_response-1645549949","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_an_API_HTTP_test_returns_OK_Returns_the_created_test_details_response-1645549949","monitor_priority":5,"retry":{"count":3,"interval":10},"tick_every":60},"subtype":"http","tags":["testing:api"],"type":"api"}' + string: '{"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":{"unique":"testcreateanapihttptestreturnsokreturnsthecreatedtestdetailsresponse1660814393"},"method":"GET","proxy":{"headers":{},"url":"https://datadoghq.com"},"timeout":10,"url":"https://datadoghq.com"}},"locations":["aws:us-east-2"],"message":"BDD + test payload: synthetics_api_http_test_payload.json","name":"Test-Create_an_API_HTTP_test_returns_OK_Returns_the_created_test_details_response-1660814393","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_an_API_HTTP_test_returns_OK_Returns_the_created_test_details_response-1660814393","monitor_priority":5,"retry":{"count":3,"interval":10},"tick_every":60},"subtype":"http","tags":["testing:api"],"type":"api"}' headers: Accept: - application/json @@ -15,20 +15,20 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"status":"live","public_id":"8ju-8gb-uzk","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD - test payload: synthetics_api_http_test_payload.json","deleted_at":null,"name":"Test-Create_an_API_HTTP_test_returns_OK_Returns_the_created_test_details_response-1645549949","monitor_id":64654479,"type":"api","created_at":"2022-02-22T17:12:30.659455+00:00","modified_at":"2022-02-22T17:12:30.659455+00:00","subtype":"http","config":{"request":{"certificate":{"cert":{"filename":"cert-filename","updatedAt":"2020-10-16T09:23:24.857Z"},"key":{"filename":"key-filename","updatedAt":"2020-10-16T09:23:24.857Z"}},"url":"https://datadoghq.com","headers":{"unique":"testcreateanapihttptestreturnsokreturnsthecreatedtestdetailsresponse1645549949"},"proxy":{"url":"https://datadoghq.com","headers":{}},"timeout":10,"method":"GET"},"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,"monitor_priority":5,"monitor_name":"Test-Create_an_API_HTTP_test_returns_OK_Returns_the_created_test_details_response-1645549949","tick_every":60}}' + string: '{"status":"live","public_id":"kpi-f4m-iz3","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD + test payload: synthetics_api_http_test_payload.json","deleted_at":null,"name":"Test-Create_an_API_HTTP_test_returns_OK_Returns_the_created_test_details_response-1660814393","monitor_id":80432993,"type":"api","created_at":"2022-08-18T09:19:53.801796+00:00","modified_at":"2022-08-18T09:19:53.801796+00:00","subtype":"http","config":{"request":{"certificate":{"cert":{"filename":"cert-filename","updatedAt":"2020-10-16T09:23:24.857Z"},"key":{"filename":"key-filename","updatedAt":"2020-10-16T09:23:24.857Z"}},"url":"https://datadoghq.com","headers":{"unique":"testcreateanapihttptestreturnsokreturnsthecreatedtestdetailsresponse1660814393"},"proxy":{"url":"https://datadoghq.com","headers":{}},"timeout":10,"method":"GET"},"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,"monitor_priority":5,"monitor_name":"Test-Create_an_API_HTTP_test_returns_OK_Returns_the_created_test_details_response-1660814393","tick_every":60}}' headers: Content-Type: - application/json status: code: 200 message: OK -- recorded_at: Tue, 22 Feb 2022 17:12:29 GMT +- recorded_at: Thu, 18 Aug 2022 09:19:53 GMT request: body: encoding: UTF-8 - string: '{"public_ids":["8ju-8gb-uzk"]}' + string: '{"public_ids":["kpi-f4m-iz3"]}' headers: Accept: - application/json @@ -39,7 +39,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"deleted_tests":[{"deleted_at":"2022-02-22T17:12:31.194196+00:00","public_id":"8ju-8gb-uzk"}]}' + string: '{"deleted_tests":[{"deleted_at":"2022-08-18T09:19:59.324953+00:00","public_id":"kpi-f4m-iz3"}]}' headers: Content-Type: - application/json diff --git a/cassettes/features/v1/synthetics/Create-an-API-SSL-test-returns-OK-Returns-the-created-test-details-response.frozen b/cassettes/features/v1/synthetics/Create-an-API-SSL-test-returns-OK-Returns-the-created-test-details-response.frozen index 15ecafd90260..d71baabea969 100644 --- a/cassettes/features/v1/synthetics/Create-an-API-SSL-test-returns-OK-Returns-the-created-test-details-response.frozen +++ b/cassettes/features/v1/synthetics/Create-an-API-SSL-test-returns-OK-Returns-the-created-test-details-response.frozen @@ -1 +1 @@ -2022-02-22T17:20:11.629Z \ No newline at end of file +2022-08-18T09:19:59.425Z \ No newline at end of file diff --git a/cassettes/features/v1/synthetics/Create-an-API-SSL-test-returns-OK-Returns-the-created-test-details-response.yml b/cassettes/features/v1/synthetics/Create-an-API-SSL-test-returns-OK-Returns-the-created-test-details-response.yml index 9f61fd01c022..b15e67e39735 100644 --- a/cassettes/features/v1/synthetics/Create-an-API-SSL-test-returns-OK-Returns-the-created-test-details-response.yml +++ b/cassettes/features/v1/synthetics/Create-an-API-SSL-test-returns-OK-Returns-the-created-test-details-response.yml @@ -1,10 +1,10 @@ http_interactions: -- recorded_at: Tue, 22 Feb 2022 17:20:11 GMT +- recorded_at: Thu, 18 Aug 2022 09:19:59 GMT request: body: encoding: UTF-8 string: '{"config":{"assertions":[{"operator":"isInMoreThan","target":10,"type":"certificate"}],"request":{"host":"datadoghq.com","port":443}},"locations":["aws:us-east-2"],"message":"BDD - test payload: synthetics_api_ssl_test_payload.json","name":"Test-Create_an_API_SSL_test_returns_OK_Returns_the_created_test_details_response-1645550411","options":{"accept_self_signed":true,"checkCertificateRevocation":true,"tick_every":60},"subtype":"ssl","tags":["testing:api"],"type":"api"}' + test payload: synthetics_api_ssl_test_payload.json","name":"Test-Create_an_API_SSL_test_returns_OK_Returns_the_created_test_details_response-1660814399","options":{"accept_self_signed":true,"checkCertificateRevocation":true,"tick_every":60},"subtype":"ssl","tags":["testing:api"],"type":"api"}' headers: Accept: - application/json @@ -15,19 +15,19 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"status":"live","public_id":"t4n-wba-ghj","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD - test payload: synthetics_api_ssl_test_payload.json","deleted_at":null,"name":"Test-Create_an_API_SSL_test_returns_OK_Returns_the_created_test_details_response-1645550411","monitor_id":64655318,"type":"api","created_at":"2022-02-22T17:20:12.060843+00:00","modified_at":"2022-02-22T17:20:12.060843+00:00","subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":10}]},"options":{"accept_self_signed":true,"checkCertificateRevocation":true,"tick_every":60}}' + string: '{"status":"live","public_id":"un2-xsk-hdz","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD + test payload: synthetics_api_ssl_test_payload.json","deleted_at":null,"name":"Test-Create_an_API_SSL_test_returns_OK_Returns_the_created_test_details_response-1660814399","monitor_id":80432997,"type":"api","created_at":"2022-08-18T09:20:00.062869+00:00","modified_at":"2022-08-18T09:20:00.062869+00:00","subtype":"ssl","config":{"request":{"host":"datadoghq.com","port":443},"assertions":[{"operator":"isInMoreThan","type":"certificate","target":10}]},"options":{"accept_self_signed":true,"checkCertificateRevocation":true,"tick_every":60}}' headers: Content-Type: - application/json status: code: 200 message: OK -- recorded_at: Tue, 22 Feb 2022 17:20:11 GMT +- recorded_at: Thu, 18 Aug 2022 09:19:59 GMT request: body: encoding: UTF-8 - string: '{"public_ids":["t4n-wba-ghj"]}' + string: '{"public_ids":["un2-xsk-hdz"]}' headers: Accept: - application/json @@ -38,7 +38,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"deleted_tests":[{"deleted_at":"2022-02-22T17:20:12.356340+00:00","public_id":"t4n-wba-ghj"}]}' + string: '{"deleted_tests":[{"deleted_at":"2022-08-18T09:20:05.548624+00:00","public_id":"un2-xsk-hdz"}]}' headers: Content-Type: - application/json diff --git a/cassettes/features/v1/synthetics/Create-an-API-test-with-UDP-subtype-returns-OK-Returns-the-created-test-details-response.frozen b/cassettes/features/v1/synthetics/Create-an-API-test-with-UDP-subtype-returns-OK-Returns-the-created-test-details-response.frozen index 0457e7493480..200e14600932 100644 --- a/cassettes/features/v1/synthetics/Create-an-API-test-with-UDP-subtype-returns-OK-Returns-the-created-test-details-response.frozen +++ b/cassettes/features/v1/synthetics/Create-an-API-test-with-UDP-subtype-returns-OK-Returns-the-created-test-details-response.frozen @@ -1 +1 @@ -2022-02-10T12:24:13.013Z \ No newline at end of file +2022-08-18T09:20:05.638Z \ No newline at end of file diff --git a/cassettes/features/v1/synthetics/Create-an-API-test-with-UDP-subtype-returns-OK-Returns-the-created-test-details-response.yml b/cassettes/features/v1/synthetics/Create-an-API-test-with-UDP-subtype-returns-OK-Returns-the-created-test-details-response.yml index 13881dc11cd2..2f75047c826f 100644 --- a/cassettes/features/v1/synthetics/Create-an-API-test-with-UDP-subtype-returns-OK-Returns-the-created-test-details-response.yml +++ b/cassettes/features/v1/synthetics/Create-an-API-test-with-UDP-subtype-returns-OK-Returns-the-created-test-details-response.yml @@ -1,10 +1,10 @@ http_interactions: -- recorded_at: Thu, 10 Feb 2022 12:24:13 GMT +- recorded_at: Thu, 18 Aug 2022 09:20:05 GMT request: body: encoding: UTF-8 string: '{"config":{"assertions":[{"operator":"is","target":"message","type":"receivedMessage"},{"operator":"lessThan","target":2000,"type":"responseTime"}],"configVariables":[],"request":{"host":"https://datadoghq.com","message":"message","port":443}},"locations":["aws:us-east-2"],"message":"BDD - test payload: synthetics_api_test_udp_payload.json","name":"Test-Create_an_API_test_with_UDP_subtype_returns_OK_Returns_the_created_test_details_response-1644495853","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_an_API_test_with_UDP_subtype_returns_OK_Returns_the_created_test_details_response-1644495853","monitor_priority":5,"retry":{"count":3,"interval":10},"tick_every":60},"subtype":"udp","tags":["testing:api"],"type":"api"}' + test payload: synthetics_api_test_udp_payload.json","name":"Test-Create_an_API_test_with_UDP_subtype_returns_OK_Returns_the_created_test_details_response-1660814405","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_an_API_test_with_UDP_subtype_returns_OK_Returns_the_created_test_details_response-1660814405","monitor_priority":5,"retry":{"count":3,"interval":10},"tick_every":60},"subtype":"udp","tags":["testing:api"],"type":"api"}' headers: Accept: - application/json @@ -15,19 +15,19 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"status":"live","public_id":"7sh-p28-ahf","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD - test payload: synthetics_api_test_udp_payload.json","deleted_at":null,"name":"Test-Create_an_API_test_with_UDP_subtype_returns_OK_Returns_the_created_test_details_response-1644495853","monitor_id":63812388,"type":"api","created_at":"2022-02-10T12:24:13.755017+00:00","modified_at":"2022-02-10T12:24:13.755017+00:00","subtype":"udp","config":{"request":{"host":"https://datadoghq.com","message":"message","port":443},"assertions":[{"operator":"is","type":"receivedMessage","target":"message"},{"operator":"lessThan","type":"responseTime","target":2000}],"configVariables":[]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"monitor_priority":5,"monitor_name":"Test-Create_an_API_test_with_UDP_subtype_returns_OK_Returns_the_created_test_details_response-1644495853","tick_every":60}}' + string: '{"status":"live","public_id":"igu-mwu-7it","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD + test payload: synthetics_api_test_udp_payload.json","deleted_at":null,"name":"Test-Create_an_API_test_with_UDP_subtype_returns_OK_Returns_the_created_test_details_response-1660814405","monitor_id":80432998,"type":"api","created_at":"2022-08-18T09:20:06.162061+00:00","modified_at":"2022-08-18T09:20:06.162061+00:00","subtype":"udp","config":{"request":{"host":"https://datadoghq.com","message":"message","port":443},"assertions":[{"operator":"is","type":"receivedMessage","target":"message"},{"operator":"lessThan","type":"responseTime","target":2000}],"configVariables":[]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"monitor_priority":5,"monitor_name":"Test-Create_an_API_test_with_UDP_subtype_returns_OK_Returns_the_created_test_details_response-1660814405","tick_every":60}}' headers: Content-Type: - application/json status: code: 200 message: OK -- recorded_at: Thu, 10 Feb 2022 12:24:13 GMT +- recorded_at: Thu, 18 Aug 2022 09:20:05 GMT request: body: encoding: UTF-8 - string: '{"public_ids":["7sh-p28-ahf"]}' + string: '{"public_ids":["igu-mwu-7it"]}' headers: Accept: - application/json @@ -38,7 +38,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"deleted_tests":[{"deleted_at":"2022-02-10T12:24:14.268581+00:00","public_id":"7sh-p28-ahf"}]}' + string: '{"deleted_tests":[{"deleted_at":"2022-08-18T09:20:11.608932+00:00","public_id":"igu-mwu-7it"}]}' headers: Content-Type: - application/json diff --git a/cassettes/features/v1/synthetics/Create-an-API-test-with-WEBSOCKET-subtype-returns-OK-Returns-the-created-test-details-response.frozen b/cassettes/features/v1/synthetics/Create-an-API-test-with-WEBSOCKET-subtype-returns-OK-Returns-the-created-test-details-response.frozen index c0f1973be541..ea71ab219a45 100644 --- a/cassettes/features/v1/synthetics/Create-an-API-test-with-WEBSOCKET-subtype-returns-OK-Returns-the-created-test-details-response.frozen +++ b/cassettes/features/v1/synthetics/Create-an-API-test-with-WEBSOCKET-subtype-returns-OK-Returns-the-created-test-details-response.frozen @@ -1 +1 @@ -2022-02-10T12:24:14.241Z \ No newline at end of file +2022-08-18T09:20:11.694Z \ No newline at end of file diff --git a/cassettes/features/v1/synthetics/Create-an-API-test-with-WEBSOCKET-subtype-returns-OK-Returns-the-created-test-details-response.yml b/cassettes/features/v1/synthetics/Create-an-API-test-with-WEBSOCKET-subtype-returns-OK-Returns-the-created-test-details-response.yml index b66ac965ac22..b62cec36aff4 100644 --- a/cassettes/features/v1/synthetics/Create-an-API-test-with-WEBSOCKET-subtype-returns-OK-Returns-the-created-test-details-response.yml +++ b/cassettes/features/v1/synthetics/Create-an-API-test-with-WEBSOCKET-subtype-returns-OK-Returns-the-created-test-details-response.yml @@ -1,10 +1,10 @@ http_interactions: -- recorded_at: Thu, 10 Feb 2022 12:24:14 GMT +- recorded_at: Thu, 18 Aug 2022 09:20:11 GMT request: body: encoding: UTF-8 string: '{"config":{"assertions":[{"operator":"is","target":"message","type":"receivedMessage"},{"operator":"lessThan","target":2000,"type":"responseTime"}],"configVariables":[],"request":{"message":"message","url":"ws://datadoghq.com"}},"locations":["aws:us-east-2"],"message":"BDD - test payload: synthetics_api_test_websocket_payload.json","name":"Test-Create_an_API_test_with_WEBSOCKET_subtype_returns_OK_Returns_the_created_test_details_response-1644495854","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_an_API_test_with_WEBSOCKET_subtype_returns_OK_Returns_the_created_test_details_response-1644495854","monitor_priority":5,"retry":{"count":3,"interval":10},"tick_every":60},"subtype":"websocket","tags":["testing:api"],"type":"api"}' + test payload: synthetics_api_test_websocket_payload.json","name":"Test-Create_an_API_test_with_WEBSOCKET_subtype_returns_OK_Returns_the_created_test_details_response-1660814411","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_an_API_test_with_WEBSOCKET_subtype_returns_OK_Returns_the_created_test_details_response-1660814411","monitor_priority":5,"retry":{"count":3,"interval":10},"tick_every":60},"subtype":"websocket","tags":["testing:api"],"type":"api"}' headers: Accept: - application/json @@ -15,19 +15,19 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"status":"live","public_id":"tg3-2te-nb8","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD - test payload: synthetics_api_test_websocket_payload.json","deleted_at":null,"name":"Test-Create_an_API_test_with_WEBSOCKET_subtype_returns_OK_Returns_the_created_test_details_response-1644495854","monitor_id":63812389,"type":"api","created_at":"2022-02-10T12:24:14.960894+00:00","modified_at":"2022-02-10T12:24:14.960894+00:00","subtype":"websocket","config":{"request":{"url":"ws://datadoghq.com","message":"message"},"assertions":[{"operator":"is","type":"receivedMessage","target":"message"},{"operator":"lessThan","type":"responseTime","target":2000}],"configVariables":[]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"monitor_priority":5,"monitor_name":"Test-Create_an_API_test_with_WEBSOCKET_subtype_returns_OK_Returns_the_created_test_details_response-1644495854","tick_every":60}}' + string: '{"status":"live","public_id":"p3q-9uk-tvy","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD + test payload: synthetics_api_test_websocket_payload.json","deleted_at":null,"name":"Test-Create_an_API_test_with_WEBSOCKET_subtype_returns_OK_Returns_the_created_test_details_response-1660814411","monitor_id":80433006,"type":"api","created_at":"2022-08-18T09:20:13.090160+00:00","modified_at":"2022-08-18T09:20:13.090160+00:00","subtype":"websocket","config":{"request":{"url":"ws://datadoghq.com","message":"message"},"assertions":[{"operator":"is","type":"receivedMessage","target":"message"},{"operator":"lessThan","type":"responseTime","target":2000}],"configVariables":[]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"monitor_priority":5,"monitor_name":"Test-Create_an_API_test_with_WEBSOCKET_subtype_returns_OK_Returns_the_created_test_details_response-1660814411","tick_every":60}}' headers: Content-Type: - application/json status: code: 200 message: OK -- recorded_at: Thu, 10 Feb 2022 12:24:14 GMT +- recorded_at: Thu, 18 Aug 2022 09:20:11 GMT request: body: encoding: UTF-8 - string: '{"public_ids":["tg3-2te-nb8"]}' + string: '{"public_ids":["p3q-9uk-tvy"]}' headers: Accept: - application/json @@ -38,7 +38,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"deleted_tests":[{"deleted_at":"2022-02-10T12:24:15.453739+00:00","public_id":"tg3-2te-nb8"}]}' + string: '{"deleted_tests":[{"deleted_at":"2022-08-18T09:20:18.519569+00:00","public_id":"p3q-9uk-tvy"}]}' headers: Content-Type: - application/json diff --git a/cassettes/features/v1/synthetics/Create-an-API-test-with-multi-subtype-returns-OK-Returns-the-created-test-details-response.frozen b/cassettes/features/v1/synthetics/Create-an-API-test-with-multi-subtype-returns-OK-Returns-the-created-test-details-response.frozen index 70c204327c97..8c12ae96cb41 100644 --- a/cassettes/features/v1/synthetics/Create-an-API-test-with-multi-subtype-returns-OK-Returns-the-created-test-details-response.frozen +++ b/cassettes/features/v1/synthetics/Create-an-API-test-with-multi-subtype-returns-OK-Returns-the-created-test-details-response.frozen @@ -1 +1 @@ -2022-02-10T12:24:15.420Z \ No newline at end of file +2022-08-18T09:20:18.603Z \ No newline at end of file diff --git a/cassettes/features/v1/synthetics/Create-an-API-test-with-multi-subtype-returns-OK-Returns-the-created-test-details-response.yml b/cassettes/features/v1/synthetics/Create-an-API-test-with-multi-subtype-returns-OK-Returns-the-created-test-details-response.yml index 8227b7f81d0a..9e7379b01d73 100644 --- a/cassettes/features/v1/synthetics/Create-an-API-test-with-multi-subtype-returns-OK-Returns-the-created-test-details-response.yml +++ b/cassettes/features/v1/synthetics/Create-an-API-test-with-multi-subtype-returns-OK-Returns-the-created-test-details-response.yml @@ -1,11 +1,11 @@ http_interactions: -- recorded_at: Thu, 10 Feb 2022 12:24:15 GMT +- recorded_at: Thu, 18 Aug 2022 09:20:18 GMT request: body: encoding: UTF-8 string: '{"config":{"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"isCritical":true,"name":"request is sent","request":{"method":"GET","timeout":10,"url":"https://datadoghq.com"},"retry":{"count":5,"interval":1000},"subtype":"http"}]},"locations":["aws:us-east-2"],"message":"BDD - test payload: synthetics_api_test_multi_step_payload.json","name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1644495855","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1644495855","monitor_priority":5,"retry":{"count":3,"interval":1000},"tick_every":60},"subtype":"multi","tags":["testing:api"],"type":"api"}' + test payload: synthetics_api_test_multi_step_payload.json","name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1660814418","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1660814418","monitor_priority":5,"retry":{"count":3,"interval":1000},"tick_every":60},"subtype":"multi","tags":["testing:api"],"type":"api"}' headers: Accept: - application/json @@ -16,20 +16,20 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"status":"live","public_id":"b9s-ywq-qhf","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD - test payload: synthetics_api_test_multi_step_payload.json","deleted_at":null,"name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1644495855","monitor_id":63812390,"type":"api","created_at":"2022-02-10T12:24:16.216698+00:00","modified_at":"2022-02-10T12:24:16.216698+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"request - is sent","request":{"url":"https://datadoghq.com","method":"GET","timeout":10},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":true,"id":"78t-9y9-ejd"}],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":1000},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"monitor_priority":5,"monitor_name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1644495855","tick_every":60}}' + string: '{"status":"live","public_id":"az2-946-wa5","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD + test payload: synthetics_api_test_multi_step_payload.json","deleted_at":null,"name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1660814418","monitor_id":80433007,"type":"api","created_at":"2022-08-18T09:20:19.062726+00:00","modified_at":"2022-08-18T09:20:19.062726+00:00","subtype":"multi","config":{"steps":[{"retry":{"count":5,"interval":1000},"name":"request + is sent","request":{"url":"https://datadoghq.com","method":"GET","timeout":10},"subtype":"http","allowFailure":true,"assertions":[{"operator":"is","type":"statusCode","target":200}],"isCritical":true,"id":"ckq-6h4-t7f"}],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":1000},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"monitor_priority":5,"monitor_name":"Test-Create_an_API_test_with_multi_subtype_returns_OK_Returns_the_created_test_details_response-1660814418","tick_every":60}}' headers: Content-Type: - application/json status: code: 200 message: OK -- recorded_at: Thu, 10 Feb 2022 12:24:15 GMT +- recorded_at: Thu, 18 Aug 2022 09:20:18 GMT request: body: encoding: UTF-8 - string: '{"public_ids":["b9s-ywq-qhf"]}' + string: '{"public_ids":["az2-946-wa5"]}' headers: Accept: - application/json @@ -40,7 +40,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"deleted_tests":[{"deleted_at":"2022-02-10T12:24:16.747773+00:00","public_id":"b9s-ywq-qhf"}]}' + string: '{"deleted_tests":[{"deleted_at":"2022-08-18T09:20:24.633532+00:00","public_id":"az2-946-wa5"}]}' headers: Content-Type: - application/json diff --git a/cassettes/features/v1/synthetics/Edit-an-API-test-returns-OK-response.frozen b/cassettes/features/v1/synthetics/Edit-an-API-test-returns-OK-response.frozen index 33f86f70d064..65c2eff256d4 100644 --- a/cassettes/features/v1/synthetics/Edit-an-API-test-returns-OK-response.frozen +++ b/cassettes/features/v1/synthetics/Edit-an-API-test-returns-OK-response.frozen @@ -1 +1 @@ -2022-02-22T17:12:31.674Z \ No newline at end of file +2022-08-18T09:20:24.736Z \ No newline at end of file diff --git a/cassettes/features/v1/synthetics/Edit-an-API-test-returns-OK-response.yml b/cassettes/features/v1/synthetics/Edit-an-API-test-returns-OK-response.yml index 7461f168a6e8..21b37ec8d653 100644 --- a/cassettes/features/v1/synthetics/Edit-an-API-test-returns-OK-response.yml +++ b/cassettes/features/v1/synthetics/Edit-an-API-test-returns-OK-response.yml @@ -1,10 +1,10 @@ http_interactions: -- recorded_at: Tue, 22 Feb 2022 17:12:31 GMT +- recorded_at: Thu, 18 Aug 2022 09:20:24 GMT request: body: encoding: UTF-8 - string: '{"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":{"unique":"testeditanapitestreturnsokresponse1645549951"},"method":"GET","proxy":{"headers":{},"url":"https://datadoghq.com"},"timeout":10,"url":"https://datadoghq.com"}},"locations":["aws:us-east-2"],"message":"BDD - test payload: synthetics_api_http_test_payload.json","name":"Test-Edit_an_API_test_returns_OK_response-1645549951","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Edit_an_API_test_returns_OK_response-1645549951","monitor_priority":5,"retry":{"count":3,"interval":10},"tick_every":60},"subtype":"http","tags":["testing:api"],"type":"api"}' + string: '{"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":{"unique":"testeditanapitestreturnsokresponse1660814424"},"method":"GET","proxy":{"headers":{},"url":"https://datadoghq.com"},"timeout":10,"url":"https://datadoghq.com"}},"locations":["aws:us-east-2"],"message":"BDD + test payload: synthetics_api_http_test_payload.json","name":"Test-Edit_an_API_test_returns_OK_response-1660814424","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Edit_an_API_test_returns_OK_response-1660814424","monitor_priority":5,"retry":{"count":3,"interval":10},"tick_every":60},"subtype":"http","tags":["testing:api"],"type":"api"}' headers: Accept: - application/json @@ -15,33 +15,33 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"status":"live","public_id":"y28-82w-h8h","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD - test payload: synthetics_api_http_test_payload.json","deleted_at":null,"name":"Test-Edit_an_API_test_returns_OK_response-1645549951","monitor_id":64654480,"type":"api","created_at":"2022-02-22T17:12:32.292615+00:00","modified_at":"2022-02-22T17:12:32.292615+00:00","subtype":"http","config":{"request":{"certificate":{"cert":{"filename":"cert-filename","updatedAt":"2020-10-16T09:23:24.857Z"},"key":{"filename":"key-filename","updatedAt":"2020-10-16T09:23:24.857Z"}},"url":"https://datadoghq.com","headers":{"unique":"testeditanapitestreturnsokresponse1645549951"},"proxy":{"url":"https://datadoghq.com","headers":{}},"timeout":10,"method":"GET"},"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,"monitor_priority":5,"monitor_name":"Test-Edit_an_API_test_returns_OK_response-1645549951","tick_every":60}}' + string: '{"status":"live","public_id":"v2f-m2c-pvu","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD + test payload: synthetics_api_http_test_payload.json","deleted_at":null,"name":"Test-Edit_an_API_test_returns_OK_response-1660814424","monitor_id":80433008,"type":"api","created_at":"2022-08-18T09:20:25.247473+00:00","modified_at":"2022-08-18T09:20:25.247473+00:00","subtype":"http","config":{"request":{"certificate":{"cert":{"filename":"cert-filename","updatedAt":"2020-10-16T09:23:24.857Z"},"key":{"filename":"key-filename","updatedAt":"2020-10-16T09:23:24.857Z"}},"url":"https://datadoghq.com","headers":{"unique":"testeditanapitestreturnsokresponse1660814424"},"proxy":{"url":"https://datadoghq.com","headers":{}},"timeout":10,"method":"GET"},"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,"monitor_priority":5,"monitor_name":"Test-Edit_an_API_test_returns_OK_response-1660814424","tick_every":60}}' headers: Content-Type: - application/json status: code: 200 message: OK -- recorded_at: Tue, 22 Feb 2022 17:12:31 GMT +- recorded_at: Thu, 18 Aug 2022 09:20:24 GMT request: body: encoding: UTF-8 - string: '{"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":{"filename":"cert-filename","updatedAt":"2020-10-16T09:23:24.857Z"},"key":{"filename":"key-filename","updatedAt":"2020-10-16T09:23:24.857Z"}},"headers":{"unique":"testeditanapitestreturnsokresponse1645549951"},"method":"GET","timeout":10,"url":"https://datadoghq.com"}},"locations":["aws:us-east-2"],"message":"BDD - test payload: synthetics_api_test_payload.json","name":"Test-Edit_an_API_test_returns_OK_response-1645549951-updated","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-TestSyntheticsAPITestLifecycle-1623076664","monitor_priority":5,"retry":{"count":3,"interval":10},"tick_every":60},"status":"live","subtype":"http","tags":["testing:api"],"type":"api"}' + string: '{"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":{"filename":"cert-filename","updatedAt":"2020-10-16T09:23:24.857Z"},"key":{"filename":"key-filename","updatedAt":"2020-10-16T09:23:24.857Z"}},"headers":{"unique":"testeditanapitestreturnsokresponse1660814424"},"method":"GET","timeout":10,"url":"https://datadoghq.com"}},"locations":["aws:us-east-2"],"message":"BDD + test payload: synthetics_api_test_payload.json","name":"Test-Edit_an_API_test_returns_OK_response-1660814424-updated","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-TestSyntheticsAPITestLifecycle-1623076664","monitor_priority":5,"retry":{"count":3,"interval":10},"tick_every":60},"status":"live","subtype":"http","tags":["testing:api"],"type":"api"}' headers: Accept: - application/json Content-Type: - application/json method: PUT - uri: https://api.datadoghq.com/api/v1/synthetics/tests/api/y28-82w-h8h + uri: https://api.datadoghq.com/api/v1/synthetics/tests/api/v2f-m2c-pvu response: body: encoding: UTF-8 - string: '{"status":"live","public_id":"y28-82w-h8h","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD - test payload: synthetics_api_test_payload.json","deleted_at":null,"name":"Test-Edit_an_API_test_returns_OK_response-1645549951-updated","monitor_id":64654480,"type":"api","created_at":"2022-02-22T17:12:32.292615+00:00","modified_at":"2022-02-22T17:12:32.924452+00:00","subtype":"http","config":{"request":{"url":"https://datadoghq.com","headers":{"unique":"testeditanapitestreturnsokresponse1645549951"},"certificate":{"cert":{"updatedAt":"2020-10-16T09:23:24.857Z","filename":"cert-filename"},"key":{"updatedAt":"2020-10-16T09:23:24.857Z","filename":"key-filename"}},"method":"GET","timeout":10},"assertions":[{"operator":"is","property":"{{ + string: '{"status":"live","public_id":"v2f-m2c-pvu","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD + test payload: synthetics_api_test_payload.json","deleted_at":null,"name":"Test-Edit_an_API_test_returns_OK_response-1660814424-updated","monitor_id":80433008,"type":"api","created_at":"2022-08-18T09:20:25.247473+00:00","modified_at":"2022-08-18T09:20:25.796841+00:00","subtype":"http","config":{"request":{"url":"https://datadoghq.com","headers":{"unique":"testeditanapitestreturnsokresponse1660814424"},"certificate":{"cert":{"updatedAt":"2020-10-16T09:23:24.857Z","filename":"cert-filename"},"key":{"updatedAt":"2020-10-16T09:23:24.857Z","filename":"key-filename"}},"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,"monitor_priority":5,"monitor_name":"Test-TestSyntheticsAPITestLifecycle-1623076664","tick_every":60}}' headers: Content-Type: @@ -49,11 +49,11 @@ http_interactions: status: code: 200 message: OK -- recorded_at: Tue, 22 Feb 2022 17:12:31 GMT +- recorded_at: Thu, 18 Aug 2022 09:20:24 GMT request: body: encoding: UTF-8 - string: '{"public_ids":["y28-82w-h8h"]}' + string: '{"public_ids":["v2f-m2c-pvu"]}' headers: Accept: - application/json @@ -64,7 +64,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"deleted_tests":[{"deleted_at":"2022-02-22T17:12:33.680393+00:00","public_id":"y28-82w-h8h"}]}' + string: '{"deleted_tests":[{"deleted_at":"2022-08-18T09:20:31.454991+00:00","public_id":"v2f-m2c-pvu"}]}' headers: Content-Type: - application/json diff --git a/cassettes/features/v1/synthetics/Trigger-Synthetics-tests-returns-OK-response.frozen b/cassettes/features/v1/synthetics/Trigger-Synthetics-tests-returns-OK-response.frozen index 3fdd16988056..12092e15dd59 100644 --- a/cassettes/features/v1/synthetics/Trigger-Synthetics-tests-returns-OK-response.frozen +++ b/cassettes/features/v1/synthetics/Trigger-Synthetics-tests-returns-OK-response.frozen @@ -1 +1 @@ -2022-02-22T17:12:33.664Z \ No newline at end of file +2022-08-18T09:20:31.606Z \ No newline at end of file diff --git a/cassettes/features/v1/synthetics/Trigger-Synthetics-tests-returns-OK-response.yml b/cassettes/features/v1/synthetics/Trigger-Synthetics-tests-returns-OK-response.yml index 6757e757c2d0..be9200b2f362 100644 --- a/cassettes/features/v1/synthetics/Trigger-Synthetics-tests-returns-OK-response.yml +++ b/cassettes/features/v1/synthetics/Trigger-Synthetics-tests-returns-OK-response.yml @@ -1,10 +1,10 @@ http_interactions: -- recorded_at: Tue, 22 Feb 2022 17:12:33 GMT +- recorded_at: Thu, 18 Aug 2022 09:20:31 GMT request: body: encoding: UTF-8 - string: '{"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":{"unique":"testtriggersyntheticstestsreturnsokresponse1645549953"},"method":"GET","proxy":{"headers":{},"url":"https://datadoghq.com"},"timeout":10,"url":"https://datadoghq.com"}},"locations":["aws:us-east-2"],"message":"BDD - test payload: synthetics_api_http_test_payload.json","name":"Test-Trigger_Synthetics_tests_returns_OK_response-1645549953","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Trigger_Synthetics_tests_returns_OK_response-1645549953","monitor_priority":5,"retry":{"count":3,"interval":10},"tick_every":60},"subtype":"http","tags":["testing:api"],"type":"api"}' + string: '{"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":{"unique":"testtriggersyntheticstestsreturnsokresponse1660814431"},"method":"GET","proxy":{"headers":{},"url":"https://datadoghq.com"},"timeout":10,"url":"https://datadoghq.com"}},"locations":["aws:us-east-2"],"message":"BDD + test payload: synthetics_api_http_test_payload.json","name":"Test-Trigger_Synthetics_tests_returns_OK_response-1660814431","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Trigger_Synthetics_tests_returns_OK_response-1660814431","monitor_priority":5,"retry":{"count":3,"interval":10},"tick_every":60},"subtype":"http","tags":["testing:api"],"type":"api"}' headers: Accept: - application/json @@ -15,20 +15,20 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"status":"live","public_id":"4fn-sy5-enu","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD - test payload: synthetics_api_http_test_payload.json","deleted_at":null,"name":"Test-Trigger_Synthetics_tests_returns_OK_response-1645549953","monitor_id":64654481,"type":"api","created_at":"2022-02-22T17:12:34.372050+00:00","modified_at":"2022-02-22T17:12:34.372050+00:00","subtype":"http","config":{"request":{"certificate":{"cert":{"filename":"cert-filename","updatedAt":"2020-10-16T09:23:24.857Z"},"key":{"filename":"key-filename","updatedAt":"2020-10-16T09:23:24.857Z"}},"url":"https://datadoghq.com","headers":{"unique":"testtriggersyntheticstestsreturnsokresponse1645549953"},"proxy":{"url":"https://datadoghq.com","headers":{}},"timeout":10,"method":"GET"},"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,"monitor_priority":5,"monitor_name":"Test-Trigger_Synthetics_tests_returns_OK_response-1645549953","tick_every":60}}' + string: '{"status":"live","public_id":"57g-3q8-f9r","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD + test payload: synthetics_api_http_test_payload.json","deleted_at":null,"name":"Test-Trigger_Synthetics_tests_returns_OK_response-1660814431","monitor_id":80433010,"type":"api","created_at":"2022-08-18T09:20:32.233420+00:00","modified_at":"2022-08-18T09:20:32.233420+00:00","subtype":"http","config":{"request":{"certificate":{"cert":{"filename":"cert-filename","updatedAt":"2020-10-16T09:23:24.857Z"},"key":{"filename":"key-filename","updatedAt":"2020-10-16T09:23:24.857Z"}},"url":"https://datadoghq.com","headers":{"unique":"testtriggersyntheticstestsreturnsokresponse1660814431"},"proxy":{"url":"https://datadoghq.com","headers":{}},"timeout":10,"method":"GET"},"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,"monitor_priority":5,"monitor_name":"Test-Trigger_Synthetics_tests_returns_OK_response-1660814431","tick_every":60}}' headers: Content-Type: - application/json status: code: 200 message: OK -- recorded_at: Tue, 22 Feb 2022 17:12:33 GMT +- recorded_at: Thu, 18 Aug 2022 09:20:31 GMT request: body: encoding: UTF-8 - string: '{"tests":[{"public_id":"4fn-sy5-enu"}]}' + string: '{"tests":[{"public_id":"57g-3q8-f9r"}]}' headers: Accept: - application/json @@ -39,7 +39,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"batch_id":null,"results":[{"result_id":"630089876876805805","public_id":"4fn-sy5-enu","location":30005}],"triggered_check_ids":["4fn-sy5-enu"],"locations":[{"display_name":"Ohio + string: '{"batch_id":null,"results":[{"result_id":"3936984291334337482","public_id":"57g-3q8-f9r","location":30005}],"triggered_check_ids":["57g-3q8-f9r"],"locations":[{"display_name":"Ohio (AWS)","name":"aws:us-east-2","region":"Americas","is_active":true,"is_public":true,"id":30005}]}' headers: Content-Type: @@ -47,11 +47,11 @@ http_interactions: status: code: 200 message: OK -- recorded_at: Tue, 22 Feb 2022 17:12:33 GMT +- recorded_at: Thu, 18 Aug 2022 09:20:31 GMT request: body: encoding: UTF-8 - string: '{"public_ids":["4fn-sy5-enu"]}' + string: '{"public_ids":["57g-3q8-f9r"]}' headers: Accept: - application/json @@ -62,7 +62,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"deleted_tests":[{"deleted_at":"2022-02-22T17:12:40.289621+00:00","public_id":"4fn-sy5-enu"}]}' + string: '{"deleted_tests":[{"deleted_at":"2022-08-18T09:20:38.190941+00:00","public_id":"57g-3q8-f9r"}]}' headers: Content-Type: - application/json diff --git a/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb b/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb index 34ac6220b3b5..79e2d5c23fd9 100644 --- a/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +++ b/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb @@ -17,6 +17,9 @@ request: DatadogAPIClient::V1::SyntheticsTestRequest.new({ method: DatadogAPIClient::V1::HTTPMethod::GET, url: "https://datadoghq.com", + certificate_domains: [ + "https://datadoghq.com", + ], }), set_cookie: "name:test", }), @@ -49,6 +52,9 @@ ci: DatadogAPIClient::V1::SyntheticsTestCiOptions.new({ execution_rule: DatadogAPIClient::V1::SyntheticsTestExecutionRule::SKIPPED, }), + ignore_server_certificate_error: true, + disable_csp: true, + initial_navigation_timeout: 200, }), tags: [ "testing:browser", diff --git a/examples/v1/synthetics/UpdateBrowserTest.rb b/examples/v1/synthetics/UpdateBrowserTest.rb index b91e79576ab4..15473af3be79 100644 --- a/examples/v1/synthetics/UpdateBrowserTest.rb +++ b/examples/v1/synthetics/UpdateBrowserTest.rb @@ -22,6 +22,7 @@ cert: DatadogAPIClient::V1::SyntheticsTestRequestCertificateItem.new({}), key: DatadogAPIClient::V1::SyntheticsTestRequestCertificateItem.new({}), }), + certificate_domains: [], method: DatadogAPIClient::V1::HTTPMethod::GET, proxy: DatadogAPIClient::V1::SyntheticsTestRequestProxy.new({ url: "https://example.com", diff --git a/features/v1/synthetics.feature b/features/v1/synthetics.feature index f0272abb3e8a..0da8d26ac813 100644 --- a/features/v1/synthetics.feature +++ b/features/v1/synthetics.feature @@ -34,7 +34,7 @@ Feature: Synthetics @generated @skip @team:DataDog/synthetics-app Scenario: Create a browser test returns "- JSON format is wrong" response Given new "CreateSyntheticsBrowserTest" request - And body with value {"config": {"assertions": [], "configVariables": [{"name": "VARIABLE_NAME", "type": "text"}], "request": {"basicAuth": {"password": "PaSSw0RD!", "type": "web", "username": "my_username"}, "certificate": {"cert": {}, "key": {}}, "method": "GET", "proxy": {"url": "https://example.com"}, "url": "https://example.com"}, "variables": [{"name": "VARIABLE_NAME", "type": "text"}]}, "locations": ["aws:eu-west-3"], "message": "", "name": "Example test name", "options": {"ci": {"executionRule": "blocking"}, "device_ids": ["laptop_large"], "monitor_options": {}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "rumSettings": {"applicationId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "clientTokenId": 12345, "isEnabled": true}}, "status": "live", "steps": [{"type": "assertElementContent"}], "tags": ["env:prod"], "type": "browser"} + And body with value {"config": {"assertions": [], "configVariables": [{"name": "VARIABLE_NAME", "type": "text"}], "request": {"basicAuth": {"password": "PaSSw0RD!", "type": "web", "username": "my_username"}, "certificate": {"cert": {}, "key": {}}, "certificateDomains": [], "method": "GET", "proxy": {"url": "https://example.com"}, "url": "https://example.com"}, "variables": [{"name": "VARIABLE_NAME", "type": "text"}]}, "locations": ["aws:eu-west-3"], "message": "", "name": "Example test name", "options": {"ci": {"executionRule": "blocking"}, "device_ids": ["laptop_large"], "monitor_options": {}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "rumSettings": {"applicationId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "clientTokenId": 12345, "isEnabled": true}}, "status": "live", "steps": [{"type": "assertElementContent"}], "tags": ["env:prod"], "type": "browser"} When the request is sent Then the response status is 400 - JSON format is wrong @@ -59,7 +59,7 @@ Feature: Synthetics @generated @skip @team:DataDog/synthetics-app Scenario: Create a browser test returns "Test quota is reached" response Given new "CreateSyntheticsBrowserTest" request - And body with value {"config": {"assertions": [], "configVariables": [{"name": "VARIABLE_NAME", "type": "text"}], "request": {"basicAuth": {"password": "PaSSw0RD!", "type": "web", "username": "my_username"}, "certificate": {"cert": {}, "key": {}}, "method": "GET", "proxy": {"url": "https://example.com"}, "url": "https://example.com"}, "variables": [{"name": "VARIABLE_NAME", "type": "text"}]}, "locations": ["aws:eu-west-3"], "message": "", "name": "Example test name", "options": {"ci": {"executionRule": "blocking"}, "device_ids": ["laptop_large"], "monitor_options": {}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "rumSettings": {"applicationId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "clientTokenId": 12345, "isEnabled": true}}, "status": "live", "steps": [{"type": "assertElementContent"}], "tags": ["env:prod"], "type": "browser"} + And body with value {"config": {"assertions": [], "configVariables": [{"name": "VARIABLE_NAME", "type": "text"}], "request": {"basicAuth": {"password": "PaSSw0RD!", "type": "web", "username": "my_username"}, "certificate": {"cert": {}, "key": {}}, "certificateDomains": [], "method": "GET", "proxy": {"url": "https://example.com"}, "url": "https://example.com"}, "variables": [{"name": "VARIABLE_NAME", "type": "text"}]}, "locations": ["aws:eu-west-3"], "message": "", "name": "Example test name", "options": {"ci": {"executionRule": "blocking"}, "device_ids": ["laptop_large"], "monitor_options": {}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "rumSettings": {"applicationId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "clientTokenId": 12345, "isEnabled": true}}, "status": "live", "steps": [{"type": "assertElementContent"}], "tags": ["env:prod"], "type": "browser"} When the request is sent Then the response status is 402 Test quota is reached @@ -232,7 +232,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 "REPLACE.ME" - And body with value {"config": {"assertions": [], "configVariables": [{"name": "VARIABLE_NAME", "type": "text"}], "request": {"basicAuth": {"password": "PaSSw0RD!", "type": "web", "username": "my_username"}, "certificate": {"cert": {}, "key": {}}, "method": "GET", "proxy": {"url": "https://example.com"}, "url": "https://example.com"}, "variables": [{"name": "VARIABLE_NAME", "type": "text"}]}, "locations": ["aws:eu-west-3"], "message": "", "name": "Example test name", "options": {"ci": {"executionRule": "blocking"}, "device_ids": ["laptop_large"], "monitor_options": {}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "rumSettings": {"applicationId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "clientTokenId": 12345, "isEnabled": true}}, "status": "live", "steps": [{"type": "assertElementContent"}], "tags": ["env:prod"], "type": "browser"} + And body with value {"config": {"assertions": [], "configVariables": [{"name": "VARIABLE_NAME", "type": "text"}], "request": {"basicAuth": {"password": "PaSSw0RD!", "type": "web", "username": "my_username"}, "certificate": {"cert": {}, "key": {}}, "certificateDomains": [], "method": "GET", "proxy": {"url": "https://example.com"}, "url": "https://example.com"}, "variables": [{"name": "VARIABLE_NAME", "type": "text"}]}, "locations": ["aws:eu-west-3"], "message": "", "name": "Example test name", "options": {"ci": {"executionRule": "blocking"}, "device_ids": ["laptop_large"], "monitor_options": {}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "rumSettings": {"applicationId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "clientTokenId": 12345, "isEnabled": true}}, "status": "live", "steps": [{"type": "assertElementContent"}], "tags": ["env:prod"], "type": "browser"} When the request is sent Then the response status is 400 - JSON format is wrong @@ -240,7 +240,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 "REPLACE.ME" - And body with value {"config": {"assertions": [], "configVariables": [{"name": "VARIABLE_NAME", "type": "text"}], "request": {"basicAuth": {"password": "PaSSw0RD!", "type": "web", "username": "my_username"}, "certificate": {"cert": {}, "key": {}}, "method": "GET", "proxy": {"url": "https://example.com"}, "url": "https://example.com"}, "variables": [{"name": "VARIABLE_NAME", "type": "text"}]}, "locations": ["aws:eu-west-3"], "message": "", "name": "Example test name", "options": {"ci": {"executionRule": "blocking"}, "device_ids": ["laptop_large"], "monitor_options": {}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "rumSettings": {"applicationId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "clientTokenId": 12345, "isEnabled": true}}, "status": "live", "steps": [{"type": "assertElementContent"}], "tags": ["env:prod"], "type": "browser"} + And body with value {"config": {"assertions": [], "configVariables": [{"name": "VARIABLE_NAME", "type": "text"}], "request": {"basicAuth": {"password": "PaSSw0RD!", "type": "web", "username": "my_username"}, "certificate": {"cert": {}, "key": {}}, "certificateDomains": [], "method": "GET", "proxy": {"url": "https://example.com"}, "url": "https://example.com"}, "variables": [{"name": "VARIABLE_NAME", "type": "text"}]}, "locations": ["aws:eu-west-3"], "message": "", "name": "Example test name", "options": {"ci": {"executionRule": "blocking"}, "device_ids": ["laptop_large"], "monitor_options": {}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "rumSettings": {"applicationId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "clientTokenId": 12345, "isEnabled": true}}, "status": "live", "steps": [{"type": "assertElementContent"}], "tags": ["env:prod"], "type": "browser"} When the request is sent Then the response status is 404 - Synthetic Monitoring is not activated for the user @@ -248,7 +248,7 @@ Feature: Synthetics Scenario: Edit a browser test returns "OK" response Given new "UpdateBrowserTest" request And request contains "public_id" parameter from "REPLACE.ME" - And body with value {"config": {"assertions": [], "configVariables": [{"name": "VARIABLE_NAME", "type": "text"}], "request": {"basicAuth": {"password": "PaSSw0RD!", "type": "web", "username": "my_username"}, "certificate": {"cert": {}, "key": {}}, "method": "GET", "proxy": {"url": "https://example.com"}, "url": "https://example.com"}, "variables": [{"name": "VARIABLE_NAME", "type": "text"}]}, "locations": ["aws:eu-west-3"], "message": "", "name": "Example test name", "options": {"ci": {"executionRule": "blocking"}, "device_ids": ["laptop_large"], "monitor_options": {}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "rumSettings": {"applicationId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "clientTokenId": 12345, "isEnabled": true}}, "status": "live", "steps": [{"type": "assertElementContent"}], "tags": ["env:prod"], "type": "browser"} + And body with value {"config": {"assertions": [], "configVariables": [{"name": "VARIABLE_NAME", "type": "text"}], "request": {"basicAuth": {"password": "PaSSw0RD!", "type": "web", "username": "my_username"}, "certificate": {"cert": {}, "key": {}}, "certificateDomains": [], "method": "GET", "proxy": {"url": "https://example.com"}, "url": "https://example.com"}, "variables": [{"name": "VARIABLE_NAME", "type": "text"}]}, "locations": ["aws:eu-west-3"], "message": "", "name": "Example test name", "options": {"ci": {"executionRule": "blocking"}, "device_ids": ["laptop_large"], "monitor_options": {}, "restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry": {}, "rumSettings": {"applicationId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "clientTokenId": 12345, "isEnabled": true}}, "status": "live", "steps": [{"type": "assertElementContent"}], "tags": ["env:prod"], "type": "browser"} When the request is sent Then the response status is 200 OK diff --git a/features/v1/synthetics_browser_test_payload_with_rum_settings.json b/features/v1/synthetics_browser_test_payload_with_rum_settings.json index 886e09e1883a..1d7086c8101e 100644 --- a/features/v1/synthetics_browser_test_payload_with_rum_settings.json +++ b/features/v1/synthetics_browser_test_payload_with_rum_settings.json @@ -9,7 +9,11 @@ "type": "text" } ], - "request": { "method": "GET", "url": "https://datadoghq.com" }, + "request": { + "method": "GET", + "url": "https://datadoghq.com", + "certificateDomains": ["https://datadoghq.com"] + }, "setCookie": "name:test" }, "locations": ["aws:us-east-2"], @@ -33,7 +37,10 @@ "tick_every": 300, "ci": { "executionRule": "skipped" - } + }, + "ignoreServerCertificateError": true, + "disableCsp": true, + "initialNavigationTimeout": 200 }, "tags": ["testing:browser"], "type": "browser", diff --git a/lib/datadog_api_client/v1/models/synthetics_test_options.rb b/lib/datadog_api_client/v1/models/synthetics_test_options.rb index c205af23f74f..147bf7daad9a 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options.rb @@ -44,9 +44,18 @@ class SyntheticsTestOptions # Whether or not to disable CORS mechanism. attr_accessor :disable_cors + # Disable Content Security Policy for browser tests. + attr_accessor :disable_csp + # For API HTTP test, whether or not the test should follow redirects. attr_accessor :follow_redirects + # Ignore server certificate error. + attr_accessor :ignore_server_certificate_error + + # Timeout before declaring the initial step as failed (in seconds) for browser tests. + attr_accessor :initial_navigation_timeout + # Minimum amount of time in failure required to trigger an alert. attr_accessor :min_failure_duration @@ -99,7 +108,10 @@ def self.attribute_map :'ci' => :'ci', :'device_ids' => :'device_ids', :'disable_cors' => :'disableCors', + :'disable_csp' => :'disableCsp', :'follow_redirects' => :'follow_redirects', + :'ignore_server_certificate_error' => :'ignoreServerCertificateError', + :'initial_navigation_timeout' => :'initialNavigationTimeout', :'min_failure_duration' => :'min_failure_duration', :'min_location_failed' => :'min_location_failed', :'monitor_name' => :'monitor_name', @@ -129,7 +141,10 @@ def self.openapi_types :'ci' => :'SyntheticsTestCiOptions', :'device_ids' => :'Array', :'disable_cors' => :'Boolean', + :'disable_csp' => :'Boolean', :'follow_redirects' => :'Boolean', + :'ignore_server_certificate_error' => :'Boolean', + :'initial_navigation_timeout' => :'Integer', :'min_failure_duration' => :'Integer', :'min_location_failed' => :'Integer', :'monitor_name' => :'String', @@ -192,10 +207,22 @@ def initialize(attributes = {}) self.disable_cors = attributes[:'disable_cors'] end + if attributes.key?(:'disable_csp') + self.disable_csp = attributes[:'disable_csp'] + end + if attributes.key?(:'follow_redirects') self.follow_redirects = attributes[:'follow_redirects'] end + if attributes.key?(:'ignore_server_certificate_error') + self.ignore_server_certificate_error = attributes[:'ignore_server_certificate_error'] + end + + if attributes.key?(:'initial_navigation_timeout') + self.initial_navigation_timeout = attributes[:'initial_navigation_timeout'] + end + if attributes.key?(:'min_failure_duration') self.min_failure_duration = attributes[:'min_failure_duration'] end @@ -288,7 +315,10 @@ def ==(o) ci == o.ci && device_ids == o.device_ids && disable_cors == o.disable_cors && + disable_csp == o.disable_csp && follow_redirects == o.follow_redirects && + ignore_server_certificate_error == o.ignore_server_certificate_error && + initial_navigation_timeout == o.initial_navigation_timeout && min_failure_duration == o.min_failure_duration && min_location_failed == o.min_location_failed && monitor_name == o.monitor_name && @@ -312,7 +342,7 @@ def eql?(o) # @return [Integer] Hash code # @!visibility private def hash - [accept_self_signed, allow_insecure, check_certificate_revocation, ci, device_ids, disable_cors, follow_redirects, min_failure_duration, min_location_failed, monitor_name, monitor_options, monitor_priority, no_screenshot, restricted_roles, _retry, rum_settings, tick_every].hash + [accept_self_signed, allow_insecure, check_certificate_revocation, ci, device_ids, disable_cors, disable_csp, follow_redirects, ignore_server_certificate_error, initial_navigation_timeout, min_failure_duration, min_location_failed, monitor_name, monitor_options, monitor_priority, no_screenshot, restricted_roles, _retry, rum_settings, tick_every].hash end end end diff --git a/lib/datadog_api_client/v1/models/synthetics_test_request.rb b/lib/datadog_api_client/v1/models/synthetics_test_request.rb index 4487677c06f6..ae4515616195 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request.rb @@ -37,6 +37,9 @@ class SyntheticsTestRequest # Client certificate to use when performing the test request. attr_accessor :certificate + # By default, the client certificate is applied on the domain of the starting URL for browser tests. If you want your client certificate to be applied on other domains instead, add them in `certificateDomains`. + attr_accessor :certificate_domains + # DNS server to use for DNS tests. attr_accessor :dns_server @@ -101,6 +104,7 @@ def self.attribute_map :'basic_auth' => :'basicAuth', :'body' => :'body', :'certificate' => :'certificate', + :'certificate_domains' => :'certificateDomains', :'dns_server' => :'dnsServer', :'dns_server_port' => :'dnsServerPort', :'follow_redirects' => :'follow_redirects', @@ -136,6 +140,7 @@ def self.openapi_types :'basic_auth' => :'SyntheticsBasicAuth', :'body' => :'String', :'certificate' => :'SyntheticsTestRequestCertificate', + :'certificate_domains' => :'Array', :'dns_server' => :'String', :'dns_server_port' => :'Integer', :'follow_redirects' => :'Boolean', @@ -196,6 +201,14 @@ def initialize(attributes = {}) self.certificate = attributes[:'certificate'] end + if attributes.key?(:'certificate_domains') + if (value = attributes[:'certificate_domains']).is_a?(Array) + self.certificate_domains = value + end + else + self.certificate_domains = [] + end + if attributes.key?(:'dns_server') self.dns_server = attributes[:'dns_server'] end @@ -316,6 +329,7 @@ def ==(o) basic_auth == o.basic_auth && body == o.body && certificate == o.certificate && + certificate_domains == o.certificate_domains && dns_server == o.dns_server && dns_server_port == o.dns_server_port && follow_redirects == o.follow_redirects && @@ -347,7 +361,7 @@ def eql?(o) # @return [Integer] Hash code # @!visibility private def hash - [allow_insecure, basic_auth, body, certificate, dns_server, dns_server_port, follow_redirects, headers, host, message, metadata, method, no_saving_response_body, number_of_packets, port, proxy, query, servername, service, should_track_hops, timeout, url].hash + [allow_insecure, basic_auth, body, certificate, certificate_domains, dns_server, dns_server_port, follow_redirects, headers, host, message, metadata, method, no_saving_response_body, number_of_packets, port, proxy, query, servername, service, should_track_hops, timeout, url].hash end end end