Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
shib-idp-appliance/tests/running.bats
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
34 lines (26 sloc)
878 Bytes
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
#!/usr/bin/env bats | |
load ../common | |
# These tests assume the pipeline will start and stop the container. | |
@test "Leaves running process" { | |
result="$(docker ps | grep $imagename)" | |
[ "$result" != '' ] | |
} | |
@test "Exposes running Tomcat service" { | |
result="$(docker exec -i $imagename curl http://localhost:8080/idp/)" | |
[ "$result" != '' ] | |
} | |
@test "Service is Shibboleth" { | |
docker exec -i $imagename curl -silent http://localhost:8080/idp/ | grep 'Shibboleth' | |
} | |
@test "Shibboleth status URL is available" { | |
run docker exec -i $imagename curl -o /dev/null --silent --head --write-out '%{http_code}\n' http://localhost:8080/idp/status | |
echo ${output} | |
[ "$status" -eq 0 ] | |
[ ${output} == *"200"* ] | |
} | |
@test "Tomcat log directory log volume" { | |
find logs/tomcat/catalina.*.log | |
} | |
@test "Shibboleth log directory log volume" { | |
find logs/shibboleth_idp/idp-process.log | |
} |