diff --git a/tests/running.bats b/tests/running.bats new file mode 100644 index 0000000..882aaec --- /dev/null +++ b/tests/running.bats @@ -0,0 +1,20 @@ +#!/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 HTTP service" { + result="$(docker exec -i $imagename curl http://localhost/)" + [ "$result" != '' ] +} + +@test "Exposes running SSO process" { + result="$(docker exec -i $imagename curl http://localhost/Shibboleth.sso/Status)" + [ "$result" != '' ] +} \ No newline at end of file