-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed schema validation for invalid properties in retry configuration. (
#758) * Fixed schema validation for invalid properties in retry configuration. Signed-off-by: Nathalie Jonathan <[email protected]> * Updated link to PR in CHANGELOG.md. Signed-off-by: Nathalie Jonathan <[email protected]> * Added a test for the invalid property. Signed-off-by: Nathalie Jonathan <[email protected]> --------- Signed-off-by: Nathalie Jonathan <[email protected]>
- Loading branch information
1 parent
a3849b4
commit 24872ec
Showing
4 changed files
with
39 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
$schema: ../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: This story has invalid property for retry configuration when validated against test_story.schema.yaml. | ||
prologues: | ||
- path: /{index} | ||
method: GET | ||
retry: | ||
count: 5 | ||
wait: 30000 | ||
until: # invalid property | ||
- path: payload.state | ||
equal: COMPLETED | ||
epilogues: | ||
- path: /{index} | ||
method: DELETE | ||
status: [200, 404] | ||
chapters: | ||
- synopsis: Delete index. | ||
path: /{index} | ||
method: DELETE |