From 7afaf906965f035fb5452befd1418d5d8f602d57 Mon Sep 17 00:00:00 2001 From: Chris Bynum Date: Fri, 12 Aug 2016 09:53:26 -0400 Subject: [PATCH] Added test - Shibboleth status URL is available --- tests/running.bats | 7 +++++++ 1 file changed, 7 insertions(+) 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"* ] +}