Skip to content
/ amun Public

Program that aims high performance stubbing through configuration

Notifications You must be signed in to change notification settings

miguelnv/amun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amun

This is a program that aims high performance stubbing through configuration

Install and configure Go

Install Go

Build and Run It

Locally

git clone https://github.com/miguelnv/amun.git
cd amun
go build
./amun -file-path=custom/config.yaml

Dockerized

docker build -t "amun:0.1" .
docker run -d -p 9000:9000 --name "amun" amun:0.1

Usage

Matching parameter and header

curl http://localhost:9000/test/123?action=test -H "X-test: val2"

With 200 milliseconds of latency

curl http://localhost:9000/test/123?action=test -H "X-test: val2" -H "X-Amun-Latency: 200ms"

With 1 second of latency

curl http://localhost:9000/test/123?action=test -H "X-test: val2" -H "X-Amun-latency: 1s"

Add mapping

curl -v -X POST -d '{"path": "/hello","contentType": "text/plain","template": "world"}' localhost:9000/mappings

Profiling it

with wrk2

./wrk -t2 -c100 -d30s -L -R2000 http://127.0.0.1:9000/test/123\?action\=test -H "X-test: val2"

About

Program that aims high performance stubbing through configuration

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published