From dee311fef6feb5f8326046a7519bb525105fcb07 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Tue, 1 Sep 2015 16:23:49 +0530 Subject: [PATCH] tests: Deploy sample application --- bitnami/wildfly/test.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/bitnami/wildfly/test.sh b/bitnami/wildfly/test.sh index 7b41f51d411c..23ba8f901c97 100755 --- a/bitnami/wildfly/test.sh +++ b/bitnami/wildfly/test.sh @@ -125,3 +125,20 @@ create_full_container_mounted() { [[ "$output" =~ '200 OK' ]] cleanup_volumes_content } + +@test "Deploy sample application" { + cleanup_volumes_content + create_full_container_mounted + + run docker run --rm \ + --link $CONTAINER_NAME:wildfly \ + -v $HOST_VOL_PREFIX/app:/app \ + $IMAGE_NAME curl https://raw.githubusercontent.com/goldmann/wildfly-docker-deployment-example/master/node-info.war -o /app/node-info.war + [ $status = 0 ] + sleep 10 + + run docker run --link $CONTAINER_NAME:wildfly --rm $IMAGE_NAME curl --noproxy wildfly -L -i http://wildfly:8080/node-info/ + [[ "$output" =~ '200 OK' ]] + + cleanup_volumes_content +}