mirror of https://github.com/docker/docs.git
add -c test
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
parent
5b358156de
commit
6c9bf75dcd
|
@ -22,6 +22,17 @@ function teardown() {
|
||||||
[ -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 with resources" {
|
||||||
|
start_docker_with_busybox 2
|
||||||
|
swarm_manage
|
||||||
|
|
||||||
|
# run
|
||||||
|
docker_swarm run -d --name test_container -c 1 busybox sleep 100
|
||||||
|
|
||||||
|
# verify, container is running
|
||||||
|
[ -n $(docker_swarm ps -q --filter=name=test_container --filter=status=running) ]
|
||||||
|
}
|
||||||
|
|
||||||
@test "docker run not enough resources" {
|
@test "docker run not enough resources" {
|
||||||
start_docker_with_busybox 1
|
start_docker_with_busybox 1
|
||||||
swarm_manage
|
swarm_manage
|
||||||
|
|
Loading…
Reference in New Issue