mirror of https://github.com/docker/docs.git
fix CI
Signed-off-by: Xian Chaobo <xianchaobo@huawei.com>
This commit is contained in:
parent
088ad94a61
commit
b85c2a65c6
|
@ -47,6 +47,7 @@ function teardown() {
|
||||||
swarm_manage
|
swarm_manage
|
||||||
|
|
||||||
temp_file=$(mktemp)
|
temp_file=$(mktemp)
|
||||||
|
echo abc > $temp_file
|
||||||
|
|
||||||
run docker_swarm import - < $temp_file
|
run docker_swarm import - < $temp_file
|
||||||
[ "$status" -eq 1 ]
|
[ "$status" -eq 1 ]
|
||||||
|
|
|
@ -52,11 +52,13 @@ function teardown() {
|
||||||
docker_swarm run -d --name c1 busybox echo c1
|
docker_swarm run -d --name c1 busybox echo c1
|
||||||
docker_swarm run -d --name c2 busybox echo c2
|
docker_swarm run -d --name c2 busybox echo c2
|
||||||
|
|
||||||
|
# the result of `ps --before` include a Warning messsage:
|
||||||
|
# Warning: '--before' is deprecated, it will be removed soon. See usage
|
||||||
run docker_swarm ps --before c1
|
run docker_swarm ps --before c1
|
||||||
[ "${#lines[@]}" -eq 1 ]
|
[ "${#lines[@]}" -eq 2 ]
|
||||||
|
|
||||||
run docker_swarm ps --before c2
|
run docker_swarm ps --before c2
|
||||||
[ "${#lines[@]}" -eq 2 ]
|
[ "${#lines[@]}" -eq 3 ]
|
||||||
|
|
||||||
run docker_swarm ps --before c3
|
run docker_swarm ps --before c3
|
||||||
[ "$status" -eq 1 ]
|
[ "$status" -eq 1 ]
|
||||||
|
|
|
@ -142,7 +142,7 @@ function teardown() {
|
||||||
|
|
||||||
# check error message
|
# check error message
|
||||||
[[ "${output}" != *"unable to find a node that satisfies"* ]]
|
[[ "${output}" != *"unable to find a node that satisfies"* ]]
|
||||||
[[ "${output}" == *"busyboxabcde:latest not found"* ]]
|
[[ "${output}" == *"busyboxabcde not found"* ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "docker run - with not exist volume driver" {
|
@test "docker run - with not exist volume driver" {
|
||||||
|
|
Loading…
Reference in New Issue