From 35127e421a24d38dc1e97119b78cdcb6900e3267 Mon Sep 17 00:00:00 2001 From: Jim Van Fleet Date: Wed, 24 Aug 2016 17:00:56 -0400 Subject: [PATCH] Adding sso test --- tests/running.bats | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/running.bats 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