Skip to content

Commit

Permalink
Failing test on logs directory and ownership
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed Aug 2, 2016
1 parent 3b59a8b commit 54e9730
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM bigfleet/shibboleth_idp

ARG maintainer=tier
ARG imagename=shibboleth_idp
ARG version=3.2.1
ENV VERSION=$version
8 changes: 7 additions & 1 deletion tests/image.bats
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,10 @@ setup() {
@test "Contains java" {
run docker run -i $maintainer/$imagename which java
[ "$status" -eq 0 ]
}
}

@test "Logs directory exists, owned by root" {
result="$(docker run -i $maintainer/$imagename stat -c '%U' /opt/shibboleth/current/logs)"
[ "$result" != 'UNKNOWN' ]
[ "$status" -eq 0 ]
}

0 comments on commit 54e9730

Please sign in to comment.