module-rest
module-rest copied to clipboard
REST module for Codeception
My main intent is to make sure the response contains the number of elements I expect. My current flow is to grab the json_decoded response and use PHPUnit asserts for...
Release notes: https://github.com/jsonrainbow/json-schema/releases/tag/6.0.0 Seems like this packages is not affected by any BC breaking change despite one changed exception message. /cc @TavoNiievez
Fixes https://github.com/Codeception/module-rest/issues/104
When we use `$I->seeResponseIsValidOnJsonSchemaString`, and the assertion fails, we get an error like this: ``` Step See response is valid on json schema string "{"type":"object","properties":{"error":{"type":"string"},"client":{"type":["string","number","null"]},"state":{"type":"null"},"message":{"type":["string","null"]},"int..." Fail String value found, but...
Adding this header will make it easier to read exceptions in the console, e.g. in Symfony currently html is returned.
Currently the rest module only supports `grabResponse()` which returns a string. It would be nice to grab the full response including headers, or just the headers if needed to troubleshoot....
I want to send POST request with headers and raw data (**string** not **array**) Test: ```php $I->haveHttpHeader('HeaderName', 'HeaderValue'); $I->sendPost(url: '/localhost', params: 'my raw content'); // @param array|string|JsonSerializable $params ``` Result:...
closes #114 This adds functionality to return full headers and perform additional assertions on them, e.g. verifying substrings in headers. I'm unsure if I should open another one in https://github.com/Codeception/lib-innerbrowser...