-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into feat/3.0-release
- Loading branch information
Showing
8 changed files
with
98 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
test_name: Test getting format vars from environment variables | ||
|
||
includes: | ||
- !include common.yaml | ||
|
||
stages: | ||
- name: Make requests using environment variables | ||
request: | ||
url: "{tavern.env_vars.TEST_HOST}/{first_part}/{second_part}" | ||
method: GET | ||
response: | ||
status_code: 200 | ||
json: | ||
status: OK | ||
|
||
--- | ||
test_name: Test slicing request vars | ||
|
||
stages: | ||
- name: Make request and expect part of list in it to be returned | ||
request: | ||
url: "{global_host}/sub-path-query" | ||
method: POST | ||
json: | ||
sub_path: "a.b[0].c" | ||
"a": { "b": [{ "c": 3 }] } | ||
response: | ||
status_code: 200 | ||
json: | ||
result: !int "{tavern.request_vars.json.a.b[0].c}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters