Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2011443

Summary: Cypress tests assuming Admin Perspective could fail on shared/reference cluster
Product: OpenShift Container Platform Reporter: Hiro Miyamoto <hmiyamot>
Component: Management ConsoleAssignee: Jakub Hadvig <jhadvig>
Status: CLOSED ERRATA QA Contact: Siva Reddy <schituku>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.9CC: aos-bugs, dtaylor, kdoberst, yapei
Target Milestone: ---   
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-10 16:17:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Hiro Miyamoto 2021-10-06 15:30:31 UTC
Description of problem:
Ability for running Cypress tests against a remote reference (possibly shared) cluster is valuable. However, if you try that, you'd encounter fails in `namespace-crud.spec.ts` sometimes as your target cluster may have Developer perspective for kubeadmin user.

Version-Release number of selected component (if applicable):
4.9

How reproducible:
Sometimes, unpredictable, as that could be set by somebody else on a shared cluster.

Steps to Reproduce:
1. set `$BRIDGE_BASE_ADDRESS` to point to your remote cluster
2. run `test-cypress.sh -h true -p console -s 'tests/crud/namespace-crud*`
3. see it fail sometimes when Developer perspective is active for kubeadmin

Actual results:
Sometimes fail

Expected results:
Always pass (as long as nothing's wrong with the cluster)

Additional info:

Comment 4 Siva Reddy 2021-10-11 23:20:40 UTC
cluster version:
  4.10.0-0.nightly-2021-10-10-083341

Steps to verify:
1. Login to the cluster manually using kubeadmin
2. Change the perspective to developer and logout
3. set `$BRIDGE_BASE_ADDRESS` to point to your remote cluster
4. run `test-cypress.sh -h true -p console -s 'tests/crud/namespace-crud*`
5. see it fail sometimes when Developer perspective is active for kubeadmin

   Now it will change the perspective to admin before running tests.

Comment 8 errata-xmlrpc 2022-03-10 16:17:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.10.3 security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:0056