Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update main.bats
chubing committed Oct 8, 2018
1 parent 5a963c1 commit 4cc64f0
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tests/main.bats
@@ -6,14 +6,9 @@ load ../common
docker image inspect ${maintainer}/${imagename}
}

@test "030 Port 443/https is listening" {
docker run -d ${maintainer}/${imagename} ui
sleep 25
#get cont id
contid=$(docker ps | grep ${maintainer}/${imagename} | cut -f 1 -d ' ')
run docker exec -i ${contid} sh -c 'cat < /dev/null > /dev/tcp/127.0.0.1/443'
docker kill ${contid} &>/dev/null
docker rm ${contid} &>/dev/null
@test "030 Test Compose the environment" {
cd test-compose && ./compose.sh
cd test-compose && docker-compose down
[ "$status" -eq 0 ]
}

0 comments on commit 4cc64f0

Please sign in to comment.