From 0f9f4dd93f3423ea8384c067c969cd41a8f1f3e9 Mon Sep 17 00:00:00 2001 From: Billy Zha Date: Fri, 3 Nov 2023 02:16:43 +0000 Subject: [PATCH] fix e2e Signed-off-by: Billy Zha --- test/e2e/suite/command/pull.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/e2e/suite/command/pull.go b/test/e2e/suite/command/pull.go index 65d5e6eea..e12ee232c 100644 --- a/test/e2e/suite/command/pull.go +++ b/test/e2e/suite/command/pull.go @@ -25,7 +25,6 @@ import ( "github.com/onsi/gomega" . "github.com/onsi/gomega" "github.com/onsi/gomega/gbytes" - "oras.land/oras-go/v2" "oras.land/oras/test/e2e/internal/testdata/artifact/blob" "oras.land/oras/test/e2e/internal/testdata/artifact/config" "oras.land/oras/test/e2e/internal/testdata/feature" @@ -77,7 +76,7 @@ var _ = Describe("OCI spec 1.1 registry users:", func() { It("should skip config if media type not matching", func() { pullRoot := "pulled" tempDir := PrepareTempFiles() - stateKeys := append(foobar.ImageLayerStateKeys, foobar.ManifestStateKey, foobar.ImageConfigStateKey(oras.MediaTypeUnknownConfig)) + stateKeys := append(foobar.ImageLayerStateKeys, foobar.ManifestStateKey) ORAS("pull", RegistryRef(ZOTHost, ImageRepo, foobar.Tag), "-v", "--config", fmt.Sprintf("%s:%s", configName, "???"), "-o", pullRoot). MatchStatus(stateKeys, true, len(stateKeys)). WithWorkDir(tempDir).Exec() @@ -206,7 +205,7 @@ var _ = Describe("OCI image layout users:", func() { It("should skip config if media type does not match", func() { pullRoot := "pulled" root := PrepareTempOCI(ImageRepo) - stateKeys := append(foobar.ImageLayerStateKeys, foobar.ManifestStateKey, foobar.ImageConfigStateKey(oras.MediaTypeUnknownConfig)) + stateKeys := append(foobar.ImageLayerStateKeys, foobar.ManifestStateKey) ORAS("pull", Flags.Layout, LayoutRef(root, foobar.Tag), "-v", "--config", fmt.Sprintf("%s:%s", configName, "???"), "-o", pullRoot). MatchStatus(stateKeys, true, len(stateKeys)). WithWorkDir(root).Exec()