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:
@@ -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/' ]]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user