Files
docker-docs/test/integration/api/info.bats
Victor Vieux f00e6aa967 add events to mesos and a few tests
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-07-14 14:20:17 -07:00

18 lines
295 B
Bash

#!/usr/bin/env bats
load ../helpers
function teardown() {
swarm_manage_cleanup
stop_docker
}
@test "docker info" {
start_docker 2 --label foo=bar
swarm_manage
run docker_swarm info
[ "$status" -eq 0 ]
[[ "${output}" == *"Nodes: 2"* ]]
[[ "${output}" == *"└ Labels:"*"foo=bar"* ]]
}