Files
docker-docs/test/integration/api.bats
Andrea Luzzardi 64eeb7e3c9 integration: Fix API # nodes check.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-03-09 15:32:14 -07:00

17 lines
256 B
Bash

#!/usr/bin/env bats
load helpers
function teardown() {
stop_manager
stop_docker
}
@test "docker info should return the number of nodes" {
start_docker 3
start_manager
run docker_swarm info
[ "$status" -eq 0 ]
[[ "${lines[1]}" == *"Nodes: 3" ]]
}