add rmi without tag integration test

Signed-off-by: Xian Chaobo <xianchaobo@huawei.com>
This commit is contained in:
Xian Chaobo 2015-05-13 22:31:47 -04:00 committed by Victor Vieux
parent b95e826b08
commit b89d07a1cf
1 changed files with 22 additions and 0 deletions

View File

@ -56,3 +56,25 @@ function teardown() {
[ "$status" -ne 0 ]
[[ "${output}" == *"No such image"* ]]
}
@test "docker rmi without tag" {
start_docker_with_busybox 1
start_docker 1
docker -H ${HOSTS[0]} tag busybox:latest testimage:latest
swarm_manage
run docker_swarm images
[ "$status" -eq 0 ]
[[ "${output}" == *"busybox"* ]]
[[ "${output}" == *"testimage"* ]]
run docker_swarm rmi testimage
[ "$status" -eq 0 ]
[[ "${output}" == *"Untagged"* ]]
run docker_swarm images
[ "$status" -eq 0 ]
[[ "${output}" == *"busybox"* ]]
[[ "${output}" != *"testimage"* ]]
}