From b17951039242c2c939c40a3e476f2efbf4a53f81 Mon Sep 17 00:00:00 2001 From: "Lixia (Sylvia) Lei" Date: Tue, 3 Dec 2024 14:40:12 +0800 Subject: [PATCH] minor refine test Signed-off-by: Lixia (Sylvia) Lei --- test/e2e/suite/command/blob.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/e2e/suite/command/blob.go b/test/e2e/suite/command/blob.go index f001f0307..a0ebffabc 100644 --- a/test/e2e/suite/command/blob.go +++ b/test/e2e/suite/command/blob.go @@ -42,6 +42,7 @@ var _ = Describe("ORAS beginners:", func() { When("running `blob push`", func() { It("should not show --verbose in help doc", func() { out := ORAS("push", "--help").MatchKeyWords(ExampleDesc).Exec().Out + // verbose flag should be hidden in help doc gomega.Expect(out).ShouldNot(gbytes.Say("--verbose")) }) @@ -263,7 +264,9 @@ var _ = Describe("1.1 registry users:", func() { ORAS("blob", "push", RegistryRef(ZOTHost, repo, ""), blobPath). WithDescription("skip the pushing if the blob already exists in the target repo"). - MatchKeyWords("Exists").Exec() + MatchStatus([]match.StateKey{{Digest: "e1ca41574914", Name: "application/vnd.oci.image.layer.v1.tar"}}, true, 1). + MatchKeyWords("Exists"). + Exec() }) It("should push a blob from a stdin and output the descriptor with specific media-type", func() {