Public | Automated Build

Last pushed: 2 years ago
Short Description
Post-deployment testing consul services.
Full Description

Pocker

Post-deployment testing consul services.

Installation

$ go get github.com/selimekizoglu/pocker

Usage

Options

Option Description
consul The location of the consul instance (IP/FQDN with port) to query. Defaults to localhost:8500.
service Name of the service registered in consul. Defaults to "".
expect Number of expected service instances registered in consul. Defaults to 1.
endpoint The endpoint of the service to be poked. Defaults to "/".
retry Number of retries after a failing poke. Defaults to 0 (Poke once).
timeout Timeout of each poke retry (in milliseconds). Defaults to 0.

Examples

The CLI interface supports all of the options detailed above.

$ pocker -consul 127.0.0.1:8500   \
         -service healthy-service \
         -expect 5                \
         -endpoint /healthcheck   \
         -retry 3                 \
         -timeout 3000
$ docker run --rm selimekizoglu/pocker:latest -consul 127.0.0.1:8500   \
                                              -service healthy-service \
                                              -expect 5                \
                                              -endpoint /healthcheck   \
                                              -retry 3                 \
                                              -timeout 3000
Docker Pull Command
Owner
selimekizoglu
Source Repository

Comments (0)