mirror of https://github.com/docker/docs.git
fix rename test
Signed-off-by: Xian Chaobo <xianchaobo@huawei.com>
This commit is contained in:
parent
ea65dd9925
commit
f6134de8c6
|
@ -25,7 +25,7 @@ function teardown() {
|
||||||
# rename container, conflict and fail
|
# rename container, conflict and fail
|
||||||
run docker_swarm rename test_container another_container
|
run docker_swarm rename test_container another_container
|
||||||
[ "$status" -ne 0 ]
|
[ "$status" -ne 0 ]
|
||||||
[[ "${output}" == *"Conflict,"* ]]
|
[[ "${output}" == *"Conflict"* ]]
|
||||||
|
|
||||||
# rename container, successful
|
# rename container, successful
|
||||||
docker_swarm rename test_container rename_container
|
docker_swarm rename test_container rename_container
|
||||||
|
@ -48,4 +48,4 @@ function teardown() {
|
||||||
docker_swarm rename test "$prefix"
|
docker_swarm rename test "$prefix"
|
||||||
run docker_swarm rename test "$id"
|
run docker_swarm rename test "$id"
|
||||||
[ "$status" -eq 1 ]
|
[ "$status" -eq 1 ]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue