Leo Hemsted
c91358673f
add POST response tests
...
assert that the response for emails and sms is formatted as expected
also moved schemas into subdirectory to make folder more legible
2016-08-31 12:33:45 +01:00
Leo Hemsted
fabbb8b01b
separate tests for api and job notifications
2016-08-31 11:53:54 +01:00
Leo Hemsted
cb0491cbff
add test for GET /notification
...
simple schema with oneOf [email, sms].
also fixed error where ref'd schemas weren't being picked up
2016-08-30 19:07:46 +01:00
Leo Hemsted
1b7b4a2ccb
separate definitions into separate files to allow reuse
...
see https://github.com/Julian/jsonschema/issues/98
took boring generic things (eg uuid) into definitions.json, and also
separated email and sms notification objects into respective files
2016-08-30 18:45:54 +01:00
Leo Hemsted
aebaea1072
add public contract tests
...
use jsonschema to test the GET /notification/{} endpoint to highlight any key name/format/type changes
2016-08-30 15:55:52 +01:00