summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-02-11 14:32:29 +0100
committerkali kaneko (leap communications) <kali@leap.se>2020-02-11 20:32:30 +0100
commit27339fc8d15198f22aa853a0237e2737c06bd442 (patch)
tree15d438937c122291d77560654e7123f3e85ec4b6
parentd501f3f88ecd8410ae4040c62a099017db8dcb9f (diff)
[test] some toxiproxy settings to test timeouts
-rw-r--r--test/integration/toxics/Makefile18
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}