Permalink
Cannot retrieve contributors at this time
shib-idp-appliance/tests/image.bats
Go to file#!/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 | |
} |