mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
tests: updated for increase in slack time
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
@@ -77,7 +77,7 @@ rm -f "${PIDFILE2}"
|
||||
# In 0.11.10 the server behavior changed to allow immediate reconnection,
|
||||
# with a cookie that was explicitly terminated by the user, as anyconnect
|
||||
# clients follow that behavioral pattern.
|
||||
sleep 12
|
||||
sleep 18
|
||||
|
||||
echo "Proper termination and connecting again with same (invalidated) cookie... "
|
||||
#( echo "test" | $OPENCONNECT -q localhost:$PORT -u test -C "$COOKIE" --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly >/dev/null 2>&1 ) ||
|
||||
|
||||
@@ -39,7 +39,7 @@ if [ -z "$COOKIE" ];then
|
||||
fi
|
||||
|
||||
#echo "Cookie: $COOKIE"
|
||||
sleep 10
|
||||
sleep 16
|
||||
echo ""
|
||||
echo "Connecting with cookie... "
|
||||
echo "test" | $OPENCONNECT -q -b localhost:$PORT -u test -C "$COOKIE" --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --script=/bin/true --verbose --pid-file "${PIDFILE}" --background
|
||||
@@ -54,7 +54,7 @@ CPID=`cat "${PIDFILE}"`
|
||||
kill $CPID
|
||||
rm -f "${PIDFILE}"
|
||||
|
||||
sleep 10
|
||||
sleep 16
|
||||
echo ""
|
||||
echo "Connecting again with cookie... "
|
||||
echo "test" | $OPENCONNECT -b -q localhost:$PORT -u test -C "$COOKIE" --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --script=/bin/true --verbose --pid-file "${PIDFILE}" --background
|
||||
@@ -69,7 +69,7 @@ CPID=`cat "${PIDFILE}"`
|
||||
kill -9 $CPID
|
||||
rm -f "${PIDFILE}"
|
||||
|
||||
sleep 10
|
||||
sleep 16
|
||||
echo ""
|
||||
echo "Connecting after forced kill with cookie... "
|
||||
echo "test" | $OPENCONNECT -b -q localhost:$PORT -u test -C "$COOKIE" --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --script=/bin/true --verbose --pid-file "${PIDFILE}" --background
|
||||
@@ -85,7 +85,7 @@ kill $CPID
|
||||
rm -f "${PIDFILE}"
|
||||
|
||||
|
||||
sleep 40
|
||||
sleep 45
|
||||
echo ""
|
||||
echo "Connecting with cookie after expiration... "
|
||||
echo "test" | $OPENCONNECT -q -b localhost:$PORT -u test -C "$COOKIE" --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --script=/bin/true --verbose --pid-file "${PIDFILE}" --background
|
||||
|
||||
Reference in New Issue
Block a user