Skip to content
/ aries Public

Much like my beater car from the 80's, Aries is a beater Dropwizard application which can be used to simulate healthcheck failures, slow response times, and more for testing purposes

License

Notifications You must be signed in to change notification settings

jontodd/aries

Repository files navigation

aries

Much like my beater car from the 80's, Aries is a beater Dropwizard application which can be used to simulate healthcheck failures, slow response times, and more for testing purposes

Build & Run

  1. Download and install maven
  2. mvn clean install
  3. docker-compose build
  4. docker-compose up

API

Application - Port 8080

GET /status?minResponseDelayMillis=x&maxResponseDelayMillis=y

Request status with immediate response

curl -v "localhost:8080/status"
{"healthy":true,"callCount":1,"responseDelayMillis":0}

Request status with a delay between 2 and 5 seconds

curl "localhost:8080/status?minResponseDelayMillis=2000&maxResponseDelayMillis=5000"
{"healthy":true,"callCount":1,"responseDelayMillis":3862}

POST /status

Simulate healthcheck failure

curl -X POST -d '{"healthy":false}' -H "Content-Type: application/json" localhost:8080/status;
{"healthy":false,"callCount":0,"responseDelayMillis":0}

Resume healthcheck success

curl -X POST -d '{"healthy":true}' -H "Content-Type: application/json" localhost:8080/status;
{"healthy":true,"callCount":0,"responseDelayMillis":0}

Admin - Port 8081

GET /healthcheck - Healthcheck endpoint. Returns 200 on success, 500 on failure

curl "localhost:8081/healthcheck"
{"countingHealthcheck":{"healthy":true,"message":"Healthy. Count: 1"},"deadlocks":{"healthy":true}}

About

Much like my beater car from the 80's, Aries is a beater Dropwizard application which can be used to simulate healthcheck failures, slow response times, and more for testing purposes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages