From a8a4e09f132865beff92a305f4897e21fbe31a85 Mon Sep 17 00:00:00 2001 From: Xiaoxuan Wang Date: Tue, 19 Mar 2024 07:37:11 +0000 Subject: [PATCH] fixed failure Signed-off-by: Xiaoxuan Wang --- test/e2e/suite/auth/auth.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/suite/auth/auth.go b/test/e2e/suite/auth/auth.go index 28d9097f8..a714c2422 100644 --- a/test/e2e/suite/auth/auth.go +++ b/test/e2e/suite/auth/auth.go @@ -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("--username cannot be used with --identity-token or --identity-token-stdin"). + MatchKeyWords("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("--password and --password-stdin cannot be used with --identity-token or --identity-token-stdin"). + MatchKeyWords("Error", "--password", "cannot be used with", "--identity-token"). ExpectFailure(). Exec() }) @@ -170,7 +170,7 @@ var _ = Describe("Common registry user", func() { It("should fail as the test server doesn't support token service", func() { ORAS("login", ZOTHost, "--identity-token", Password). - MatchErrKeyWords("WARNING", "Using --password via the CLI is insecure", "Use --password-stdin").ExpectFailure().Exec() + MatchErrKeyWords("WARNING", "Using --identity-token via the CLI is insecure", "Use --identity-token-stdin").ExpectFailure().Exec() }) })