Bug 2011443 - Cypress tests assuming Admin Perspective could fail on shared/reference cluster
Summary: Cypress tests assuming Admin Perspective could fail on shared/reference cluster
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.10.0
Assignee: Jakub Hadvig
QA Contact: Siva Reddy
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-06 15:30 UTC by Hiro Miyamoto
Modified: 2022-03-10 16:17 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 16:17:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 9989 0 None open Bug 2011443: Ensuring Administrator Perspective for noisy/shared setup 2021-10-06 16:06:19 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:17:44 UTC

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


Note You need to log in before you can comment on or make changes to this bug.