Rudimentary Spring Boot app that does nothing of interest, but allows demonstation of the following tech.
- Localstack
- Toxiproxy
- Cucumber
- Start the containers
docker compose up --build -d - Create the S3 bucket
docker exec toxiproxy-demo-localstack awslocal s3api create-bucket --bucket toxiproxy-demo --create-bucket-configuration LocationConstraint=eu-west-2 - Set ENV VAR
AWS_ACCESS_KEY_ID - Set ENV VAR
AWS_SECRET_ACCESS_KEY - Create a new document on S3
curl POST http://localhost:8080/api/v1/toxiproxy-demo/create - View the document added to cache
curl GET http://localhost:8080/api/v1/toxiproxy-demo/cache - Resrt the contents of the cache
curl POST http://localhost:8080/api/v1/toxiproxy-demo/reset