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

This commit is contained in:
Nikos Mavrogiannopoulos
2015-05-11 09:27:56 +02:00
parent 18134a87d5
commit 43d174980d

View File

@@ -248,6 +248,12 @@ if test -z "$DISC";then
stop stop
fi 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 stop test_ocserv_radius
$DOCKER rm test_ocserv_radius $DOCKER rm test_ocserv_radius