diff --git a/tests/image.bats b/tests/image.bats new file mode 100644 index 0000000..08b1215 --- /dev/null +++ b/tests/image.bats @@ -0,0 +1,22 @@ +#!/usr/bin/env bats + +load ../common + +setup() { + ./bin/rebuild.sh +} + +@test "Creates non-root Shib IDP home" { + result="$(docker run -i $maintainer/$imagename ls /opt/shibboleth/current/bin/)" + [ "$result" != '' ] +} + +@test "Retains first-run experience" { + result="$(docker run -i $maintainer/$imagename ls /tmp/firsttimerunning)" + [ "$result" != '' ] +} + +@test "Contains java" { + run docker run -i $maintainer/$imagename which java + [ "$status" -eq 0 ] +} \ No newline at end of file