mirror of https://github.com/docker/docs.git
parent
39ca8e97eb
commit
d49db6afaf
|
@ -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"* ]]
|
||||
}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
service1:
|
||||
image: busybox
|
||||
ports:
|
||||
- "80"
|
||||
command: sleep 100
|
||||
|
||||
service2:
|
||||
|
|
Loading…
Reference in New Issue