1
0
mirror of https://github.com/docker/docs.git synced 2026-11-14 04:50:52 +03:00

Merge pull request #1009 from vieux/fix_api_version

fix api/version.bats
This commit is contained in:
Andrea Luzzardi
2015-06-30 16:26:38 -07:00

View File

@@ -15,11 +15,7 @@ function teardown() {
# version
run docker_swarm version
[ "$status" -eq 0 ]
[ "${#lines[@]}" -ge 8 ]
# verify
client_reg='^Client version: [0-9]+\.[0-9]+\.[0-9]+.*$'
server_reg='^Server version: swarm/[0-9]+\.[0-9]+\.[0-9]+.*$'
[[ "${lines[0]}" =~ $client_reg ]]
[[ "${lines[5]}" =~ $server_reg ]]
[[ ${output} =~ 'swarm/' ]]
}