mirror of https://github.com/docker/docs.git
integration: fix nodes patterns in docker_swarm info
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
b7413d3138
commit
1187069407
|
@ -321,7 +321,8 @@ function teardown() {
|
|||
swarm_manage
|
||||
run docker_swarm info
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "${output}" == *"Nodes: 1 "* ]]
|
||||
echo $output
|
||||
[[ "${output}" == *"Nodes: 1"* ]]
|
||||
[[ "${output}" == *"└ Labels:"*"foo=bar"* ]]
|
||||
}
|
||||
|
||||
|
|
|
@ -24,5 +24,5 @@ function setup_file_discovery() {
|
|||
|
||||
run docker_swarm info
|
||||
[ "$status" -eq 0 ]
|
||||
[[ "$output" == *"Nodes: 2 "* ]]
|
||||
[[ "$output" == *"Nodes: 2"* ]]
|
||||
}
|
||||
|
|
|
@ -100,7 +100,7 @@ function swarm_join() {
|
|||
SWARM_JOIN_PID[$i]=$!
|
||||
((++i))
|
||||
done
|
||||
retry 30 1 [ -n $(docker_swarm info | grep -q "Nodes: $i") ]
|
||||
retry 30 1 [ -n "$(docker_swarm info | grep -q 'Nodes: $i')" ]
|
||||
}
|
||||
|
||||
# Stops the manager.
|
||||
|
|
|
@ -23,7 +23,8 @@ function teardown() {
|
|||
swarm_join token://$TOKEN
|
||||
|
||||
run docker_swarm info
|
||||
[[ "$output" == *"Nodes: 2 "* ]]
|
||||
echo $output
|
||||
[[ "$output" == *"Nodes: 2"* ]]
|
||||
|
||||
token_cleanup $TOKEN
|
||||
}
|
||||
|
|
|
@ -31,5 +31,5 @@ function teardown() {
|
|||
swarm_join zk://${ZK_HOST}/test
|
||||
|
||||
run docker_swarm info
|
||||
[[ "$output" == *"Nodes: 1 "* ]]
|
||||
[[ "$output" == *"Nodes: 1"* ]]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue