This is a program that aims high performance stubbing through configuration
Install Go
git clone https://github.com/miguelnv/amun.git
cd amun
go build
./amun -file-path=custom/config.yaml
docker build -t "amun:0.1" .
docker run -d -p 9000:9000 --name "amun" amun:0.1
curl http://localhost:9000/test/123?action=test -H "X-test: val2"
curl http://localhost:9000/test/123?action=test -H "X-test: val2" -H "X-Amun-Latency: 200ms"
curl http://localhost:9000/test/123?action=test -H "X-test: val2" -H "X-Amun-latency: 1s"
curl -v -X POST -d '{"path": "/hello","contentType": "text/plain","template": "world"}' localhost:9000/mappings
./wrk -t2 -c100 -d30s -L -R2000 http://127.0.0.1:9000/test/123\?action\=test -H "X-test: val2"