Skip to content
Permalink
54e9730b2f
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
28 lines (22 sloc) 654 Bytes
#!/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 ]
}
@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 ]
}