mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 16:57:00 +08:00
tests: check whether ocserv is build with oath support prior to running otp tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
@@ -29,6 +29,11 @@ OTP_FILE=test-otp.$$.tmp
|
|||||||
|
|
||||||
echo "Testing local backend with username-password-otp and certificate... "
|
echo "Testing local backend with username-password-otp and certificate... "
|
||||||
|
|
||||||
|
$SERV --version 2>&1|grep oath >/dev/null 2>&1
|
||||||
|
if [ $? != 0 ];then
|
||||||
|
exit 77
|
||||||
|
fi
|
||||||
|
|
||||||
#user 'test' has cert, password + OTP
|
#user 'test' has cert, password + OTP
|
||||||
#user 'testuser' has cert and OTP only
|
#user 'testuser' has cert and OTP only
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,11 @@ echo "Testing local backend with username-password-otp and certificate... "
|
|||||||
#user 'test' has cert, password + OTP
|
#user 'test' has cert, password + OTP
|
||||||
#user 'testuser' has cert and OTP only
|
#user 'testuser' has cert and OTP only
|
||||||
|
|
||||||
|
$SERV --version 2>&1|grep oath >/dev/null 2>&1
|
||||||
|
if [ $? != 0 ];then
|
||||||
|
exit 77
|
||||||
|
fi
|
||||||
|
|
||||||
rm -f ${OTP_FILE}
|
rm -f ${OTP_FILE}
|
||||||
cp data/test-otp.oath ${OTP_FILE}
|
cp data/test-otp.oath ${OTP_FILE}
|
||||||
update_config test-otp-cert.config
|
update_config test-otp-cert.config
|
||||||
|
|||||||
Reference in New Issue
Block a user