tests: use env variable to leave the docker image open

This commit is contained in:
Nikos Mavrogiannopoulos
2015-02-20 14:06:57 +01:00
parent 4a3668897d
commit 4e459c578a
5 changed files with 21 additions and 0 deletions

View File

@@ -48,6 +48,10 @@ if test -z "$IP";then
fi
echo "Detected IP: $IP"
if test ! -z "$QUIT_ON_INIT";then
exit 0
fi
printf "test\ntestuser\n" >pass-full.tmp
openconnect $IP:$PORT_OCSERV -u test --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly < pass-full.tmp
if test $? = 0;then

View File

@@ -62,6 +62,10 @@ if test -z "$IP";then
fi
echo "Detected KDC IP: $IP"
if test ! -z "$QUIT_ON_INIT";then
exit 0
fi
# run the client
CONFIG="client"
DOCKER_DIR=docker-kerberos

View File

@@ -49,6 +49,10 @@ if test -z "$IP";then
fi
echo "Detected IP: $IP"
if test ! -z "$QUIT_ON_INIT";then
exit 0
fi
printf "testuser\n" >pass-pam.tmp
openconnect $IP:$PORT_OCSERV -u testuser --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly < pass-pam.tmp
if test $? = 0;then

View File

@@ -51,6 +51,10 @@ if test -z "$IP";then
fi
echo "Detected IP: $IP"
if test ! -z "$QUIT_ON_INIT";then
exit 0
fi
printf "testuser\n" >pass-radius.tmp
openconnect $IP:$PORT_OCSERV -u test --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly < pass-radius.tmp
if test $? = 0;then

View File

@@ -46,6 +46,11 @@ if test -z "$IP";then
echo "Detected IP is null!"
stop
fi
echo "Detected IP: $IP"
if test ! -z "$QUIT_ON_INIT";then
exit 0
fi
printf "test\ntest\n" >pass.tmp
openconnect $IP:6551 -u test --passwd-on-stdin --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 < pass.tmp &