Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
Victor Vieux 2016-02-17 15:45:45 -08:00
parent 39ca8e97eb
commit d49db6afaf
2 changed files with 18 additions and 0 deletions

View File

@ -32,3 +32,19 @@ function teardown() {
# check memory-swappiness
[[ "${output}" == *"\"MemorySwappiness\": -1"* ]]
}
@test "docker-compose up - check port" {
start_docker_with_busybox 2
swarm_manage
FILE=$TESTDATA/compose/simple.yml
docker-compose_swarm -f $FILE up -d
run docker_swarm ps -q
[ "${#lines[@]}" -eq 2 ]
run docker_swarm ps
# check memory-swappiness
echo $output
[[ "${output}" == *"->80/tcp"* ]]
}

View File

@ -1,5 +1,7 @@
service1:
image: busybox
ports:
- "80"
command: sleep 100
service2: