mirror of https://github.com/docker/docs.git
enhance load integration test
Signed-off-by: Xian Chaobo <xianchaobo@huawei.com>
This commit is contained in:
parent
0b44d9615b
commit
c4d5b76db7
|
|
@ -107,14 +107,22 @@ function teardown() {
|
||||||
start_docker 2
|
start_docker 2
|
||||||
swarm_manage
|
swarm_manage
|
||||||
|
|
||||||
|
run docker_swarm images -q
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
|
[ "${#lines[@]}" -eq 0 ]
|
||||||
|
|
||||||
run docker_swarm load -i $IMAGE_FILE
|
run docker_swarm load -i $IMAGE_FILE
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
|
|
||||||
|
# check node0
|
||||||
run docker -H ${HOSTS[0]} images
|
run docker -H ${HOSTS[0]} images
|
||||||
[ "${#lines[@]}" -eq 2 ]
|
[ "${#lines[@]}" -eq 2 ]
|
||||||
|
[[ "${lines[1]}" == *"busybox"* ]]
|
||||||
|
|
||||||
|
# check node1
|
||||||
run docker -H ${HOSTS[1]} images
|
run docker -H ${HOSTS[1]} images
|
||||||
[ "${#lines[@]}" -eq 2 ]
|
[ "${#lines[@]}" -eq 2 ]
|
||||||
|
[[ "${lines[1]}" == *"busybox"* ]]
|
||||||
|
|
||||||
rm -f $IMAGE_FILE
|
rm -f $IMAGE_FILE
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue