This PR introduces property-based approach to APIv3 testing, with a little help of StreamData framework. I also incorporated the fix/enhancement of 'the hack of the hack' introduced in #168. Shortly speaking, the request containing, from the needed fields, only data, alert/body and alert/title fields, was matched against SilentNotification schema, what has been leading to improper Unexpected field: alert error.
I also improved ControllersHelper.missing_field_response helper function to better reflect possible error messages we can encounter during tests, basing on the API version being used.
This PR introduces property-based approach to APIv3 testing, with a little help of
StreamData
framework. I also incorporated the fix/enhancement of 'the hack of the hack' introduced in #168. Shortly speaking, the request containing, from the needed fields, onlydata
,alert/body
andalert/title
fields, was matched againstSilentNotification
schema, what has been leading to improperUnexpected field: alert
error.I also improved
ControllersHelper.missing_field_response
helper function to better reflect possible error messages we can encounter during tests, basing on the API version being used.