Skip to content

Commit e714231

Browse files
committed
extended/cli: Align oc project output check
oc now allows for specifying a custom context, which causes the message to include the context name. The check is aligned to accept both the current and changed output.
1 parent e713d4e commit e714231

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/extended/cli/project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ var _ = g.Describe("[sig-cli] oc project", func() {
6767
g.By("new project should be created")
6868
out, err = oc.Run("new-project").Args(testProject1).Output()
6969
o.Expect(err).NotTo(o.HaveOccurred())
70-
o.Expect(out).To(o.ContainSubstring(fmt.Sprintf("Now using project \"%s\" on server ", testProject1)))
70+
o.Expect(out).To(o.MatchRegexp(fmt.Sprintf("Now using project \"%s\"( from context named \"admin\")? on server ", testProject1)))
7171
defer func() {
7272
err = oc.Run("delete", "namespace").Args(testProject1).Execute()
7373
o.Expect(err).NotTo(o.HaveOccurred())

0 commit comments

Comments
 (0)