forked from docker/midPoint_container
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add a couple of Shibboleth composition tests
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters