Skip to content
Permalink
Browse files

Failing test on logs directory and ownership

  • Loading branch information
Jim Van Fleet
Jim Van Fleet committed Aug 2, 2016
1 parent 3b59a8b commit 54e9730b2f41a627000110e06d264db856d753b8
Showing with 13 additions and 1 deletion.
  1. +6 −0 Dockerfile
  2. +7 −1 tests/image.bats
@@ -0,0 +1,6 @@
FROM bigfleet/shibboleth_idp

ARG maintainer=tier
ARG imagename=shibboleth_idp
ARG version=3.2.1
ENV VERSION=$version
@@ -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.
You can’t perform that action at this time.