-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make TestsRunner.test.ts and TestsRunner.test.ts independent.
Signed-off-by: dblock <[email protected]>
- Loading branch information
Showing
28 changed files
with
474 additions
and
96 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
4 changes: 2 additions & 2 deletions
4
...r/fixtures/evals/error/chapter_error.yaml → ...ures/evals/books/error/chapter_error.yaml
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
4 changes: 2 additions & 2 deletions
4
.../fixtures/evals/error/prologue_error.yaml → ...res/evals/books/error/prologue_error.yaml
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
4 changes: 2 additions & 2 deletions
4
...r/fixtures/evals/failed/invalid_data.yaml → ...ures/evals/books/failed/invalid_data.yaml
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
65 changes: 65 additions & 0 deletions
65
tools/tests/tester/fixtures/evals/books/failed/not_found.yaml
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,65 @@ | ||
display_path: books/failed/not_found.yaml | ||
full_path: tools/tests/tester/fixtures/stories/books/failed/not_found.yaml | ||
|
||
result: FAILED | ||
description: This story should failed due to missing info in the spec. | ||
|
||
prologues: [] | ||
|
||
chapters: | ||
- title: This chapter should fail because the operation is not defined in the spec. | ||
overall: | ||
result: FAILED | ||
message: Operation "GET /_cat/health" not found in the spec. | ||
- title: This chapter should fail because the parameter is not defined in the spec. | ||
overall: | ||
result: FAILED | ||
request: | ||
parameters: | ||
index: | ||
result: PASSED | ||
timeout: | ||
result: FAILED | ||
message: Schema for "timeout" parameter not found. | ||
request_body: | ||
result: PASSED | ||
response: | ||
status: | ||
result: PASSED | ||
payload: | ||
result: PASSED | ||
- title: This chapter should fail because the request body is not defined in the spec. | ||
overall: | ||
result: FAILED | ||
request: | ||
parameters: | ||
index: | ||
result: PASSED | ||
request_body: | ||
result: FAILED | ||
message: Schema for "application/json" request body not found in the spec. | ||
response: | ||
status: | ||
result: PASSED | ||
payload: | ||
result: PASSED | ||
- title: This chapter should fail because the response is not defined in the spec. | ||
overall: | ||
result: FAILED | ||
request: | ||
parameters: | ||
index: | ||
result: PASSED | ||
request_body: | ||
result: PASSED | ||
response: | ||
status: | ||
result: PASSED | ||
payload: | ||
result: FAILED | ||
message: 'Schema for "404: application/json" response not found in the spec.' | ||
|
||
epilogues: | ||
- title: DELETE /books | ||
overall: | ||
result: PASSED |
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,28 @@ | ||
display_path: books/passed.yaml | ||
full_path: tools/tests/tester/fixtures/stories/books/passed.yaml | ||
|
||
result: PASSED | ||
description: This story should pass. | ||
|
||
prologues: [] | ||
|
||
chapters: | ||
- title: This chapter should pass. | ||
overall: | ||
result: PASSED | ||
request: | ||
parameters: | ||
index: | ||
result: PASSED | ||
request_body: | ||
result: PASSED | ||
response: | ||
status: | ||
result: PASSED | ||
payload: | ||
result: PASSED | ||
|
||
epilogues: | ||
- title: DELETE /books | ||
overall: | ||
result: PASSED |
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,7 @@ | ||
display_path: books/skipped.yaml | ||
full_path: "tools/tests/tester/fixtures/stories/books/skipped.yaml" | ||
|
||
result: SKIPPED | ||
description: This story should be skipped. | ||
|
||
chapters: [] |
39 changes: 39 additions & 0 deletions
39
tools/tests/tester/fixtures/evals/shoes/error/chapter_error.yaml
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,39 @@ | ||
display_path: error/chapter_error.yaml | ||
full_path: tools/tests/tester/fixtures/stories/shoes/error/chapter_error.yaml | ||
|
||
result: ERROR | ||
description: This story should failed due to missing info in the spec. | ||
|
||
prologues: | ||
- title: PUT /shoes | ||
overall: | ||
result: PASSED | ||
|
||
chapters: | ||
- title: This chapter should fail. | ||
overall: | ||
result: FAILED | ||
message: Operation "GET /{index}/settings" not found in the spec. | ||
- title: This chapter show throw an error. | ||
overall: | ||
result: ERROR | ||
request: | ||
parameters: {} | ||
request_body: | ||
result: PASSED | ||
response: | ||
status: | ||
result: ERROR | ||
message: 'Expected status 200, but received 404: application/json. no such index | ||
[undefined]' | ||
error: Request failed with status code 404 | ||
payload: | ||
result: SKIPPED | ||
- title: This chapter should be skipped. | ||
overall: | ||
result: SKIPPED | ||
|
||
epilogues: | ||
- title: DELETE /shoes | ||
overall: | ||
result: PASSED |
28 changes: 28 additions & 0 deletions
28
tools/tests/tester/fixtures/evals/shoes/error/prologue_error.yaml
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,28 @@ | ||
display_path: error/prologue_error.yaml | ||
full_path: tools/tests/tester/fixtures/stories/shoes/error/prologue_error.yaml | ||
|
||
result: ERROR | ||
description: This story should failed due to missing info in the spec. | ||
|
||
prologues: | ||
- title: PUT /shoes | ||
overall: | ||
result: PASSED | ||
- title: DELETE /does_not_exists | ||
overall: | ||
result: ERROR | ||
message: no such index [does_not_exists] | ||
error: Request failed with status code 404 | ||
|
||
chapters: | ||
- title: This chapter be skipped. | ||
overall: | ||
result: SKIPPED | ||
- title: This chapter be skipped. | ||
overall: | ||
result: SKIPPED | ||
|
||
epilogues: | ||
- title: DELETE /shoes | ||
overall: | ||
result: PASSED |
Oops, something went wrong.