Skip to content
Permalink
Browse files

Tests run, include Shibboleth running

  • Loading branch information
Jim Van Fleet
Jim Van Fleet committed Aug 4, 2016
1 parent 8f81a4a commit 4fe18da91a052686a782e1f8323d408d19054e83
Showing with 10 additions and 1 deletion.
  1. +2 −1 Dockerfile
  2. +5 −0 tests/image.bats
  3. +3 −0 tests/running.bats
@@ -7,9 +7,10 @@ ENV VERSION=$version
ENV JAVA_OPTS=-Xmx1500m -XX:MaxPermSize=128m

RUN chown -R root:root /opt/shibboleth/shibboleth-identity-provider-$version && \
rm -rf /usr/local/tomcat/webapps/* && \
ANT_OPTS="-Didp.target.dir=/opt/shibboleth/current" /opt/shibboleth/current/bin/build.sh && \
ln -s /opt/shibboleth/current /opt/shibboleth-idp && \
ln -s /opt/shibboleth-idp/war/idp.war $CATALINA_HOME/webapps/idp.war
ln -s /opt/shibboleth-idp/war/idp.war $CATALINA_HOME/webapps/ROOT.war

EXPOSE 8080
CMD ["catalina.sh", "run"]
@@ -21,3 +21,8 @@ load ../common
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' ]
}
@@ -14,3 +14,6 @@ load ../common
[ "$result" != '' ]
}

@test "Service is Shibboleth" {
docker exec -i $imagename curl -silent http://localhost:8080/ | grep 'Shibboleth'
}

0 comments on commit 4fe18da

Please sign in to comment.
You can’t perform that action at this time.