Signed-off-by: Xian Chaobo <xianchaobo@huawei.com>
This commit is contained in:
Xian Chaobo 2015-11-26 09:33:09 +08:00
parent 088ad94a61
commit b85c2a65c6
3 changed files with 6 additions and 3 deletions

View File

@ -47,6 +47,7 @@ function teardown() {
swarm_manage
temp_file=$(mktemp)
echo abc > $temp_file
run docker_swarm import - < $temp_file
[ "$status" -eq 1 ]

View File

@ -52,11 +52,13 @@ function teardown() {
docker_swarm run -d --name c1 busybox echo c1
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
[ "${#lines[@]}" -eq 1 ]
[ "${#lines[@]}" -eq 2 ]
run docker_swarm ps --before c2
[ "${#lines[@]}" -eq 2 ]
[ "${#lines[@]}" -eq 3 ]
run docker_swarm ps --before c3
[ "$status" -eq 1 ]

View File

@ -142,7 +142,7 @@ function teardown() {
# check error message
[[ "${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" {