tests: added check for the DEFAULT group in test-pass-group-cert

This commit is contained in:
Nikos Mavrogiannopoulos
2014-08-28 10:09:17 +02:00
parent abe6d2d190
commit 186dcf5652

View File

@@ -41,6 +41,12 @@ echo -n "Connecting to obtain cookie - group1 (with certificate)... "
echo ok
echo -n "Connecting to obtain cookie - DEFAULT (with certificate)... "
( echo "test" | openconnect --authgroup DEFAULT -q localhost:$PORT --sslkey ./user-group-key.pem -c ./user-group-cert.pem -u test --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly >/dev/null 2>&1 ) ||
fail $PID "Could not connect with certificate!"
echo ok
echo -n "Connecting to obtain cookie - group2 (with certificate)... "
( echo "test" | openconnect --authgroup group2 -q localhost:$PORT --sslkey ./user-group-key.pem -c ./user-group-cert.pem -u test --servercert=d66b507ae074d03b02eafca40d35f87dd81049d3 --cookieonly >/dev/null 2>&1 ) ||
fail $PID "Could not connect with certificate!"