mirror of
https://github.com/bitnami/containers.git
synced 2026-03-09 15:40:15 +08:00
tests: Manager has access to management area
This commit is contained in:
@@ -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' ]]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user