asyrjasalo / RESTinstance

Robot Framework library for RESTful JSON APIs
https://asyrjasalo.github.io/RESTinstance
GNU Lesser General Public License v3.0
204 stars 84 forks source link

Add `data` to requests and add SSL verify keyword #99

Closed asimell closed 3 years ago

asimell commented 4 years ago

Adds support for the curl flag --data-binary by adding a data parameter to GET, POST, PUT, and PATCH requests. The data can be bytes or a path to a file containing bytes-typed data.

Also adds a Set SSL Verify keyword to allow changing the SSL verification after a library has been imported, so we don't need to import the library multiple times. The reason for this is that our requests need verification, but in order to get our certificate file we need to make one call without verification (chicken-egg problem).

asimell commented 3 years ago

nox was failing because there was some mysterious whitespace characters that were not actually whitespace.

Also updated pre-commit hook robotframework-tidy version, since the old one didn't support RF 3.2