tests: check whether the value set in radius' NAS-IP-Address is not invalid

This commit is contained in:
Nikos Mavrogiannopoulos
2015-05-11 14:26:49 +02:00
parent 18134a87d5
commit 43d174980d
+6
View File
@@ -248,6 +248,12 @@ if test -z "$DISC";then
stop
fi
DISC=`cat out$TMP|grep "NAS-IP-Address = 127.0.0.1"|tail -1`
if test -n "$DISC";then
cat out$TMP
echo "NAS-IP-Address has invalid value!"
stop
fi
$DOCKER stop test_ocserv_radius
$DOCKER rm test_ocserv_radius