Skip to content

Commit

Permalink
Adding image tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed Aug 2, 2016
1 parent 07ffe6e commit 3b59a8b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/image.bats
Original file line number Diff line number Diff line change
@@ -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 ]
}

0 comments on commit 3b59a8b

Please sign in to comment.