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
- Download and install maven
- mvn clean install
- docker-compose build
- docker-compose up
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}
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}
curl "localhost:8081/healthcheck"
{"countingHealthcheck":{"healthy":true,"message":"Healthy. Count: 1"},"deadlocks":{"healthy":true}}