From 3650bb3a371e7209c6dfa24e4c4ce3002ee3fd73 Mon Sep 17 00:00:00 2001 From: Ivan Ilves Date: Sat, 27 May 2017 00:06:54 +0200 Subject: [PATCH] Case: Run without reconnection --- .travis.yml | 1 + testing/integration/cases/run_with_reconnection.sh | 2 +- .../integration/cases/run_without_reconnection.sh | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index cd406ce..cf96a59 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,6 +24,7 @@ script: - testing/run_integration_case.sh run_with_dns_propagation - testing/run_integration_case.sh run_without_dns_propagation - testing/run_integration_case.sh run_with_reconnection + - testing/run_integration_case.sh run_without_reconnection branches: only: diff --git a/testing/integration/cases/run_with_reconnection.sh b/testing/integration/cases/run_with_reconnection.sh index 0ff2ef6..d193f48 100644 --- a/testing/integration/cases/run_with_reconnection.sh +++ b/testing/integration/cases/run_with_reconnection.sh @@ -1,4 +1,4 @@ -INIT_DELAY=10 +INIT_DELAY=5 DOWN_DELAY=5 ${XIRI_EXE} -f 1 -X ${SSH_USER}@${REMOTE_IP} 10.245.245.245/32 & diff --git a/testing/integration/cases/run_without_reconnection.sh b/testing/integration/cases/run_without_reconnection.sh index e69de29..0f12a93 100644 --- a/testing/integration/cases/run_without_reconnection.sh +++ b/testing/integration/cases/run_without_reconnection.sh @@ -0,0 +1,14 @@ +INIT_DELAY=5 + +${XIRI_EXE} -f 1 -X -R ${SSH_USER}@${REMOTE_IP} 10.245.245.245/32 & +XIRI_PID=${!}; sleep ${INIT_DELAY} + +docker restart xiri-${DIST} + +sleep ${INIT_DELAY} + +warn "$(ip route | grep 10.245.245.245)" +if [[ -n "$(ip route | grep 10.245.245.245)" ]]; then + complain "Routing not down, but it should be!" + exit 1 +fi