Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
33 lines (25 sloc) 890 Bytes
#!/usr/bin/env bats
load ../common
@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' ]
}
@test "Other Tomcat webapps removed" {
result="$(docker run -i $maintainer/$imagename find /usr/local/tomcat/webapps -type d -print0)"
[ "$result" == '/usr/local/tomcat/webapps' ]
}
@test "Java keystore present" {
docker run -i $maintainer/$imagename find /opt/certs/keystore.jks
}
You can’t perform that action at this time.