summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}