From 7a97a0031eff3e1f8b4adaa81081f1b71478b4e3 Mon Sep 17 00:00:00 2001 From: Xiaoxuan Wang Date: Tue, 13 Aug 2024 12:23:15 +0800 Subject: [PATCH] trying to fix Signed-off-by: Xiaoxuan Wang --- test/e2e/suite/command/manifest_index.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/e2e/suite/command/manifest_index.go b/test/e2e/suite/command/manifest_index.go index b760d71f5..ba47b0263 100644 --- a/test/e2e/suite/command/manifest_index.go +++ b/test/e2e/suite/command/manifest_index.go @@ -93,11 +93,11 @@ var _ = Describe("1.1 registry users:", func() { ORAS("manifest", "fetch", RegistryRef(ZOTHost, ImageRepo, "tag3")).Exec() }) - // It("should ignore digests given as index reference", func() { - // ORAS("manifest", "index", "create", fmt.Sprintf("%s,another-tag,sha256:bfa1728d6292d5fa7689f8f4daa145ee6f067b5779528c6e059d1132745ef508", - // RegistryRef(ZOTHost, ImageRepo, "digest-test")), - // string(multi_arch.LinuxAMD64.Digest), string(multi_arch.LinuxARM64.Digest)).Exec() - // }) + It("should ignore digests given as index reference", func() { + ORAS("manifest", "index", "create", fmt.Sprintf("%s,another-tag,sha256:bfa1728d6292d5fa7689f8f4daa145ee6f067b5779528c6e059d1132745ef508", + RegistryRef(ZOTHost, ImageRepo, "digest-test")), + string(multi_arch.LinuxAMD64.Digest), string(multi_arch.LinuxARM64.Digest)).Exec() + }) It("should fail if given a reference that does not exist in the repo", func() { ORAS("manifest", "index", "create", RegistryRef(ZOTHost, ImageRepo, ""),