-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding information on test requirements
Refactor json tests Remove some unneeded test files Add tests for the specific example of the default population failure Update DJORNL stored queries to a ref structure that will work when populating defaults Remove comments from file
- Loading branch information
1 parent
53ad1bb
commit 1c5bbea
Showing
31 changed files
with
503 additions
and
365 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
$schema: "http://json-schema.org/draft-07/schema#" | ||
name: fruit | ||
type: string | ||
oneOf: | ||
- const: peach | ||
- const: plum | ||
- const: dragonfruit | ||
- const: strawberry | ||
- const: pear |
13 changes: 13 additions & 0 deletions
13
relation_engine_server/test/data/json_validation/fruits_array.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,13 @@ | ||
$schema: "http://json-schema.org/draft-07/schema#" | ||
name: fruits_array | ||
definitions: | ||
fruits: | ||
type: array | ||
items: | ||
$ref: fruit.yaml | ||
default: [] | ||
uniqueItems: true | ||
examples: | ||
- ['peach', 'plum'] | ||
- ['strawberry'] | ||
- [] |
5 changes: 0 additions & 5 deletions
5
relation_engine_server/test/data/json_validation/invalid_array.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
relation_engine_server/test/data/json_validation/invalid_array.yaml
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
relation_engine_server/test/data/json_validation/invalid_array_items.json
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
relation_engine_server/test/data/json_validation/invalid_array_items.yaml
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
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
5 changes: 0 additions & 5 deletions
5
relation_engine_server/test/data/json_validation/valid_array.json
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
relation_engine_server/test/data/json_validation/valid_array.yaml
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
relation_engine_server/test/data/json_validation/valid_uri.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
name: valid_uri | ||
distance: 3 | ||
home_page: "http://json-validation.com:5000/this/is/valid" | ||
home_page: http://json-validation.com:5000/this/is/valid |
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
Oops, something went wrong.