-
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.
Merge pull request #608 from IanCa/develop
Add hedID validation tests
- Loading branch information
Showing
1 changed file
with
146 additions
and
0 deletions.
There are no files selected for viewing
146 changes: 146 additions & 0 deletions
146
tests/json_tests/SCHEMA_ATTRIBUTE_VALUE_INVALID_HED_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,146 @@ | ||
[ | ||
{ | ||
"error_code": "SCHEMA_ATTRIBUTE_VALUE_INVALID", | ||
"name": "attribute-invalid-hed-id-changed", | ||
"warning": true, | ||
"description": "A schema value class issue, saying there is an unknown one.", | ||
"schema": "", | ||
"definitions": [], | ||
"tests": { | ||
"schema_tests": { | ||
"fails": [ | ||
[ | ||
"HED version=\"8.4.0\"", | ||
"'''Prologue'''", | ||
"!# start schema", | ||
"'''Event'''{hedId=HED_0015001}", | ||
"!# end schema", | ||
"'''Unit classes'''", | ||
"'''Unit modifiers'''", | ||
"'''Value classes'''", | ||
"'''Schema attributes'''", | ||
"* hedId {elementDomain}", | ||
"'''Properties'''", | ||
"* elementDomain", | ||
"'''Epilogue'''", | ||
"!# end hed" | ||
] | ||
], | ||
"passes": [ | ||
[ | ||
"HED version=\"8.4.0\"", | ||
"'''Prologue'''", | ||
"!# start schema", | ||
"'''Event'''{hedId=HED_0012001}", | ||
"!# end schema", | ||
"'''Unit classes'''", | ||
"'''Unit modifiers'''", | ||
"'''Value classes'''", | ||
"'''Schema attributes'''", | ||
"* hedId {elementDomain}", | ||
"'''Properties'''", | ||
"* elementDomain", | ||
"'''Epilogue'''", | ||
"!# end hed" | ||
] | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"error_code": "SCHEMA_ATTRIBUTE_VALUE_INVALID", | ||
"name": "attribute-invalid-hed-id-out-range", | ||
"warning": true, | ||
"description": "A schema value class issue, saying there is an unknown one.", | ||
"schema": "", | ||
"definitions": [], | ||
"tests": { | ||
"schema_tests": { | ||
"fails": [ | ||
[ | ||
"HED version=\"8.4.0\"", | ||
"'''Prologue'''", | ||
"!# start schema", | ||
"'''NewTagWithNewID'''{hedId=HED_0055000}", | ||
"!# end schema", | ||
"'''Unit classes'''", | ||
"'''Unit modifiers'''", | ||
"'''Value classes'''", | ||
"'''Schema attributes'''", | ||
"* hedId {elementDomain}", | ||
"'''Properties'''", | ||
"* elementDomain", | ||
"'''Epilogue'''", | ||
"!# end hed" | ||
] | ||
], | ||
"passes": [ | ||
[ | ||
"HED version=\"8.4.0\"", | ||
"'''Prologue'''", | ||
"!# start schema", | ||
"'''NewTagWithNewID'''{hedId=HED_0015001}", | ||
"!# end schema", | ||
"'''Unit classes'''", | ||
"'''Unit modifiers'''", | ||
"'''Value classes'''", | ||
"'''Schema attributes'''", | ||
"* hedId {elementDomain}", | ||
"'''Properties'''", | ||
"* elementDomain", | ||
"'''Epilogue'''", | ||
"!# end hed" | ||
] | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"error_code": "SCHEMA_ATTRIBUTE_VALUE_INVALID", | ||
"name": "attribute-invalid-hed-id-invalid", | ||
"warning": true, | ||
"description": "A schema value class issue, saying there is an unknown one.", | ||
"schema": "", | ||
"definitions": [], | ||
"tests": { | ||
"schema_tests": { | ||
"fails": [ | ||
[ | ||
"HED version=\"8.4.0\"", | ||
"'''Prologue'''", | ||
"!# start schema", | ||
"'''NewTagWithNewID'''{hedId=HED_XXXXXXX}", | ||
"!# end schema", | ||
"'''Unit classes'''", | ||
"'''Unit modifiers'''", | ||
"'''Value classes'''", | ||
"'''Schema attributes'''", | ||
"* hedId {elementDomain}", | ||
"'''Properties'''", | ||
"* elementDomain", | ||
"'''Epilogue'''", | ||
"!# end hed" | ||
] | ||
], | ||
"passes": [ | ||
[ | ||
"HED version=\"8.4.0\"", | ||
"'''Prologue'''", | ||
"!# start schema", | ||
"'''NewTagWithNewID'''{hedId=HED_0015001}", | ||
"!# end schema", | ||
"'''Unit classes'''", | ||
"'''Unit modifiers'''", | ||
"'''Value classes'''", | ||
"'''Schema attributes'''", | ||
"* hedId {elementDomain}", | ||
"'''Properties'''", | ||
"* elementDomain", | ||
"'''Epilogue'''", | ||
"!# end hed" | ||
] | ||
] | ||
} | ||
} | ||
} | ||
] |