mirror of https://github.com/docker/docs.git
18 lines
295 B
Bash
18 lines
295 B
Bash
#!/usr/bin/env bats
|
|
|
|
load ../helpers
|
|
|
|
function teardown() {
|
|
swarm_manage_cleanup
|
|
stop_docker
|
|
}
|
|
|
|
@test "docker info" {
|
|
start_docker 1 --label foo=bar
|
|
swarm_manage
|
|
run docker_swarm info
|
|
[ "$status" -eq 0 ]
|
|
[[ "${output}" == *"Nodes: 1"* ]]
|
|
[[ "${output}" == *"└ Labels:"*"foo=bar"* ]]
|
|
}
|