Skip to content

Commit

Permalink
minor refine test
Browse files Browse the repository at this point in the history
Signed-off-by: Lixia (Sylvia) Lei <[email protected]>
  • Loading branch information
Wwwsylvia committed Dec 3, 2024
1 parent 42c6d6f commit b179510
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/e2e/suite/command/blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
})

Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit b179510

Please sign in to comment.