diff --git a/pkg/api/core/image/delta_test.go b/pkg/api/core/image/delta_test.go index 2fcc21ae..f205783b 100644 --- a/pkg/api/core/image/delta_test.go +++ b/pkg/api/core/image/delta_test.go @@ -78,9 +78,11 @@ var _ = Describe("Delta", func() { ) Expect(err).ToNot(HaveOccurred()) defer os.RemoveAll(tmpdir) // clean up - Expect(file.Exists(filepath.Join(tmpdir, "home"))).To(BeFalse()) + // Cache from go Expect(file.Exists(filepath.Join(tmpdir, "root", ".cache"))).To(BeTrue()) + // sh is present from alpine, hence not in the result Expect(file.Exists(filepath.Join(tmpdir, "bin", "sh"))).To(BeFalse()) + // /usr/local/go is part of golang:alpine Expect(file.Exists(filepath.Join(tmpdir, "usr", "local", "go"))).To(BeTrue()) Expect(file.Exists(filepath.Join(tmpdir, "usr", "local", "go", "bin"))).To(BeTrue()) }) diff --git a/pkg/api/core/image/mutator_suite_test.go b/pkg/api/core/image/mutator_suite_test.go index 1e96c3b1..ba760f8a 100644 --- a/pkg/api/core/image/mutator_suite_test.go +++ b/pkg/api/core/image/mutator_suite_test.go @@ -24,11 +24,11 @@ import ( . "github.com/onsi/gomega" ) -func TestMutator(t *testing.T) { +func TestImageApi(t *testing.T) { RegisterFailHandler(Fail) b := backend.NewSimpleDockerBackend(context.NewContext()) b.DownloadImage(backend.Options{ImageName: "alpine"}) b.DownloadImage(backend.Options{ImageName: "golang:alpine"}) - RunSpecs(t, "Mutator API Suite") + RunSpecs(t, "Image API Suite") }