diff --git a/test/extended/cli/basics.go b/test/extended/cli/basics.go index 64d7f1529f1c..6f553a9c3df7 100644 --- a/test/extended/cli/basics.go +++ b/test/extended/cli/basics.go @@ -247,10 +247,12 @@ var _ = g.Describe("[sig-cli] oc basics", func() { o.Expect(err).NotTo(o.HaveOccurred()) found := serverPattern.MatchString(out) o.Expect(found).To(o.BeTrue()) + }) - out, err = oc.Run("whoami").Args("--show-console").Output() + g.It("can show correct whoami result with console", func() { + out, err := oc.Run("whoami").Args("--show-console").Output() o.Expect(err).NotTo(o.HaveOccurred()) - found = consolePattern.MatchString(out) + found := consolePattern.MatchString(out) o.Expect(found).To(o.BeTrue()) }) }) diff --git a/test/extended/util/annotate/generated/zz_generated.annotations.go b/test/extended/util/annotate/generated/zz_generated.annotations.go index e92d2ff3b8f9..224bc151bf8a 100644 --- a/test/extended/util/annotate/generated/zz_generated.annotations.go +++ b/test/extended/util/annotate/generated/zz_generated.annotations.go @@ -1417,6 +1417,8 @@ var Annotations = map[string]string{ "[sig-cli] oc basics can process templates [apigroup:template.openshift.io]": " [Suite:openshift/conformance/parallel]", + "[sig-cli] oc basics can show correct whoami result with console": " [Skipped:NoOptionalCapabilities] [Suite:openshift/conformance/parallel]", + "[sig-cli] oc basics can show correct whoami result": " [Suite:openshift/conformance/parallel]", "[sig-cli] oc builds complex build start-build [apigroup:build.openshift.io]": " [Skipped:Disconnected] [Suite:openshift/conformance/parallel]", diff --git a/test/extended/util/annotate/rules.go b/test/extended/util/annotate/rules.go index 98b72294f2fa..d60dc9d578a2 100644 --- a/test/extended/util/annotate/rules.go +++ b/test/extended/util/annotate/rules.go @@ -332,6 +332,8 @@ var ( // this list needs to be refined as there are some storage tests we should be able to run. // Tracker for enabling more storage tests: https://issues.redhat.com/browse/OCPPLAN-9509 `\[sig-storage\]`, + // This test requires a valid console url which doesn't exist when the optional console capability is disabled. + `\[sig-cli\] oc basics can show correct whoami result with console`, }, } )