mirror of https://github.com/docker/docs.git
24 lines
350 B
Bash
24 lines
350 B
Bash
#!/usr/bin/env bats
|
|
|
|
load ../helpers
|
|
|
|
function teardown() {
|
|
swarm_manage_cleanup
|
|
stop_docker
|
|
}
|
|
|
|
@test "docker build" {
|
|
start_docker 2
|
|
swarm_manage
|
|
|
|
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 ]
|
|
}
|