Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple verification tool to check if a target URL returns a 200 response

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages