Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
35 lines (27 sloc) 918 Bytes
#!/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 shibboleth_idp_0)"
[ "$result" != '' ]
}
@test "Exposes running Tomcat service" {
result="$(docker exec -i shibboleth_idp_0 curl -k https://localhost:8443/idp/)"
[ "$result" != '' ]
}
@test "Service is Shibboleth" {
docker exec -i shibboleth_idp_0 curl -k -silent https://localhost:8443/idp/ | grep 'Shibboleth'
}
@test "Shibboleth status URL is available" {
skip
run docker exec -i shibboleth_idp_0 curl -o /dev/null --silent --head --write-out '%{http_code}\n' https://localhost:8443/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
}
You can’t perform that action at this time.