mirror of https://github.com/docker/docs.git
25 lines
394 B
Bash
25 lines
394 B
Bash
#!/usr/bin/env bats
|
|
|
|
load ../mesos_helpers
|
|
|
|
function teardown() {
|
|
swarm_manage_cleanup
|
|
stop_mesos
|
|
stop_docker
|
|
}
|
|
|
|
@test "mesos - docker build" {
|
|
start_docker 2
|
|
start_mesos
|
|
swarm_manage_mesos
|
|
|
|
run docker_swarm images -q
|
|
[ "$status" -eq 0 ]
|
|
[ "${#lines[@]}" -eq 0 ]
|
|
|
|
docker_swarm build -t test $TESTDATA/build
|
|
|
|
run docker_swarm images -q
|
|
[ "$status" -eq 0 ]
|
|
[ "${#lines[@]}" -eq 1 ]
|
|
} |