mirror of https://github.com/docker/docs.git
bug fix
Signed-off-by: Xian Chaobo <xianchaobo@huawei.com>
This commit is contained in:
parent
6d5e9af343
commit
7ac2948697
|
@ -91,13 +91,13 @@ function teardown() {
|
||||||
skip
|
skip
|
||||||
}
|
}
|
||||||
|
|
||||||
#@test "docker info" {
|
@test "docker info" {
|
||||||
# start_docker 3
|
start_docker 3
|
||||||
# swarm_manage
|
swarm_manage
|
||||||
# run docker_swarm info
|
run docker_swarm info
|
||||||
# [ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
# [[ "${lines[3]}" == *"Nodes: 3" ]]
|
[[ "${lines[3]}" == *"Nodes: 3" ]]
|
||||||
#}
|
}
|
||||||
|
|
||||||
# FIXME
|
# FIXME
|
||||||
@test "docker inspect" {
|
@test "docker inspect" {
|
||||||
|
@ -157,41 +157,41 @@ function teardown() {
|
||||||
skip
|
skip
|
||||||
}
|
}
|
||||||
|
|
||||||
#@test "docker ps -n" {
|
@test "docker ps -n" {
|
||||||
# start_docker 1
|
start_docker 1
|
||||||
# swarm_manage
|
swarm_manage
|
||||||
# run docker_swarm run -d busybox sleep 42
|
run docker_swarm run -d busybox sleep 42
|
||||||
# run docker_swarm run -d busybox false
|
run docker_swarm run -d busybox false
|
||||||
# run docker_swarm ps -n 3
|
run docker_swarm ps -n 3
|
||||||
# # Non-running containers should be included in ps -n
|
# Non-running containers should be included in ps -n
|
||||||
# [ "${#lines[@]}" -eq 3 ]
|
[ "${#lines[@]}" -eq 3 ]
|
||||||
#
|
|
||||||
# run docker_swarm run -d busybox true
|
run docker_swarm run -d busybox true
|
||||||
# run docker_swarm ps -n 3
|
run docker_swarm ps -n 3
|
||||||
# [ "${#lines[@]}" -eq 4 ]
|
[ "${#lines[@]}" -eq 4 ]
|
||||||
#
|
|
||||||
# run docker_swarm run -d busybox true
|
run docker_swarm run -d busybox true
|
||||||
# run docker_swarm ps -n 3
|
run docker_swarm ps -n 3
|
||||||
# [ "${#lines[@]}" -eq 4 ]
|
[ "${#lines[@]}" -eq 4 ]
|
||||||
#}
|
}
|
||||||
#
|
|
||||||
#@test "docker ps -l" {
|
@test "docker ps -l" {
|
||||||
# start_docker 1
|
start_docker 1
|
||||||
# swarm_manage
|
swarm_manage
|
||||||
# run docker_swarm run -d busybox sleep 42
|
run docker_swarm run -d busybox sleep 42
|
||||||
# sleep 1 #sleep so the 2 containers don't start at the same second
|
sleep 1 #sleep so the 2 containers don't start at the same second
|
||||||
# run docker_swarm run -d busybox true
|
run docker_swarm run -d busybox true
|
||||||
# run docker_swarm ps -l
|
run docker_swarm ps -l
|
||||||
# [ "${#lines[@]}" -eq 2 ]
|
[ "${#lines[@]}" -eq 2 ]
|
||||||
# # Last container should be "true", even though it's stopped.
|
# Last container should be "true", even though it's stopped.
|
||||||
# [[ "${lines[1]}" == *"true"* ]]
|
[[ "${lines[1]}" == *"true"* ]]
|
||||||
#
|
|
||||||
# sleep 1 #sleep so the container doesn't start at the same second as 'busybox true'
|
sleep 1 #sleep so the container doesn't start at the same second as 'busybox true'
|
||||||
# run docker_swarm run -d busybox false
|
run docker_swarm run -d busybox false
|
||||||
# run docker_swarm ps -l
|
run docker_swarm ps -l
|
||||||
# [ "${#lines[@]}" -eq 2 ]
|
[ "${#lines[@]}" -eq 2 ]
|
||||||
# [[ "${lines[1]}" == *"false"* ]]
|
[[ "${lines[1]}" == *"false"* ]]
|
||||||
#}
|
}
|
||||||
|
|
||||||
# FIXME
|
# FIXME
|
||||||
@test "docker pull" {
|
@test "docker pull" {
|
||||||
|
|
Loading…
Reference in New Issue