api integration: Fixes for docker master.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2015-05-04 23:06:00 -07:00
parent 5d10f47b32
commit 88033393ba
1 changed files with 7 additions and 4 deletions

View File

@ -321,7 +321,7 @@ function teardown() {
swarm_manage
run docker_swarm info
[ "$status" -eq 0 ]
[[ "${lines[3]}" == *"Nodes: 1" ]]
[[ "${output}" == *"Nodes: 1 "* ]]
[[ "${output}" == *"└ Labels:"*"foo=bar"* ]]
}
@ -340,13 +340,16 @@ function teardown() {
# inspect and verify
run docker_swarm inspect test_container
[ "$status" -eq 0 ]
[[ "${lines[1]}" == *"AppArmorProfile"* ]]
[[ "${output}" == *"NetworkSettings"* ]]
# the specific information of swarm node
[[ ${output} == *'"Node": {'* ]]
[[ ${output} == *'"Name": "node-'* ]]
[[ "${output}" == *'"Node": {'* ]]
[[ "${output}" == *'"Name": "node-'* ]]
}
@test "docker inspect --format" {
# FIXME: Broken in docker master. See #717
skip
start_docker 3
swarm_manage
# run container