Skip to content

Latest commit

 

History

History
executable file
·
43 lines (30 loc) · 1.85 KB

README.md

File metadata and controls

executable file
·
43 lines (30 loc) · 1.85 KB

Validate HTTP Response

Version Go Report Card codebeat badge license

NAME:
   validate-http-response - Basic testing for HTTP responses

USAGE:
   validate-http-response [options] [URL]

VERSION:
   0.6.0

COMMANDS:
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --code value    The expected HTTP status code. Defaults to 200. (default: 200)
   --method value  The HTTP method to use when calling the URL. Defaults to 'GET'. (default: "GET")
   --schema FILE   FILE used to load JSON schema for response verification
   --headers FILE  FILE containing headers to send to URL
   --body FILE     FILE containing body content to send to URL
   --silent        If specified, nothing will be printed to stdout
   --help, -h      show help
   --version, -v   print the version

Why?

Run as part of a CI pipeline to test integration of changes and check for regressions.

Example

./validate-http-response-darwin_amd64 --schema=validation/baz.json http://www.foo.bar/baz

Building

Install dependencies: glide install

Build: make darwin-amd64 or make linux-amd64