diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-02-11 14:32:29 +0100 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-02-11 20:32:30 +0100 |
commit | 27339fc8d15198f22aa853a0237e2737c06bd442 (patch) | |
tree | 15d438937c122291d77560654e7123f3e85ec4b6 /test/integration | |
parent | d501f3f88ecd8410ae4040c62a099017db8dcb9f (diff) |
[test] some toxiproxy settings to test timeouts
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/toxics/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/integration/toxics/Makefile b/test/integration/toxics/Makefile new file mode 100644 index 0000000..ff9a430 --- /dev/null +++ b/test/integration/toxics/Makefile @@ -0,0 +1,18 @@ +# Some toxiproxy settings to simulate high latency or interrupted sockets. + +PROXY?=sip +LATENCY?=1000 + +inspect: + toxiproxy-cli list + toxiproxy-cli inspect ${PROXY} + +create: + toxiproxy-cli create ${PROXY} --listen localhost:7001 --upstream localhost:6001 + toxiproxy-cli toxic add ${PROXY} --type latency --attributes latency=${LATENCY} + +set-latency: + toxiproxy-cli toxic update ${PROXY} --toxicName latency_downstream -a=jitter=0,latency=${LATENCY} + +toggle: + toxiproxy-cli toggle ${PROXY} |