From 8ea421ddc946deb09eb16ca9e7cde8791577d31d Mon Sep 17 00:00:00 2001 From: Xiaoxuan Wang Date: Mon, 9 Sep 2024 11:08:12 +0800 Subject: [PATCH] refine test Signed-off-by: Xiaoxuan Wang --- test/e2e/suite/command/pull.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/e2e/suite/command/pull.go b/test/e2e/suite/command/pull.go index bc9981616..20583930d 100644 --- a/test/e2e/suite/command/pull.go +++ b/test/e2e/suite/command/pull.go @@ -270,7 +270,8 @@ var _ = Describe("OCI spec 1.1 registry users:", func() { It("should show correct reference", func() { tempDir := PrepareTempFiles() ref := RegistryRef(ZOTHost, ArtifactRepo, foobar.Tag) - ORAS("pull", ref, "--format", "go-template={{.reference}}").WithWorkDir(tempDir).Exec() + out := ORAS("pull", ref, "--format", "go-template={{.reference}}").WithWorkDir(tempDir).Exec().Out.Contents() + Expect(out).To(Equal("localhost:7000/command/artifacts@sha256:fd6ed2f36b5465244d5dc86cb4e7df0ab8a9d24adc57825099f522fe009a22bb")) }) It("should pull specific platform", func() {