Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a couple of Shibboleth composition tests
mederly committed Sep 27, 2018
1 parent edf9154 commit f0d5c3a
Showing 3 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions Jenkinsfile
@@ -51,6 +51,7 @@ pipeline {
docker.withRegistry('https://registry.hub.docker.com/', "dockerhub-$maintainer") {
def baseImg = docker.build("$maintainer/$imagename", "--no-cache midpoint/midpoint-server")
try {
sh 'docker pull tier/mariadb:mariadb10' // temporary
sh 'env NOCOLOR=true ./test.sh'
} finally {
sh './cleanup.sh'
33 changes: 33 additions & 0 deletions demo/shibboleth/test.sh
@@ -0,0 +1,33 @@
#!/bin/bash

trap 'exitcode=$? ; error "Exiting $0 because of an error ($exitcode) occurred" ; exit $exitcode' ERR

cd "$(dirname "$0")"
. ../../test/common.sh

heading "Cleaning up containers and volumes if they exist"
docker-compose down -v || true
ok "Done"
echo

heading "Composing and starting Shibboleth..."
docker-compose up --build -d
ok "OK"
echo

# TODO wait for Shib to start

heading "Composing and starting midPoint..."
pushd ../../midpoint
MPDIR=`pwd`
docker-compose down -v || true
env AUTHENTICATION=shibboleth docker-compose up --build -d
popd
$MPDIR/test/t010-wait-for-start.sh
ok "OK"
echo

heading "Test 100: Checking health via HTTP..."
$MPDIR/test/t100-check-health.sh
ok "Health check passed"
echo
1 change: 1 addition & 0 deletions test.sh
@@ -8,6 +8,7 @@ yellow "*** Testing midPoint image
yellow "**************************************************************************************"
echo
midpoint/test.sh
demo/shibboleth/test.sh
echo
lgreen "**************************************************************************************"
lgreen "*** All tests passed ***"

0 comments on commit f0d5c3a

Please sign in to comment.