diff --git a/.apigentools-info b/.apigentools-info index 4afc7b674635..2bbc4f535fc9 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.4", - "regenerated": "2022-08-30 12:29:18.404263", - "spec_repo_commit": "47f45603" + "regenerated": "2022-08-30 13:34:35.194053", + "spec_repo_commit": "1d2b67d9" }, "v2": { "apigentools_version": "1.6.4", - "regenerated": "2022-08-30 12:29:18.419749", - "spec_repo_commit": "47f45603" + "regenerated": "2022-08-30 13:34:35.209616", + "spec_repo_commit": "1d2b67d9" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index dab7248ce695..3fe196d7d007 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -11898,13 +11898,17 @@ components: the value. example: content-type type: string + localVariableName: + description: When type is `local_variable`, name of the local variable to + use to extract the value. + example: LOCAL_VARIABLE + type: string parser: $ref: '#/components/schemas/SyntheticsVariableParser' type: $ref: '#/components/schemas/SyntheticsGlobalVariableParseTestOptionsType' required: - type - - parser type: object SyntheticsGlobalVariableParseTestOptionsType: description: Property of the Synthetics Test Response to use for a Synthetics @@ -11912,11 +11916,13 @@ components: enum: - http_body - http_header + - local_variable example: http_body type: string x-enum-varnames: - HTTP_BODY - HTTP_HEADER + - LOCAL_VARIABLE SyntheticsGlobalVariableParserType: description: Type of parser for a Synthetics global variable from a synthetics test. 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 f1a418baf88a..cf2b8303ea13 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-08-18T09:19:30.220Z \ No newline at end of file +2022-08-30T12:58:36.103Z \ 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 150b64cee99b..06721eea6775 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: Thu, 18 Aug 2022 09:19:30 GMT +- recorded_at: Tue, 30 Aug 2022 12:58:36 GMT request: body: encoding: UTF-8 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 + message","name":"Test-Create_a_browser_test_returns_OK_Returns_saved_rumSettings_response-1661864316","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,8 +16,8 @@ http_interactions: response: body: encoding: UTF-8 - 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 + string: '{"status":"paused","public_id":"jsu-a6z-5fw","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-1661864316","monitor_id":81568552,"type":"browser","created_at":"2022-08-30T12:58:36.698302+00:00","modified_at":"2022-08-30T12:58:36.698302+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: @@ -25,11 +25,11 @@ http_interactions: status: code: 200 message: OK -- recorded_at: Thu, 18 Aug 2022 09:19:30 GMT +- recorded_at: Tue, 30 Aug 2022 12:58:36 GMT request: body: encoding: UTF-8 - string: '{"public_ids":["3ry-tnf-fqu"]}' + string: '{"public_ids":["jsu-a6z-5fw"]}' headers: Accept: - application/json @@ -40,7 +40,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"deleted_tests":[{"deleted_at":"2022-08-18T09:19:36.462930+00:00","public_id":"3ry-tnf-fqu"}]}' + string: '{"deleted_tests":[{"deleted_at":"2022-08-30T12:58:42.293815+00:00","public_id":"jsu-a6z-5fw"}]}' 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 36b8c9c9ad24..38c752b2d18a 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-08-18T09:19:36.544Z \ No newline at end of file +2022-08-30T12:58:42.391Z \ 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 e97dba4d7458..abcb408f6171 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, 18 Aug 2022 09:19:36 GMT +- recorded_at: Tue, 30 Aug 2022 12:58:42 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-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 + message","name":"Test-Create_a_browser_test_returns_OK_Returns_the_created_test_details_response-1661864322","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":"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 + string: '{"status":"paused","public_id":"3x7-bch-33k","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-1661864322","monitor_id":81568570,"type":"browser","created_at":"2022-08-30T12:58:43.101655+00:00","modified_at":"2022-08-30T12:58:43.101655+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, 18 Aug 2022 09:19:36 GMT +- recorded_at: Tue, 30 Aug 2022 12:58:42 GMT request: body: encoding: UTF-8 - string: '{"public_ids":["j74-mhg-nnq"]}' + string: '{"public_ids":["3x7-bch-33k"]}' headers: Accept: - application/json @@ -40,7 +40,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"deleted_tests":[{"deleted_at":"2022-08-18T09:19:43.678246+00:00","public_id":"j74-mhg-nnq"}]}' + string: '{"deleted_tests":[{"deleted_at":"2022-08-30T12:58:48.505733+00:00","public_id":"3x7-bch-33k"}]}' headers: Content-Type: - application/json diff --git a/cassettes/features/v1/synthetics/Create-a-global-variable-from-test-returns-OK-response.frozen b/cassettes/features/v1/synthetics/Create-a-global-variable-from-test-returns-OK-response.frozen new file mode 100644 index 000000000000..631a7546a3fe --- /dev/null +++ b/cassettes/features/v1/synthetics/Create-a-global-variable-from-test-returns-OK-response.frozen @@ -0,0 +1 @@ +2022-08-30T12:58:48.527Z \ No newline at end of file diff --git a/cassettes/features/v1/synthetics/Create-a-global-variable-from-test-returns-OK-response.yml b/cassettes/features/v1/synthetics/Create-a-global-variable-from-test-returns-OK-response.yml new file mode 100644 index 000000000000..388d96b30aae --- /dev/null +++ b/cassettes/features/v1/synthetics/Create-a-global-variable-from-test-returns-OK-response.yml @@ -0,0 +1,92 @@ +http_interactions: +- recorded_at: Tue, 30 Aug 2022 12:58:48 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"}],"extractedValues":[{"field":"server","name":"EXTRACTED_VALUE","parser":{"type":"raw"},"type":"http_header"}],"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_a_global_variable_from_test_returns_OK_response-1661864328","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_a_global_variable_from_test_returns_OK_response-1661864328","monitor_priority":5,"retry":{"count":3,"interval":1000},"tick_every":60},"subtype":"multi","tags":["testing:api"],"type":"api"}' + headers: + Accept: + - application/json + Content-Type: + - application/json + method: POST + uri: https://api.datadoghq.com/api/v1/synthetics/tests/api + response: + body: + encoding: UTF-8 + string: '{"status":"live","public_id":"frc-8cs-fce","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_a_global_variable_from_test_returns_OK_response-1661864328","monitor_id":81568613,"type":"api","created_at":"2022-08-30T12:58:49.246616+00:00","modified_at":"2022-08-30T12:58:49.246616+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":"zty-xpv-7cw","extractedValues":[{"field":"server","parser":{"type":"raw"},"type":"http_header","name":"EXTRACTED_VALUE"}]}],"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_a_global_variable_from_test_returns_OK_response-1661864328","tick_every":60}}' + headers: + Content-Type: + - application/json + status: + code: 200 + message: OK +- recorded_at: Tue, 30 Aug 2022 12:58:48 GMT + request: + body: + encoding: UTF-8 + string: '{"description":"","name":"GLOBAL_VARIABLE_PAYLOAD","parse_test_options":{"localVariableName":"EXTRACTED_VALUE","type":"local_variable"},"parse_test_public_id":"frc-8cs-fce","tags":[],"value":{"secure":false,"value":""}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + method: POST + uri: https://api.datadoghq.com/api/v1/synthetics/variables + response: + body: + encoding: UTF-8 + string: '{"parse_test_options":{"type":"local_variable","localVariableName":"EXTRACTED_VALUE"},"parse_test_extracted_at":null,"description":"","tags":[],"last_error":null,"is_totp":null,"value":{"secure":false,"value":""},"parse_test_public_id":"frc-8cs-fce","parse_test_name":null,"type":"variable","id":"9dec05d1-27b9-4e16-9ec5-0305af3ac10a","name":"GLOBAL_VARIABLE_PAYLOAD"} + + ' + headers: + Content-Type: + - application/json + status: + code: 200 + message: OK +- recorded_at: Tue, 30 Aug 2022 12:58:48 GMT + request: + body: null + headers: + Accept: + - '*/*' + method: DELETE + uri: https://api.datadoghq.com/api/v1/synthetics/variables/9dec05d1-27b9-4e16-9ec5-0305af3ac10a + response: + body: + encoding: UTF-8 + string: '{}' + headers: + Content-Type: + - application/json + status: + code: 200 + message: OK +- recorded_at: Tue, 30 Aug 2022 12:58:48 GMT + request: + body: + encoding: UTF-8 + string: '{"public_ids":["frc-8cs-fce"]}' + headers: + Accept: + - application/json + Content-Type: + - application/json + method: POST + uri: https://api.datadoghq.com/api/v1/synthetics/tests/delete + response: + body: + encoding: UTF-8 + string: '{"deleted_tests":[{"deleted_at":"2022-08-30T12:58:55.803154+00:00","public_id":"frc-8cs-fce"}]}' + headers: + Content-Type: + - application/json + status: + code: 200 + message: OK +recorded_with: VCR 6.0.0 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 9eadd837e3bc..5f9f597e75ca 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-08-18T09:19:44.397Z \ No newline at end of file +2022-08-30T12:58:55.910Z \ 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 66ac9281a578..6be5636f9f32 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, 18 Aug 2022 09:19:44 GMT +- recorded_at: Tue, 30 Aug 2022 12:58:55 GMT request: body: encoding: UTF-8 - string: '{"data":{"attributes":{"name":"Test-Create_a_private_location_returns_OK_response-1660814384"},"type":"roles"}}' + string: '{"data":{"attributes":{"name":"Test-Create_a_private_location_returns_OK_response-1661864335"},"type":"roles"}}' headers: Accept: - application/json @@ -14,7 +14,7 @@ http_interactions: response: body: encoding: UTF-8 - 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"}]}}}} + string: '{"data":{"type":"roles","id":"81ddc27c-2863-11ed-b579-da7ad0900002","attributes":{"name":"Test-Create_a_private_location_returns_OK_response-1661864335","created_at":"2022-08-30T12:58:56.401290+00:00","modified_at":"2022-08-30T12:58:56.449222+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: @@ -23,12 +23,12 @@ http_interactions: status: code: 200 message: OK -- recorded_at: Thu, 18 Aug 2022 09:19:44 GMT +- recorded_at: Tue, 30 Aug 2022 12:58:55 GMT request: body: encoding: UTF-8 - 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"]}' + string: '{"description":"Test Test-Create_a_private_location_returns_OK_response-1661864335 + description","metadata":{"restricted_roles":["81ddc27c-2863-11ed-b579-da7ad0900002"]},"name":"Test-Create_a_private_location_returns_OK_response-1661864335","tags":["test:testcreateaprivatelocationreturnsokresponse1661864335"]}' headers: Accept: - application/json @@ -39,14 +39,14 @@ http_interactions: response: body: encoding: UTF-8 - 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-----\nMIIJJwIBAAKCAgEAng03lClMXmwjv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iedAt":"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\nINrItSyEQOz8sdqKVHO1gdcF7Xh3Y1LQDMHBZIP9YPlgCZ1eRv8MlPFdiCbwr9eW\nWxkUnj+JRhshYXK22WoKdRumMuPNP+/7C8Y3LTbbFPjtckgCqJMGSxpYjSfuA7pg\noe771RO/JYmPgBFff09hMHi746f1u7BM+uQa2+JP9JVWVxbisWFZkkOcHmLnnln1\n/amrZ3b6CX3rmh3+HRi6UosVLrMw9tm1OA9MEr3ac1VpC9qS04EmiXqRGzr4CIXI\n9mUr7kr23iREf+6aLE5fKNj9bIZ4WunFr1FJd4xJ/9EKec6/nv4Q+KP/wQluHMlC\nkKKvjhknmBXa+Rho91+EhfQ9b+WIsxYPqVy53BrEZAiKVGnwDW+AVe7/fCSkZWGZ\nchVSMMgKhDIMAIp90tU+sKUppYv6L3EIs/P/YKtjhe7/AaADTojN3DD5d6UCAwEA\nAQKCAgAmDhkkgbgbYQ7PFjH/GQjXjPsI2gQHKFfNvf6GDJ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5PO8SalMOqMf2tQJTz+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 + string: '{"private_location":{"name":"Test-Create_a_private_location_returns_OK_response-1661864335","tags":["test:testcreateaprivatelocationreturnsokresponse1661864335"],"secrets":{"authentication":{"id":"84de632c89cdb10a5781d61e0e5e3e27","key":"c4802dfb71ae674b4311ee8e80715148b020657b3a0afc26ef121f55fec74724"},"config_decryption":{"id":"6486c010470fd1dbed0f4a277fe8718c","key":"-----BEGIN + RSA PRIVATE KEY-----\nMIIJKQIBAAKCAgEAuftTDiT8ImQOyZH0x6ltNAAmcvil3arGhCC5a9cRRlRhgPBG\n0ZW97b4/dxi9U6Ww16/ZSxzbwzzvMl0EyyIhzuGK7riG20NP1foEnCmN7r5yw1FD\nqfd1vcAqiIV5xaSRsfk76CJOwK4s3DcoH2gPPtWUviaFIwTpZ7hCKQ6iflUtuJ/3\nAUWBYt04/3G5DzGUGnZr84okZS3usYz27ly9B3WFkwpMM+JwIRlkXaq/Qk28NUyf\nf+kBAHEMKuiWO/qhYVUDEnEg1495teNTAumX2MpJ9AWX5FOoYZ9PbJ+0Vc6ogMZ4\nyWQ3d7/dZlwNBELCidmH4QJ1SFO8mGF5apRaTCYsm1rWzpONJTtb4M/5te0v2Uk6\nvt6chT3Ml3ScFewgO37WE7aU4d4BgnxK9ndUQiYsaUBkC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OOGqj08xUNylQ9yv9qlpHuW1BNR3s3rmSZGNNsbgYXCuf1bUOaC\n0HLeqosnNa39eisMS44f51llvCukZBLQPdWIHnVfGOXbyHvX5gOWw4xEFLPN7qvq\n2y0N+z/RgnKia9M39Vh/SIufHf7C9x4iVdq4BnQXQVJYEj4Vp4g/HFfqnuLM2NQN\nRJ8DRFDkyIXFEgWeUDbPSguYe3ViZxiP9JzsPPrPO/UW+O8RdX3hE6LQuK+qDrn0\na45fxqNaHa+N+mFGrHriZ/yhALgrboFrAoIBAQC2OAxw++keMRwIMuocneG520Sw\na9D/17InVi/cCdyS/TkSC2eSGvymHORmcBepMGHis7nYQg16pPY3lEsMBJVX7XjB\nGUN4EaJYlIYCK34Pv4lihuImX2FhopIF+1XE4QeroXQwuC0J1ml8FfRuqXpnEvSC\nIEd5gjpRlhVhPcEmnsqAmPCmKjGZqQZoDozxFhxmzLTPKdv6pZTtoeablAv+A+cl\njUXU75MKwRYhbYa+eYb5QgbAnFs7csa1XtXmO6v3mBW9Ufj3j913F+MgttPX8VHI\nsnnMA20AynUrTpVFNPheyHZrSX9vVhyyjUaD7WocedgOQSk6ikEb9zUBRycv\n-----END + RSA PRIVATE KEY-----"}},"modifiedAt":"2022-08-30T12:58:57.286294+00:00","createdBy":"frog@datadoghq.com","metadata":{"restricted_roles":["81ddc27c-2863-11ed-b579-da7ad0900002"]},"config":{"site":"datadoghq.com"},"id":"pl:test-create_a_private_location_returns_ok_response-1661864335-2660976f1b7c4e302fe2ed0f35972587","createdAt":"2022-08-30T12:58:57.286294+00:00","description":"Test + Test-Create_a_private_location_returns_OK_response-1661864335 description"},"config":{"accessKey":"84de632c89cdb10a5781d61e0e5e3e27","privateKey":"-----BEGIN + RSA PRIVATE KEY-----\nMIIJKQIBAAKCAgEAuftTDiT8ImQOyZH0x6ltNAAmcvil3arGhCC5a9cRRlRhgPBG\n0ZW97b4/dxi9U6Ww16/ZSxzbwzzvMl0EyyIhzuGK7riG20NP1foEnCmN7r5yw1F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XtW9R5VJd9B+If+xKMlvlGXbWY8m2UK+ZG\ngMpmcknlXav5Sc8Niy8AbMTBJ/W5L7Ce9dRhhNKFNS+7Ixz8SaP3pI1mjOf+wbNY\nRrVfX64WYBa/9JnPR2YXjoMIbZpUw/9m+lp5ivOZFTOo8K3lOnc/sNwRBVWUpMY5\nd5lNyvZvARmNAeGGf/1801hORGlynqSH+QFdHfWTsyKopjwRSlutRblSQoaqcz33\nEu3ZAoIBAQCtRaK5FB22BIrfLNDCcTnbOSLFWcIbbEmb8r3qnFhAk5/XmKY/KSiE\nVjXYl/yKypaI+OOGqj08xUNylQ9yv9qlpHuW1BNR3s3rmSZGNNsbgYXCuf1bUOaC\n0HLeqosnNa39eisMS44f51llvCukZBLQPdWIHnVfGOXbyHvX5gOWw4xEFLPN7qvq\n2y0N+z/RgnKia9M39Vh/SIufHf7C9x4iVdq4BnQXQVJYEj4Vp4g/HFfqnuLM2NQN\nRJ8DRFDkyIXFEgWeUDbPSguYe3ViZxiP9JzsPPrPO/UW+O8RdX3hE6LQuK+qDrn0\na45fxqNaHa+N+mFGrHriZ/yhALgrboFrAoIBAQC2OAxw++keMRwIMuocneG520Sw\na9D/17InVi/cCdyS/TkSC2eSGvymHORmcBepMGHis7nYQg16pPY3lEsMBJVX7XjB\nGUN4EaJYlIYCK34Pv4lihuImX2FhopIF+1XE4QeroXQwuC0J1ml8FfRuqXpnEvSC\nIEd5gjpRlhVhPcEmnsqAmPCmKjGZqQZoDozxFhxmzLTPKdv6pZTtoeablAv+A+cl\njUXU75MKwRYhbYa+eYb5QgbAnFs7csa1XtXmO6v3mBW9Ufj3j913F+MgttPX8VHI\nsnnMA20AynUrTpVFNPheyHZrSX9vVhyyjUaD7WocedgOQSk6ikEb9zUBRycv\n-----END + RSA PRIVATE KEY-----","site":"datadoghq.com","secretAccessKey":"c4802dfb71ae674b4311ee8e80715148b020657b3a0afc26ef121f55fec74724","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-1660814384-bf47a0a1543124fdcc802ce6781d1f89"},"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-1661864335-2660976f1b7c4e302fe2ed0f35972587"},"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: @@ -55,14 +55,14 @@ http_interactions: status: code: 200 message: OK -- recorded_at: Thu, 18 Aug 2022 09:19:44 GMT +- recorded_at: Tue, 30 Aug 2022 12:58:55 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-1660814384-bf47a0a1543124fdcc802ce6781d1f89 + uri: https://api.datadoghq.com/api/v1/synthetics/private-locations/pl%3Atest-create_a_private_location_returns_ok_response-1661864335-2660976f1b7c4e302fe2ed0f35972587 response: body: encoding: UTF-8 @@ -71,14 +71,14 @@ http_interactions: status: code: 204 message: No Content -- recorded_at: Thu, 18 Aug 2022 09:19:44 GMT +- recorded_at: Tue, 30 Aug 2022 12:58:55 GMT request: body: null headers: Accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v2/roles/e5f2f0a2-1ed6-11ed-b232-da7ad0900002 + uri: https://api.datadoghq.com/api/v2/roles/81ddc27c-2863-11ed-b579-da7ad0900002 response: body: encoding: UTF-8 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 054fee601dcd..c4b1521c5aa4 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-08-18T09:19:47.020Z \ No newline at end of file +2022-08-30T12:58:58.411Z \ 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 8b07ba8aee77..3b57e530117b 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: Thu, 18 Aug 2022 09:19:47 GMT +- recorded_at: Tue, 30 Aug 2022 12:58:58 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-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"}' + test payload: synthetics_api_grpc_test_payload.json","name":"Test-Create_an_API_GRPC_test_returns_OK_Returns_the_created_test_details_response-1661864338","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-1661864338","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":"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}}' + string: '{"status":"live","public_id":"jhh-fva-te6","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-1661864338","monitor_id":81568616,"type":"api","created_at":"2022-08-30T12:58:58.963083+00:00","modified_at":"2022-08-30T12:58:58.963083+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,"renotify_interval":0,"notify_audit":false,"new_host_delay":300,"on_missing_data":"show_no_data"},"tick_every":60,"monitor_name":"Test-Create_an_API_GRPC_test_returns_OK_Returns_the_created_test_details_response-1661864338","min_failure_duration":0,"min_location_failed":1}}' headers: Content-Type: - application/json status: code: 200 message: OK -- recorded_at: Thu, 18 Aug 2022 09:19:47 GMT +- recorded_at: Tue, 30 Aug 2022 12:58:58 GMT request: body: encoding: UTF-8 - string: '{"public_ids":["vef-dtr-m3a"]}' + string: '{"public_ids":["jhh-fva-te6"]}' headers: Accept: - application/json @@ -38,7 +38,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"deleted_tests":[{"deleted_at":"2022-08-18T09:19:53.073279+00:00","public_id":"vef-dtr-m3a"}]}' + string: '{"deleted_tests":[{"deleted_at":"2022-08-30T12:59:04.527227+00:00","public_id":"jhh-fva-te6"}]}' 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 1dd5d7fc1af3..62595ce58e5f 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-08-18T09:19:53.144Z \ No newline at end of file +2022-08-30T12:59:04.595Z \ 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 7a4220d47f28..b3126f2b8d68 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: Thu, 18 Aug 2022 09:19:53 GMT +- recorded_at: Tue, 30 Aug 2022 12:59:04 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":"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"}' + 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":"testcreateanapihttptestreturnsokreturnsthecreatedtestdetailsresponse1661864344"},"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-1661864344","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-1661864344","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":"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}}' + string: '{"status":"live","public_id":"x87-wy9-5jr","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-1661864344","monitor_id":81568626,"type":"api","created_at":"2022-08-30T12:59:05.941811+00:00","modified_at":"2022-08-30T12:59:05.941811+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":"testcreateanapihttptestreturnsokreturnsthecreatedtestdetailsresponse1661864344"},"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-1661864344","tick_every":60}}' headers: Content-Type: - application/json status: code: 200 message: OK -- recorded_at: Thu, 18 Aug 2022 09:19:53 GMT +- recorded_at: Tue, 30 Aug 2022 12:59:04 GMT request: body: encoding: UTF-8 - string: '{"public_ids":["kpi-f4m-iz3"]}' + string: '{"public_ids":["x87-wy9-5jr"]}' headers: Accept: - application/json @@ -39,7 +39,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"deleted_tests":[{"deleted_at":"2022-08-18T09:19:59.324953+00:00","public_id":"kpi-f4m-iz3"}]}' + string: '{"deleted_tests":[{"deleted_at":"2022-08-30T12:59:11.475043+00:00","public_id":"x87-wy9-5jr"}]}' 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 d71baabea969..9967573932b0 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-08-18T09:19:59.425Z \ No newline at end of file +2022-08-30T12:59:11.498Z \ 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 b15e67e39735..109c7eea99c3 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: Thu, 18 Aug 2022 09:19:59 GMT +- recorded_at: Tue, 30 Aug 2022 12:59:11 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-1660814399","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-1661864351","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":"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}}' + string: '{"status":"live","public_id":"qrz-a4f-273","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-1661864351","monitor_id":81568628,"type":"api","created_at":"2022-08-30T12:59:12.024188+00:00","modified_at":"2022-08-30T12:59:12.024188+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: Thu, 18 Aug 2022 09:19:59 GMT +- recorded_at: Tue, 30 Aug 2022 12:59:11 GMT request: body: encoding: UTF-8 - string: '{"public_ids":["un2-xsk-hdz"]}' + string: '{"public_ids":["qrz-a4f-273"]}' headers: Accept: - application/json @@ -38,7 +38,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"deleted_tests":[{"deleted_at":"2022-08-18T09:20:05.548624+00:00","public_id":"un2-xsk-hdz"}]}' + string: '{"deleted_tests":[{"deleted_at":"2022-08-30T12:59:17.464324+00:00","public_id":"qrz-a4f-273"}]}' 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 200e14600932..cab19f4c95db 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-08-18T09:20:05.638Z \ No newline at end of file +2022-08-30T12:59:17.615Z \ 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 2f75047c826f..593a158621a4 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, 18 Aug 2022 09:20:05 GMT +- recorded_at: Tue, 30 Aug 2022 12:59:17 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-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"}' + 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-1661864357","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-1661864357","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":"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}}' + string: '{"status":"live","public_id":"6nm-aqw-5ub","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-1661864357","monitor_id":81568631,"type":"api","created_at":"2022-08-30T12:59:18.089228+00:00","modified_at":"2022-08-30T12:59:18.089228+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-1661864357","tick_every":60}}' headers: Content-Type: - application/json status: code: 200 message: OK -- recorded_at: Thu, 18 Aug 2022 09:20:05 GMT +- recorded_at: Tue, 30 Aug 2022 12:59:17 GMT request: body: encoding: UTF-8 - string: '{"public_ids":["igu-mwu-7it"]}' + string: '{"public_ids":["6nm-aqw-5ub"]}' headers: Accept: - application/json @@ -38,7 +38,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"deleted_tests":[{"deleted_at":"2022-08-18T09:20:11.608932+00:00","public_id":"igu-mwu-7it"}]}' + string: '{"deleted_tests":[{"deleted_at":"2022-08-30T12:59:23.479491+00:00","public_id":"6nm-aqw-5ub"}]}' 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 ea71ab219a45..c6ee1211b2ea 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-08-18T09:20:11.694Z \ No newline at end of file +2022-08-30T12:59:24.424Z \ 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 b62cec36aff4..864e2ec00286 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, 18 Aug 2022 09:20:11 GMT +- recorded_at: Tue, 30 Aug 2022 12:59:24 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-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"}' + 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-1661864364","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-1661864364","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":"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}}' + string: '{"status":"live","public_id":"sfv-45x-54e","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-1661864364","monitor_id":81568635,"type":"api","created_at":"2022-08-30T12:59:24.899035+00:00","modified_at":"2022-08-30T12:59:24.899035+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-1661864364","tick_every":60}}' headers: Content-Type: - application/json status: code: 200 message: OK -- recorded_at: Thu, 18 Aug 2022 09:20:11 GMT +- recorded_at: Tue, 30 Aug 2022 12:59:24 GMT request: body: encoding: UTF-8 - string: '{"public_ids":["p3q-9uk-tvy"]}' + string: '{"public_ids":["sfv-45x-54e"]}' headers: Accept: - application/json @@ -38,7 +38,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"deleted_tests":[{"deleted_at":"2022-08-18T09:20:18.519569+00:00","public_id":"p3q-9uk-tvy"}]}' + string: '{"deleted_tests":[{"deleted_at":"2022-08-30T12:59:30.439075+00:00","public_id":"sfv-45x-54e"}]}' 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 8c12ae96cb41..08408b88997f 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-08-18T09:20:18.603Z \ No newline at end of file +2022-08-30T12:59:30.516Z \ 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 9e7379b01d73..d578e73e32e7 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, 18 Aug 2022 09:20:18 GMT +- recorded_at: Tue, 30 Aug 2022 12:59:30 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 + string: '{"config":{"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"steps":[{"allowFailure":true,"assertions":[{"operator":"is","target":200,"type":"statusCode"}],"extractedValues":[{"field":"server","name":"EXTRACTED_VALUE","parser":{"type":"raw"},"type":"http_header"}],"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-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"}' + 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-1661864370","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-1661864370","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":"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}}' + string: '{"status":"live","public_id":"mtz-ccy-e3x","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-1661864370","monitor_id":81568663,"type":"api","created_at":"2022-08-30T12:59:31.130267+00:00","modified_at":"2022-08-30T12:59:31.130267+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":"vst-9t6-t7t","extractedValues":[{"field":"server","parser":{"type":"raw"},"type":"http_header","name":"EXTRACTED_VALUE"}]}],"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-1661864370","tick_every":60}}' headers: Content-Type: - application/json status: code: 200 message: OK -- recorded_at: Thu, 18 Aug 2022 09:20:18 GMT +- recorded_at: Tue, 30 Aug 2022 12:59:30 GMT request: body: encoding: UTF-8 - string: '{"public_ids":["az2-946-wa5"]}' + string: '{"public_ids":["mtz-ccy-e3x"]}' headers: Accept: - application/json @@ -40,7 +40,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"deleted_tests":[{"deleted_at":"2022-08-18T09:20:24.633532+00:00","public_id":"az2-946-wa5"}]}' + string: '{"deleted_tests":[{"deleted_at":"2022-08-30T12:59:36.624525+00:00","public_id":"mtz-ccy-e3x"}]}' 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 65c2eff256d4..8502478c60a5 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-08-18T09:20:24.736Z \ No newline at end of file +2022-08-30T12:59:36.775Z \ 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 21b37ec8d653..1166b7cf68f5 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: Thu, 18 Aug 2022 09:20:24 GMT +- recorded_at: Tue, 30 Aug 2022 12:59:36 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":"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"}' + 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":"testeditanapitestreturnsokresponse1661864376"},"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-1661864376","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-1661864376","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":"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}}' + string: '{"status":"live","public_id":"f6w-3ey-4a4","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-1661864376","monitor_id":81568685,"type":"api","created_at":"2022-08-30T12:59:37.432479+00:00","modified_at":"2022-08-30T12:59:37.432479+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":"testeditanapitestreturnsokresponse1661864376"},"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-1661864376","tick_every":60}}' headers: Content-Type: - application/json status: code: 200 message: OK -- recorded_at: Thu, 18 Aug 2022 09:20:24 GMT +- recorded_at: Tue, 30 Aug 2022 12:59:36 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":"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"}' + 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":"testeditanapitestreturnsokresponse1661864376"},"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-1661864376-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/v2f-m2c-pvu + uri: https://api.datadoghq.com/api/v1/synthetics/tests/api/f6w-3ey-4a4 response: body: encoding: UTF-8 - 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":"{{ + string: '{"status":"live","public_id":"f6w-3ey-4a4","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-1661864376-updated","monitor_id":81568685,"type":"api","created_at":"2022-08-30T12:59:37.432479+00:00","modified_at":"2022-08-30T12:59:37.949569+00:00","subtype":"http","config":{"request":{"url":"https://datadoghq.com","headers":{"unique":"testeditanapitestreturnsokresponse1661864376"},"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: Thu, 18 Aug 2022 09:20:24 GMT +- recorded_at: Tue, 30 Aug 2022 12:59:36 GMT request: body: encoding: UTF-8 - string: '{"public_ids":["v2f-m2c-pvu"]}' + string: '{"public_ids":["f6w-3ey-4a4"]}' headers: Accept: - application/json @@ -64,7 +64,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"deleted_tests":[{"deleted_at":"2022-08-18T09:20:31.454991+00:00","public_id":"v2f-m2c-pvu"}]}' + string: '{"deleted_tests":[{"deleted_at":"2022-08-30T12:59:43.392892+00:00","public_id":"f6w-3ey-4a4"}]}' 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 12092e15dd59..dde1eb55a170 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-08-18T09:20:31.606Z \ No newline at end of file +2022-08-30T12:59:43.477Z \ 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 be9200b2f362..05fcb5d8b4df 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: Thu, 18 Aug 2022 09:20:31 GMT +- recorded_at: Tue, 30 Aug 2022 12:59:43 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":"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"}' + 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":"testtriggersyntheticstestsreturnsokresponse1661864383"},"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-1661864383","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-1661864383","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":"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}}' + string: '{"status":"live","public_id":"byp-5wc-8gg","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-1661864383","monitor_id":81568730,"type":"api","created_at":"2022-08-30T12:59:44.088707+00:00","modified_at":"2022-08-30T12:59:44.088707+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":"testtriggersyntheticstestsreturnsokresponse1661864383"},"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-1661864383","tick_every":60}}' headers: Content-Type: - application/json status: code: 200 message: OK -- recorded_at: Thu, 18 Aug 2022 09:20:31 GMT +- recorded_at: Tue, 30 Aug 2022 12:59:43 GMT request: body: encoding: UTF-8 - string: '{"tests":[{"public_id":"57g-3q8-f9r"}]}' + string: '{"tests":[{"public_id":"byp-5wc-8gg"}]}' headers: Accept: - application/json @@ -39,19 +39,21 @@ http_interactions: response: body: encoding: UTF-8 - 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}]}' + string: '{"batch_id":null,"results":[{"result_id":"3055064564355324183","public_id":"byp-5wc-8gg","location":30005}],"triggered_check_ids":["byp-5wc-8gg"],"locations":[{"display_name":"Ohio + (AWS)","name":"aws:us-east-2","region":"Americas","is_active":true,"is_public":true,"id":30005}]} + + ' headers: Content-Type: - application/json status: code: 200 message: OK -- recorded_at: Thu, 18 Aug 2022 09:20:31 GMT +- recorded_at: Tue, 30 Aug 2022 12:59:43 GMT request: body: encoding: UTF-8 - string: '{"public_ids":["57g-3q8-f9r"]}' + string: '{"public_ids":["byp-5wc-8gg"]}' headers: Accept: - application/json @@ -62,7 +64,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"deleted_tests":[{"deleted_at":"2022-08-18T09:20:38.190941+00:00","public_id":"57g-3q8-f9r"}]}' + string: '{"deleted_tests":[{"deleted_at":"2022-08-30T12:59:49.832117+00:00","public_id":"byp-5wc-8gg"}]}' headers: Content-Type: - application/json diff --git a/examples/v1/synthetics/CreateGlobalVariable.rb b/examples/v1/synthetics/CreateGlobalVariable.rb index dd8afe9edf98..49e02cb41dec 100644 --- a/examples/v1/synthetics/CreateGlobalVariable.rb +++ b/examples/v1/synthetics/CreateGlobalVariable.rb @@ -13,6 +13,7 @@ name: "MY_VARIABLE", parse_test_options: DatadogAPIClient::V1::SyntheticsGlobalVariableParseTestOptions.new({ field: "content-type", + local_variable_name: "LOCAL_VARIABLE", parser: DatadogAPIClient::V1::SyntheticsVariableParser.new({ type: DatadogAPIClient::V1::SyntheticsGlobalVariableParserType::REGEX, value: ".*", diff --git a/examples/v1/synthetics/CreateGlobalVariable_1068962881.rb b/examples/v1/synthetics/CreateGlobalVariable_1068962881.rb new file mode 100644 index 000000000000..d32cf0e899e9 --- /dev/null +++ b/examples/v1/synthetics/CreateGlobalVariable_1068962881.rb @@ -0,0 +1,23 @@ +# Create a global variable from test returns "OK" response + +require "datadog_api_client" +api_instance = DatadogAPIClient::V1::SyntheticsAPI.new + +# there is a valid "synthetics_api_test_multi_step" in the system +SYNTHETICS_API_TEST_MULTI_STEP_PUBLIC_ID = ENV["SYNTHETICS_API_TEST_MULTI_STEP_PUBLIC_ID"] + +body = DatadogAPIClient::V1::SyntheticsGlobalVariable.new({ + description: "", + name: "GLOBAL_VARIABLE_PAYLOAD", + tags: [], + value: DatadogAPIClient::V1::SyntheticsGlobalVariableValue.new({ + secure: false, + value: "", + }), + parse_test_public_id: SYNTHETICS_API_TEST_MULTI_STEP_PUBLIC_ID, + parse_test_options: DatadogAPIClient::V1::SyntheticsGlobalVariableParseTestOptions.new({ + type: DatadogAPIClient::V1::SyntheticsGlobalVariableParseTestOptionsType::LOCAL_VARIABLE, + local_variable_name: "EXTRACTED_VALUE", + }), +}) +p api_instance.create_global_variable(body) diff --git a/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb b/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb index 90aec19409ed..1f1e5ad5a689 100644 --- a/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +++ b/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb @@ -23,6 +23,16 @@ target: 200, }), ], + extracted_values: [ + DatadogAPIClient::V1::SyntheticsParsingOptions.new({ + field: "server", + name: "EXTRACTED_VALUE", + parser: DatadogAPIClient::V1::SyntheticsVariableParser.new({ + type: DatadogAPIClient::V1::SyntheticsGlobalVariableParserType::RAW, + }), + type: DatadogAPIClient::V1::SyntheticsGlobalVariableParseTestOptionsType::HTTP_HEADER, + }), + ], is_critical: true, name: "request is sent", request: DatadogAPIClient::V1::SyntheticsTestRequest.new({ diff --git a/examples/v1/synthetics/EditGlobalVariable.rb b/examples/v1/synthetics/EditGlobalVariable.rb index ac864e2cbb80..05650f3ab065 100644 --- a/examples/v1/synthetics/EditGlobalVariable.rb +++ b/examples/v1/synthetics/EditGlobalVariable.rb @@ -13,6 +13,7 @@ name: "MY_VARIABLE", parse_test_options: DatadogAPIClient::V1::SyntheticsGlobalVariableParseTestOptions.new({ field: "content-type", + local_variable_name: "LOCAL_VARIABLE", parser: DatadogAPIClient::V1::SyntheticsVariableParser.new({ type: DatadogAPIClient::V1::SyntheticsGlobalVariableParserType::REGEX, value: ".*", diff --git a/features/v1/given.json b/features/v1/given.json index cf241da8970f..68ec86779f4e 100644 --- a/features/v1/given.json +++ b/features/v1/given.json @@ -155,6 +155,18 @@ "tag": "Synthetics", "operationId": "CreateSyntheticsAPITest" }, + { + "parameters": [ + { + "name": "body", + "value": "{\n \"config\": {\n \"configVariables\": [\n {\n \"example\": \"content-type\",\n \"name\": \"PROPERTY\",\n \"pattern\": \"content-type\",\n \"type\": \"text\"\n }\n ],\n \"steps\": [\n {\n \"allowFailure\": true,\n \"assertions\": [\n {\n \"operator\": \"is\",\n \"type\": \"statusCode\",\n \"target\": 200\n }\n ],\n \"extractedValues\": [\n {\n \"field\": \"server\",\n \"name\": \"EXTRACTED_VALUE\",\n \"parser\": {\n \"type\": \"raw\"\n },\n \"type\": \"http_header\"\n }\n ],\n \"isCritical\": true,\n \"name\": \"request is sent\",\n \"request\": {\n \"method\": \"GET\",\n \"timeout\": 10,\n \"url\": \"https://datadoghq.com\"\n },\n \"retry\": {\n \"count\": 5,\n \"interval\": 1000\n },\n \"subtype\": \"http\"\n }\n ]\n },\n \"locations\": [\"aws:us-east-2\"],\n \"message\": \"BDD test payload: synthetics_api_test_multi_step_payload.json\",\n \"name\": \"{{ unique }}\",\n \"options\": {\n \"accept_self_signed\": false,\n \"allow_insecure\": true,\n \"follow_redirects\": true,\n \"min_failure_duration\": 10,\n \"min_location_failed\": 1,\n \"monitor_name\": \"{{ unique }}\",\n \"monitor_priority\": 5,\n \"retry\": { \"count\": 3, \"interval\": 1000 },\n \"tick_every\": 60\n },\n \"subtype\": \"multi\",\n \"tags\": [\"testing:api\"],\n \"type\": \"api\"\n}\n" + } + ], + "step": "there is a valid \"synthetics_api_test_multi_step\" in the system", + "key": "synthetics_api_test_multi_step", + "tag": "Synthetics", + "operationId": "CreateSyntheticsAPITest" + }, { "parameters": [ { @@ -179,6 +191,18 @@ "tag": "Synthetics", "operationId": "TriggerTests" }, + { + "parameters": [ + { + "name": "body", + "value": "{\n \"description\": \"\",\n \"name\": \"GLOBAL_VARIABLE_PAYLOAD\",\n \"tags\": [],\n \"value\": {\n \"secure\": false,\n \"value\": \"\"\n },\n \"parse_test_public_id\": \"{{ synthetics_api_test_multi_step.public_id }}\",\n \"parse_test_options\": {\n \"type\": \"local_variable\",\n \"localVariableName\": \"EXTRACTED_VALUE\"\n }\n}\n" + } + ], + "step": "there is a valid \"synthetics_global_variable\" in the system", + "key": "synthetics_global_variable", + "tag": "Synthetics", + "operationId": "CreateGlobalVariable" + }, { "parameters": [ { diff --git a/features/v1/synthetics.feature b/features/v1/synthetics.feature index 0da8d26ac813..330f714b9f88 100644 --- a/features/v1/synthetics.feature +++ b/features/v1/synthetics.feature @@ -63,17 +63,25 @@ Feature: Synthetics When the request is sent Then the response status is 402 Test quota is reached + @team:DataDog/synthetics-app + Scenario: Create a global variable from test returns "OK" response + Given there is a valid "synthetics_api_test_multi_step" in the system + And new "CreateGlobalVariable" request + And body from file "synthetics_global_variable_payload.json" + When the request is sent + Then the response status is 200 OK + @generated @skip @team:DataDog/synthetics-app Scenario: Create a global variable returns "Invalid request" response Given new "CreateGlobalVariable" request - And body with value {"attributes": {"restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]}, "description": "Example description", "name": "MY_VARIABLE", "parse_test_options": {"field": "content-type", "parser": {"type": "regex", "value": ".*"}, "type": "http_body"}, "parse_test_public_id": "abc-def-123", "tags": ["team:front", "test:workflow-1"], "value": {"secure": true, "value": "value"}} + And body with value {"attributes": {"restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]}, "description": "Example description", "name": "MY_VARIABLE", "parse_test_options": {"field": "content-type", "localVariableName": "LOCAL_VARIABLE", "parser": {"type": "regex", "value": ".*"}, "type": "http_body"}, "parse_test_public_id": "abc-def-123", "tags": ["team:front", "test:workflow-1"], "value": {"secure": true, "value": "value"}} When the request is sent Then the response status is 400 Invalid request @generated @skip @team:DataDog/synthetics-app Scenario: Create a global variable returns "OK" response Given new "CreateGlobalVariable" request - And body with value {"attributes": {"restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]}, "description": "Example description", "name": "MY_VARIABLE", "parse_test_options": {"field": "content-type", "parser": {"type": "regex", "value": ".*"}, "type": "http_body"}, "parse_test_public_id": "abc-def-123", "tags": ["team:front", "test:workflow-1"], "value": {"secure": true, "value": "value"}} + And body with value {"attributes": {"restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]}, "description": "Example description", "name": "MY_VARIABLE", "parse_test_options": {"field": "content-type", "localVariableName": "LOCAL_VARIABLE", "parser": {"type": "regex", "value": ".*"}, "type": "http_body"}, "parse_test_public_id": "abc-def-123", "tags": ["team:front", "test:workflow-1"], "value": {"secure": true, "value": "value"}} When the request is sent Then the response status is 200 OK @@ -256,7 +264,7 @@ Feature: Synthetics Scenario: Edit a global variable returns "Invalid request" response Given new "EditGlobalVariable" request And request contains "variable_id" parameter from "REPLACE.ME" - And body with value {"attributes": {"restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]}, "description": "Example description", "name": "MY_VARIABLE", "parse_test_options": {"field": "content-type", "parser": {"type": "regex", "value": ".*"}, "type": "http_body"}, "parse_test_public_id": "abc-def-123", "tags": ["team:front", "test:workflow-1"], "value": {"secure": true, "value": "value"}} + And body with value {"attributes": {"restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]}, "description": "Example description", "name": "MY_VARIABLE", "parse_test_options": {"field": "content-type", "localVariableName": "LOCAL_VARIABLE", "parser": {"type": "regex", "value": ".*"}, "type": "http_body"}, "parse_test_public_id": "abc-def-123", "tags": ["team:front", "test:workflow-1"], "value": {"secure": true, "value": "value"}} When the request is sent Then the response status is 400 Invalid request @@ -264,7 +272,7 @@ Feature: Synthetics Scenario: Edit a global variable returns "OK" response Given new "EditGlobalVariable" request And request contains "variable_id" parameter from "REPLACE.ME" - And body with value {"attributes": {"restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]}, "description": "Example description", "name": "MY_VARIABLE", "parse_test_options": {"field": "content-type", "parser": {"type": "regex", "value": ".*"}, "type": "http_body"}, "parse_test_public_id": "abc-def-123", "tags": ["team:front", "test:workflow-1"], "value": {"secure": true, "value": "value"}} + And body with value {"attributes": {"restricted_roles": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]}, "description": "Example description", "name": "MY_VARIABLE", "parse_test_options": {"field": "content-type", "localVariableName": "LOCAL_VARIABLE", "parser": {"type": "regex", "value": ".*"}, "type": "http_body"}, "parse_test_public_id": "abc-def-123", "tags": ["team:front", "test:workflow-1"], "value": {"secure": true, "value": "value"}} When the request is sent Then the response status is 200 OK diff --git a/features/v1/synthetics_api_test_multi_step_payload.json b/features/v1/synthetics_api_test_multi_step_payload.json index 2b186d5f64d4..117f1b0b72de 100644 --- a/features/v1/synthetics_api_test_multi_step_payload.json +++ b/features/v1/synthetics_api_test_multi_step_payload.json @@ -18,6 +18,16 @@ "target": 200 } ], + "extractedValues": [ + { + "field": "server", + "name": "EXTRACTED_VALUE", + "parser": { + "type": "raw" + }, + "type": "http_header" + } + ], "isCritical": true, "name": "request is sent", "request": { diff --git a/features/v1/synthetics_global_variable_payload.json b/features/v1/synthetics_global_variable_payload.json new file mode 100644 index 000000000000..cb9c8b2d8821 --- /dev/null +++ b/features/v1/synthetics_global_variable_payload.json @@ -0,0 +1,14 @@ +{ + "description": "", + "name": "GLOBAL_VARIABLE_PAYLOAD", + "tags": [], + "value": { + "secure": false, + "value": "" + }, + "parse_test_public_id": "{{ synthetics_api_test_multi_step.public_id }}", + "parse_test_options": { + "type": "local_variable", + "localVariableName": "EXTRACTED_VALUE" + } +} diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb index 92a10da21b75..a3fd3696b85d 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options.rb @@ -28,6 +28,9 @@ class SyntheticsGlobalVariableParseTestOptions # When type is `http_header`, name of the header to use to extract the value. attr_accessor :field + # When type is `local_variable`, name of the local variable to use to extract the value. + attr_accessor :local_variable_name + # Details of the parser to use for the global variable. attr_accessor :parser @@ -39,6 +42,7 @@ class SyntheticsGlobalVariableParseTestOptions def self.attribute_map { :'field' => :'field', + :'local_variable_name' => :'localVariableName', :'parser' => :'parser', :'type' => :'type' } @@ -55,6 +59,7 @@ def self.acceptable_attributes def self.openapi_types { :'field' => :'String', + :'local_variable_name' => :'String', :'parser' => :'SyntheticsVariableParser', :'type' => :'SyntheticsGlobalVariableParseTestOptionsType' } @@ -87,6 +92,10 @@ def initialize(attributes = {}) self.field = attributes[:'field'] end + if attributes.key?(:'local_variable_name') + self.local_variable_name = attributes[:'local_variable_name'] + end + if attributes.key?(:'parser') self.parser = attributes[:'parser'] end @@ -100,21 +109,10 @@ def initialize(attributes = {}) # @return true if the model is valid # @!visibility private def valid? - return false if @parser.nil? return false if @type.nil? true end - # Custom attribute writer method with validation - # @param parser [Object] Object to be assigned - # @!visibility private - def parser=(parser) - if parser.nil? - fail ArgumentError, 'invalid value for "parser", parser cannot be nil.' - end - @parser = parser - end - # Custom attribute writer method with validation # @param type [Object] Object to be assigned # @!visibility private @@ -132,6 +130,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && field == o.field && + local_variable_name == o.local_variable_name && parser == o.parser && type == o.type end @@ -147,7 +146,7 @@ def eql?(o) # @return [Integer] Hash code # @!visibility private def hash - [field, parser, type].hash + [field, local_variable_name, parser, type].hash end end end diff --git a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb b/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb index 50cf275a1948..be82a6f5b223 100644 --- a/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_global_variable_parse_test_options_type.rb @@ -23,5 +23,6 @@ class SyntheticsGlobalVariableParseTestOptionsType HTTP_BODY = "http_body".freeze HTTP_HEADER = "http_header".freeze + LOCAL_VARIABLE = "local_variable".freeze end end