mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-12 01:26:48 +08:00
tests: corrected full-test checks
This commit is contained in:
+4
-4
@@ -54,22 +54,22 @@ if test ! -z "$QUIT_ON_INIT";then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "test\ntestuser\n" >pass-full$TMP
|
printf "testuser\n" >pass-full$TMP
|
||||||
openconnect $IP:$PORT_OCSERV -u test --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly < pass-full$TMP
|
openconnect $IP:$PORT_OCSERV -u test --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly < pass-full$TMP
|
||||||
if test $? = 0;then
|
if test $? = 0;then
|
||||||
echo "Authentication with wrong password succeeded!"
|
echo "Authentication with wrong password succeeded!"
|
||||||
stop
|
stop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "test\ntest\n" >pass-full$TMP
|
printf "test\n" >pass-full$TMP
|
||||||
openconnect $IP:$PORT_OCSERV -u testuser --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly < pass-full$TMP
|
openconnect $IP:$PORT_OCSERV -u testuser --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly < pass-full$TMP
|
||||||
if test $? = 0;then
|
if test $? = 0;then
|
||||||
echo "Authentication with wrong username succeeded!"
|
echo "Authentication with wrong username succeeded!"
|
||||||
stop
|
stop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "test\ntest\n" >pass-full$TMP
|
printf "test\n" >pass-full$TMP
|
||||||
openconnect $IP:5551 -u test --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 < pass-full$TMP &
|
openconnect $IP:$PORT_OCSERV -u test --passwd-on-stdin -v --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 < pass-full$TMP &
|
||||||
PID=$!
|
PID=$!
|
||||||
|
|
||||||
rm -f pass-full$TMP
|
rm -f pass-full$TMP
|
||||||
|
|||||||
Reference in New Issue
Block a user