From 0d8d684f260b301847507852b06ad02c3222ca62 Mon Sep 17 00:00:00 2001 From: Junjie Gao Date: Thu, 20 Feb 2025 04:54:33 +0000 Subject: [PATCH] fix: update Signed-off-by: Junjie Gao --- test/e2e/suite/command/key.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/e2e/suite/command/key.go b/test/e2e/suite/command/key.go index 7a27a00e9..ffda485d4 100644 --- a/test/e2e/suite/command/key.go +++ b/test/e2e/suite/command/key.go @@ -28,8 +28,14 @@ var _ = Describe("notation key", func() { Host(BaseOptions(), func(notation *utils.ExecOpts, artifact *Artifact, vhost *utils.VirtualHost) { userConfigDir := vhost.AbsolutePath() notation.Exec("key", "list"). + // we can only check the key words here as the number spaces + // between the columns are not fixed. MatchKeyWords( - "NAME KEY PATH CERTIFICATE PATH ID PLUGIN NAME", + "NAME", + "KEY PATH", + "CERTIFICATE PATH", + "ID", + "PLUGIN NAME", fmt.Sprintf("* e2e %s/notation/localkeys/e2e.key %s/notation/localkeys/e2e.crt", userConfigDir, userConfigDir), ) })