From e31a4aa5d791817730c261a3fee34d476db8e86c Mon Sep 17 00:00:00 2001 From: Paul Caskey Date: Thu, 11 Oct 2018 23:14:42 -0400 Subject: [PATCH] full test fix --- tests/fulltest.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/fulltest.sh b/tests/fulltest.sh index 01e5827..0674469 100755 --- a/tests/fulltest.sh +++ b/tests/fulltest.sh @@ -30,6 +30,18 @@ else echo "webisoget already installed..." fi +#ensure that name resolution is in place +ping -c 1 sptest.example.edu &>/dev/null +if [ $? -ne '0' ]; then + echo "adding hosts record for sp..." + sudo echo "127.0.0.1 sptest.example.edu" >> /etc/hosts +fi +ping -c 1 idp.example.edu &>/dev/null +if [ $? -ne '0' ]; then + echo "adding hosts record for idp..." + sudo echo "127.0.0.1 idp.example.edu" >> /etc/hosts +fi + echo "Attempting full-cycle test..." webisoget -verbose -out ./lastpage.txt -formfile ./sptest.login -url https://sptest.example.edu:8443/secure/