Skip to content

Commit

Permalink
add rmi without tag integration test
Browse files Browse the repository at this point in the history
Signed-off-by: Xian Chaobo <[email protected]>
  • Loading branch information
jimmyxian authored and vieux committed May 14, 2015
1 parent b95e826 commit b89d07a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test/integration/api/rmi.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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"* ]]
}

0 comments on commit b89d07a

Please sign in to comment.