From 2accd8281557b3591a0b0c011ef1b0c161e5019c Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Tue, 1 Sep 2015 03:09:03 -0700 Subject: [PATCH] @test "mesos - docker run short lived" Signed-off-by: Victor Vieux --- test/integration/mesos/api/run.bats | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/integration/mesos/api/run.bats b/test/integration/mesos/api/run.bats index cca9f28afd..9234ef1855 100644 --- a/test/integration/mesos/api/run.bats +++ b/test/integration/mesos/api/run.bats @@ -28,6 +28,19 @@ function teardown() { [[ "${output}" == *"cannot specify 64-byte hexadecimal strings"* ]] } +@test "mesos - docker run short lived" { + start_docker_with_busybox 1 + start_mesos + swarm_manage --cluster-driver mesos-experimental 127.0.0.1:$MESOS_MASTER_PORT + + # run + run docker_swarm run -m 20m busybox true + + # make sure the container was started + run docker_swarm ps -qa + [ "${#lines[@]}" -eq 1 ] +} + @test "mesos - docker run no resources" { start_docker 1 start_mesos