Skip to content

Commit

Permalink
matchErrKeywords
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxuan Wang <[email protected]>
  • Loading branch information
wangxiaoxuan273 committed Mar 19, 2024
1 parent 6702fd6 commit 6f72ea4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/suite/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,14 @@ var _ = Describe("Common registry user", func() {

It("should fail if username is used with identity token", func() {
ORAS("login", ZOTHost, "-u", Username, "--identity-token", Password).
MatchKeyWords("Error", "--username", "cannot be used with", "--identity-token").
MatchErrKeyWords("Error", "--username", "cannot be used with", "--identity-token").
ExpectFailure().
Exec()
})

It("should fail if password is used with identity token", func() {
ORAS("login", ZOTHost, "-p", Password, "--identity-token", Password).
MatchKeyWords("Error", "--password", "cannot be used with", "--identity-token").
MatchErrKeyWords("Error", "--password", "cannot be used with", "--identity-token").
ExpectFailure().
Exec()
})
Expand Down

0 comments on commit 6f72ea4

Please sign in to comment.