From 27339fc8d15198f22aa853a0237e2737c06bd442 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Tue, 11 Feb 2020 14:32:29 +0100 Subject: [test] some toxiproxy settings to test timeouts --- test/integration/toxics/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/integration/toxics/Makefile 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} -- cgit v1.2.3