Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove requirement for 'name' in variable files #923

Merged
merged 3 commits into from
May 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading