Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Commit

Permalink
remove temp dirs from image list tests
Browse files Browse the repository at this point in the history
Removed the temporary directories from being created in the app image ls
tests as they are not used.

Signed-off-by: Nick Adcock <[email protected]>
  • Loading branch information
zappy-shu committed Oct 25, 2019
1 parent 3203fce commit c64589c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions e2e/images_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"testing"

"gotest.tools/assert"
"gotest.tools/fs"
"gotest.tools/icmd"
)

Expand Down Expand Up @@ -54,8 +53,6 @@ func verifyImageIDListOutput(t *testing.T, cmd icmd.Cmd, count int, distinct int
func TestImageList(t *testing.T) {
runWithDindSwarmAndRegistry(t, func(info dindSwarmAndRegistryInfo) {
cmd := info.configuredCmd
dir := fs.NewDir(t, "")
defer dir.Remove()

insertBundles(t, cmd, info)

Expand All @@ -72,8 +69,6 @@ b-simple-app:latest simple
func TestImageListQuiet(t *testing.T) {
runWithDindSwarmAndRegistry(t, func(info dindSwarmAndRegistryInfo) {
cmd := info.configuredCmd
dir := fs.NewDir(t, "")
defer dir.Remove()
insertBundles(t, cmd, info)
verifyImageIDListOutput(t, cmd, 3, 2)
})
Expand All @@ -82,8 +77,6 @@ func TestImageListQuiet(t *testing.T) {
func TestImageListDigests(t *testing.T) {
runWithDindSwarmAndRegistry(t, func(info dindSwarmAndRegistryInfo) {
cmd := info.configuredCmd
dir := fs.NewDir(t, "")
defer dir.Remove()
insertBundles(t, cmd, info)
expected := `APP IMAGE DIGEST APP NAME
%s <none> push-pull
Expand All @@ -98,8 +91,6 @@ b-simple-app:latest <none> simple
func TestImageRm(t *testing.T) {
runWithDindSwarmAndRegistry(t, func(info dindSwarmAndRegistryInfo) {
cmd := info.configuredCmd
dir := fs.NewDir(t, "")
defer dir.Remove()

insertBundles(t, cmd, info)

Expand Down

0 comments on commit c64589c

Please sign in to comment.