-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add EmtExtractorTest for invalid json files
- Loading branch information
1 parent
ce3149c
commit 7218918
Showing
3 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
test/fixtures/files/extended_metadata_type/invalid_emt_with_wrong_id.json
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,27 @@ | ||
{ | ||
"title": "study metadata demo", | ||
"supported_type": "Study", | ||
"enabled": true, | ||
"attributes": [ | ||
{ | ||
"title": "resource_type_general", | ||
"label": "Resource type general", | ||
"description": "resource type general", | ||
"type": "Controlled Vocabulary", | ||
"required": true, | ||
"pos": 1, | ||
"ID": -1 | ||
}, | ||
{ | ||
"title": "resource_study_country", | ||
"label": "Study country", | ||
"description": "study country", | ||
"type": "Controlled Vocabulary List", | ||
"required": true, | ||
"pos": 2, | ||
"ID": -1 | ||
} | ||
] | ||
} | ||
|
||
|
18 changes: 18 additions & 0 deletions
18
test/fixtures/files/extended_metadata_type/invalid_emt_with_wrong_type.json
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,18 @@ | ||
{ | ||
"title": "person", | ||
"supported_type": "ExtendedMetadata", | ||
"enabled": true, | ||
"attributes": [ | ||
{ | ||
"title": "first_name", | ||
"type": "String1", | ||
"required": true | ||
}, | ||
{ | ||
"title": "last_name", | ||
"label": "Last Name", | ||
"type": "String", | ||
"required": true | ||
} | ||
] | ||
} |
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