tests: Manager has access to management area
This commit is contained in:
parent
ac56239710
commit
d32f4fe9d3
|
|
@ -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' ]]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue