Unicity / Gauntlet

A test runner for comparing outputs of HTTP endpoints (Team: US-Backend PM: Mike W.)
Apache License 2.0
1 stars 0 forks source link

Run cURL commands. #35

Open bluetechy opened 7 years ago

bluetechy commented 7 years ago

@powerc9000 Please add the ability to run cURL commands from Gauntlet so that we can do some blackbox testing with Hydra. Essentially, I would like to define an input file (e.g. input.curl) and have it execute the cURL command in that file. This will allow us to better debug Hydra code and will allow us to pass header information as well with our calls.

curl 'https://hydra.unicity.net/v5/autoorders/96fe70b925c8f002fe190734e91030d344dc5d79565140775e5d78f420fe0448' -H 'Pragma: no-cache' -H 'Origin: http://localhost' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.8,es-419;q=0.6,es;q=0.4,fr;q=0.2,vi;q=0.2' -H 'Authorization: Bearer 25220f4e-d683-4ca5-8a13-2f0568a2e086' -H 'Accept: application/json, text/plain, */*' -H 'Cache-Control: no-cache' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36' -H 'Connection: keep-alive' -H 'Referer: http://localhost/shop.ng/dist/' -H 'DNT: 1' --compressed