diff --git a/tests/running.bats b/tests/running.bats index d1c9b16..9052f76 100644 --- a/tests/running.bats +++ b/tests/running.bats @@ -17,3 +17,10 @@ load ../common @test "Service is Shibboleth" { docker exec -i $imagename curl -silent http://localhost:8080/ | 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"* ] +}