From 4209e2ad637a52f1a9185c6f5a3437463e42229a Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Fri, 23 Jul 2021 11:53:20 +0000 Subject: [PATCH] Regenerate client from commit 0b10309 of spec repo (#511) Co-authored-by: ci.datadog-api-spec Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> --- .apigentools-info | 8 ++++---- tests/v1/features/synthetics.feature | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 77f7e8eac4..89040f0428 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.4.1.dev11", - "regenerated": "2021-07-21 11:36:31.229907", - "spec_repo_commit": "a4f22f3" + "regenerated": "2021-07-23 09:17:27.076054", + "spec_repo_commit": "0b10309" }, "v2": { "apigentools_version": "1.4.1.dev11", - "regenerated": "2021-07-21 11:36:53.312662", - "spec_repo_commit": "a4f22f3" + "regenerated": "2021-07-23 09:17:49.537097", + "spec_repo_commit": "0b10309" } } } \ No newline at end of file diff --git a/tests/v1/features/synthetics.feature b/tests/v1/features/synthetics.feature index 4e11570772..8f0482cead 100644 --- a/tests/v1/features/synthetics.feature +++ b/tests/v1/features/synthetics.feature @@ -15,6 +15,22 @@ Feature: Synthetics And a valid "appKeyAuth" key in the system And an instance of "Synthetics" API + @replay-only @skip-python @skip-typescript @skip-java @skip-ruby + Scenario: Client is resilient to enum and oneOf deserialization errors + Given new "ListTests" request + When the request is sent + Then the response status is 200 OK - Returns the list of all Synthetic tests. + And the response "tests" has length 6 + And the response "tests[0].config.assertions" has length 3 + And the response "tests[0].config.assertions[0].operator" is equal to "lessThan" + And the response "tests[0].config.assertions[2].operator" is equal to "A non existent operator" + And the response "tests[1].config.assertions[0].operator" is equal to "lessThan" + And the response "tests[1].config.assertions[1].type" is equal to "A non existent assertion type" + And the response "tests[2].options.device_ids" has length 3 + And the response "tests[2].options.device_ids[2]" is equal to "A non existent device ID" + And the response "tests[3].type" is equal to "A non existent test type" + And the response "tests[4].config.request.method" is equal to "A non existent method" + @generated @skip Scenario: Create a browser test returns "- JSON format is wrong" response Given new "CreateSyntheticsBrowserTest" request