Skip to content

Commit

Permalink
Update Docs (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
symm authored Jul 9, 2017
1 parent 5ad7423 commit 23c65e9
Showing 1 changed file with 39 additions and 14 deletions.
53 changes: 39 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,22 @@
[![Docker Pulls](https://img.shields.io/docker/pulls/symm/vape.svg)](https://hub.docker.com/r/symm/vape/)
[![license](https://img.shields.io/github/license/symm/vape.svg)]()

Modern [Smoke testing](https://en.wikipedia.org/wiki/Smoke_testing) tool written in Go. Inspired by [Shisha](https://github.com/namshi/shisha)
Modern [Smoke testing](https://en.wikipedia.org/wiki/Smoke_testing) tool written in Go.

Vape is intended to be used within a [Continuous Delivery Pipeline](https://en.wikipedia.org/wiki/Continuous_delivery) as a
post-deployment step.

It can quickly make assertions about the status code and content of a list of URIs to determine if
the release is good or not.

![Success](/assets/success.png?raw=true "Success")
![Failure](/assets/failure.png?raw=true "Failure")

# How to use

## As a binary

Grab a binary from our [Releases page](https://github.com/symm/vape/releases) or build one by checking out this repo and running `make`
## Configuration

Then create a `Vapefile` file in the format:
Create a file named `Vapefile` file in the format:
```json
[
{
Expand All @@ -38,15 +42,15 @@ Then create a `Vapefile` file in the format:
]
```

then execute `vape http://your.domain` to run the tests
The `uri` and `status_code` are required, `content` check is optional

## As a container
## Run vape from a container (Recommended)

No need to download binaries or compile the project, we publish a ready made image on [Docker Hub](https://hub.docker.com/r/symm/vape/)
We publish a ready made image on [Docker Hub](https://hub.docker.com/r/symm/vape/)

Just create the `Vapefile` file as above and mount it inside a container:

```shell
```bash
docker run \
--rm \
-t \
Expand All @@ -55,11 +59,32 @@ docker run \
https://your.domain
```

### Optional Arguments
## Run vape from a binary

Grab a binary from our [releases page](https://github.com/symm/vape/releases) or build one by checking out this repo and running `make`
then execute `./vape http://your.domain` to run the tests

## Optional flags

The following optional command line flags may be passed:

```bash
Usage of ./vape:
-concurrency int
The maximum number of requests to make at a time (default 3)
-config string
The full path to the Vape configuration file (default "Vapefile")
-skip-ssl-verification
Ignore bad SSL certs
```

For example:

`-config full/path/to/Vapefile`: specify an alternative to looking for `Vapefile` in the current directory
`-skip-ssl-verification`: Ignore bad / self signed SSL certificates
```bash
./vape -concurrency 10 -config vape.conf -skip-ssl-verification http://httpbin.org
```

## TODO
# Links

This project is HackDay™ quality. In need of test coverage and refactoring
- [Shisha](https://github.com/namshi/shisha) - The tool which originally inspired the creation of this project
- [Cigar](https://github.com/brunty/cigar) - PHP smoke testing tool.

0 comments on commit 23c65e9

Please sign in to comment.