tests: Manager has access to management area

This commit is contained in:
Sameer Naik 2015-08-13 21:04:20 +05:30
parent ac56239710
commit d32f4fe9d3
1 changed files with 7 additions and 0 deletions

View File

@ -2,6 +2,7 @@
CONTAINER_NAME=bitnami-tomcat-test
IMAGE_NAME=${IMAGE_NAME:-bitnami/tomcat}
SLEEP_TIME=5
TOMCAT_USER=manager
cleanup_running_containers() {
if [ "$(docker ps -a | grep $CONTAINER_NAME)" ]; then
@ -27,3 +28,9 @@ create_container(){
run docker run --link $CONTAINER_NAME:tomcat --rm $IMAGE_NAME curl -L -i http://tomcat:8080
[[ "$output" =~ '200 OK' ]]
}
@test "Manager has access to management area" {
create_container -d
run docker run --link $CONTAINER_NAME:tomcat --rm $IMAGE_NAME curl -L -i http://$TOMCAT_USER@tomcat:8080/manager/html
[[ "$output" =~ '200 OK' ]]
}