add validation using oc whoami for e2e test
@@ -941,6 +941,10 @@ var _ = Describe("updateE2e", func() {
logoutMsg := runCmd("odo logout")
Expect(logoutMsg).To(ContainSubstring("Logged"))
Expect(logoutMsg).To(ContainSubstring("out on"))
+ // validate using oc whoami
+ oc_output := runCmd("oc whoami")
+ Expect(oc_output).To(ContainSubstring("is forbidden: User"))
+ Expect(oc_output).To(ContainSubstring("Error from server"))
})
It("should throw error if user is not logged in", func() {
logoutMsg := runFailCmd("odo logout")
