mirror of https://github.com/docker/docs.git
fix api/version.bats
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
This commit is contained in:
parent
d766fea7a8
commit
ca93c2a21a
|
@ -15,11 +15,7 @@ function teardown() {
|
||||||
# version
|
# version
|
||||||
run docker_swarm version
|
run docker_swarm version
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
[ "${#lines[@]}" -ge 8 ]
|
|
||||||
|
|
||||||
# verify
|
# verify
|
||||||
client_reg='^Client version: [0-9]+\.[0-9]+\.[0-9]+.*$'
|
[[ ${output} =~ 'swarm/' ]]
|
||||||
server_reg='^Server version: swarm/[0-9]+\.[0-9]+\.[0-9]+.*$'
|
|
||||||
[[ "${lines[0]}" =~ $client_reg ]]
|
|
||||||
[[ "${lines[5]}" =~ $server_reg ]]
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue