fix(e2e): fix orchestrator RBAC tests#4453
fix(e2e): fix orchestrator RBAC tests#4453testetson22 wants to merge 3 commits intoredhat-developer:mainfrom
Conversation
…test timing updates - Introduced OrchestratorRbacHelper to manage orchestrator.workflow permissions. - Updated tests to remove pre-existing permissions before setup and restore them after execution. - Increased timeout for workflow execution tests to accommodate longer processing times.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR TypeBug fix, Tests Description
|
| Relevant files | |||||
|---|---|---|---|---|---|
| Enhancement |
| ||||
| Bug fix |
|
|
/test e2e-ocp-helm-nightly |
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||||||||
…ndling and policy restoration based on feedback - Updated error messages for clarity during role cleanup and policy restoration. - Ensured that generic orchestrator policies are always restored, even if role cleanup fails. - Introduced constants for user references to improve code readability and maintainability.
|
The container image build workflow finished with status: |
|
/test e2e-ocp-helm-nightly |
|
/test e2e-ocp-helm-nightly |
|
|
/retest |
|
@testetson22: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |



Description
Fixes failing Orchestrator RBAC tests in nightly job(s).
New File:
e2e-tests/playwright/support/api/orchestrator-rbac-helper.tsA reusable helper class that:
removeGenericOrchestratorPermissions()- finds and removes any genericorchestrator.workflowpermissions for a user, saving them for later restorationrestoreGenericOrchestratorPermissions()- restores previously saved permissionsSavedRolePolicyinterfaceWe can roll more permission management into this, but I kept the scope narrow.
Modified:
orchestrator-rbac.spec.tsOrchestratorRbacHelperOrchestratorRbacHelperinstanceafterAllrestoration to use helperModified:
orchestrator-entity-rbac.spec.tsOrchestratorRbacHelpertestUserconstant for"user:default/rhdh-qe"OrchestratorRbacHelperinstanceafterAllrestoration to use helpertest.setTimeout(150000)to handle workflow execution timeoutWhich issue(s) does this PR fix
PR acceptance criteria
Please make sure that the following steps are complete:
How to test changes / Special notes to the reviewer