Skip to content

Commit

Permalink
Remove requirement for 'name' in variable files (#923)
Browse files Browse the repository at this point in the history
* Remove requirement for 'name' in variable files

* Add test case
  • Loading branch information
michaelboulton authored May 11, 2024
1 parent 1fd236d commit 13d7b2a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tavern/_core/schema/tests.jsonschema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ definitions:
type: object
additionalProperties: false

required:
- name

properties:
name:
type: string
Expand Down
20 changes: 20 additions & 0 deletions tests/integration/test_include.tavern.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 13d7b2a

Please sign in to comment.