Skip to content

Commit

Permalink
Adding test
Browse files Browse the repository at this point in the history
Signed-off-by: Isabel Jimenez <[email protected]>
  • Loading branch information
jimenez committed Jan 14, 2016
1 parent 08839f6 commit d12ea7f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/integration/mesos/api/run.bats
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,19 @@ function teardown() {
[ "$status" -ne 0 ]
[[ "${output}" == *'resources constraints (-c and/or -m) are required by mesos'* ]]
}

@test "mesos - docker run with long pull" {
start_docker 2
start_mesos
swarm_manage --cluster-driver mesos-experimental --cluster-opt mesos.tasktimeout=1s 127.0.0.1:$MESOS_MASTER_PORT

# make sure no container exist
run docker_swarm ps -qa
[ "${#lines[@]}" -eq 0 ]

# run
docker_swarm run -m 20m -d --name test_container busybox sleep 100

# verify, container is running
[ -n $(docker_swarm ps -q --filter=name=test_container --filter=status=running) ]
}

0 comments on commit d12ea7f

Please sign in to comment.