Last active
August 29, 2015 14:08
-
-
Save dg3feiko/eff8c72c752cf29223ee to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ | |
"sample": { | |
"valid": ["PK123123","OI2123123","haha"], | |
"no_result": ["))kjjkkdf","**kjkljsdf"], | |
"bad_format": ["&^&^*^*&*","()()()():P"] | |
}, | |
"test": { | |
"basic_test": | |
{ | |
"expect": | |
{ | |
//check against each of result of all trackings | |
"exist":[ | |
"shipment.weight",//single field | |
"checkpoints..address.country_iso3"//field in array, use double dot | |
] | |
} | |
}, | |
"correctness_test": | |
{ | |
"cases":[ | |
{ | |
"description":"it should have sign_by",//optional | |
"tracking_numbers":["123123123"], | |
"expect": | |
{ | |
"exist":["shipment.signed_by"] | |
} | |
}, | |
{ | |
"description":"it should have no result with invalid number",//optional | |
"tracking_numbers":["123123123"], | |
"expect": | |
{ | |
"error":801//or Tracking_No_Result(string), check against each tracking in returned result | |
} | |
}, | |
{ | |
"description":"it should have proof or delivery", | |
"tracking_numbers":["456456456"], | |
"expect": | |
{ | |
"result":[ | |
//the whole results array | |
] | |
} | |
}, | |
{ | |
"description":"it should have only one tracking error", | |
"tracking_numbers":["valid_no","invalid_no"]; | |
"expect": | |
{ | |
"result":[ | |
//the whole results array | |
] | |
} | |
} | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Proposal of flat config