mirror of https://github.com/docker/docs.git
add docker run not enough resources test
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
parent
0e32d052cf
commit
d6bd288fb0
|
@ -21,3 +21,14 @@ function teardown() {
|
||||||
# verify, container is running
|
# verify, container is running
|
||||||
[ -n $(docker_swarm ps -q --filter=name=test_container --filter=status=running) ]
|
[ -n $(docker_swarm ps -q --filter=name=test_container --filter=status=running) ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "docker run not enough resources" {
|
||||||
|
start_docker_with_busybox 1
|
||||||
|
swarm_manage
|
||||||
|
|
||||||
|
run docker_swarm run -d --name test_container -m 1000g busybox ls
|
||||||
|
[ "$status" -ne 0 ]
|
||||||
|
|
||||||
|
run docker_swarm run -d --name test_container -c 1000 busybox ls
|
||||||
|
[ "$status" -ne 0 ]
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue