Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
more tweaks to idp ver test
pcaskey committed Dec 10, 2021
1 parent ad16bd1 commit 135614e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/checkidpver.sh
@@ -23,8 +23,8 @@ if [ $? == '0' ]; then
if [ $? -ne '0' ]; then
docker run -d $1 &>/dev/null
launchflag="yes"
echo 'launching container (will take about a minute)...'
sleep 80
echo 'launching container (will take about 2 minutes)...'
sleep 120
fi

#get container ID
@@ -34,6 +34,8 @@ if [ $? == '0' ]; then
echo "Specified container does not appear to be running... Terminating."
echo ""
exit 1
else
echo "Container is running at id: $contid"
fi

#get version from running status page inside container
@@ -47,10 +49,12 @@ if [ -z "$(echo $shibver | xargs)" ]; then
echo "Unable to determine version from a running instance... Terminating."
echo ""
exit 1
else
echo "Running shibb version is: $shibver"
fi

#check if that version is available in the 'latest' download area (return is 0 if current, non-zero if not current)
wget -q --spider https://shibboleth.net/downloads/identity-provider/latest/shibboleth-identity-provider-${shibver}.tar.gz
wget --spider https://shibboleth.net/downloads/identity-provider/latest/shibboleth-identity-provider-${shibver}.tar.gz

if [ $? == '0' ]; then
echo "Running IdP version (${shibver}) is current!"

0 comments on commit 135614e

Please sign in to comment.