mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Implement teardown removeAllImages
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
parent
310fc37fe7
commit
a9688cdca5
20 changed files with 50 additions and 269 deletions
|
@ -13,7 +13,6 @@ func (s *DockerSuite) TestPullImageWithAliases(c *check.C) {
|
|||
defer setupRegistry(c)()
|
||||
|
||||
repoName := fmt.Sprintf("%v/dockercli/busybox", privateRegistryURL)
|
||||
defer deleteImages(repoName)
|
||||
|
||||
repos := []string{}
|
||||
for _, tag := range []string{"recent", "fresh"} {
|
||||
|
@ -25,7 +24,6 @@ func (s *DockerSuite) TestPullImageWithAliases(c *check.C) {
|
|||
if out, _, err := runCommandWithOutput(exec.Command(dockerBinary, "tag", "busybox", repo)); err != nil {
|
||||
c.Fatalf("Failed to tag image %v: error %v, output %q", repos, err, out)
|
||||
}
|
||||
defer deleteImages(repo)
|
||||
if out, err := exec.Command(dockerBinary, "push", repo).CombinedOutput(); err != nil {
|
||||
c.Fatalf("Failed to push image %v: error %v, output %q", repo, err, string(out))
|
||||
}
|
||||
|
@ -61,7 +59,6 @@ func (s *DockerSuite) TestPullVerified(c *check.C) {
|
|||
// unless keychain is manually updated to contain the daemon's sign key.
|
||||
|
||||
verifiedName := "hello-world"
|
||||
defer deleteImages(verifiedName)
|
||||
|
||||
// pull it
|
||||
expected := "The image you are pulling has been verified"
|
||||
|
@ -88,8 +85,6 @@ func (s *DockerSuite) TestPullVerified(c *check.C) {
|
|||
func (s *DockerSuite) TestPullImageFromCentralRegistry(c *check.C) {
|
||||
testRequires(c, Network)
|
||||
|
||||
defer deleteImages("hello-world")
|
||||
|
||||
pullCmd := exec.Command(dockerBinary, "pull", "hello-world")
|
||||
if out, _, err := runCommandWithOutput(pullCmd); err != nil {
|
||||
c.Fatalf("pulling the hello-world image from the registry has failed: %s, %v", out, err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue