From e2935c2171dbcd13b48407b529be4874520f1e85 Mon Sep 17 00:00:00 2001 From: Michael Boulton Date: Thu, 28 Mar 2024 12:01:41 +0000 Subject: [PATCH 1/2] Remove requirement for 'name' in variable files --- tavern/_core/schema/tests.jsonschema.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/tavern/_core/schema/tests.jsonschema.yaml b/tavern/_core/schema/tests.jsonschema.yaml index 428f62d4..3d9cd042 100644 --- a/tavern/_core/schema/tests.jsonschema.yaml +++ b/tavern/_core/schema/tests.jsonschema.yaml @@ -44,9 +44,6 @@ definitions: type: object additionalProperties: false - required: - - name - properties: name: type: string From 73a6cd874032432e4c4654357b508bbe5c45fdda Mon Sep 17 00:00:00 2001 From: Michael Boulton Date: Thu, 28 Mar 2024 12:49:27 +0000 Subject: [PATCH 2/2] Add test case --- tests/integration/test_include.tavern.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/integration/test_include.tavern.yaml b/tests/integration/test_include.tavern.yaml index 4e2d45c7..f0dc11b9 100644 --- a/tests/integration/test_include.tavern.yaml +++ b/tests/integration/test_include.tavern.yaml @@ -14,6 +14,26 @@ stages: status_code: 200 json: !include 881_1.json +--- +test_name: Test using variables directly + +includes: + - !include common.yaml + - variables: + full_path: "echo" + +stages: + - name: Send included json + request: + url: "{host}/{full_path}" + method: POST + json: + hell: o + response: + status_code: 200 + json: + hell: o + --- test_name: Test including json with key