-
Task
-
Resolution: Unresolved
-
Blocker
-
None
-
None
Description
Migrate RBAC E2E tests to workspaces/rbac/e2e-tests/.
NOTE
This task is based on the existing RHDH core test case and may have missed some details. Please review the original test files in RHDH core before implementation.
DOCUMENTATION
Follow the RHDH E2E Test Utils - Overlay Documentation for implementation guidance.
Setup Prerequisites
RBAC Permission Enabled: Permission framework enabled with RBAC backend
- permission.enabled: true in app-config
- RBAC policy file and conditional policies file
Based on RHDH core config (.ibm/pipelines/resources/config_map/app-config-rhdh-rbac.yaml):
permission:
enabled: true
rbac:
maxDepth: 1
policyFileReload: true
policies-csv-file: "./rbac/rbac-policy.csv"
conditionalPoliciesFile: "./rbac-conditions/conditional-policies.yaml"
pluginsWithPermission:
‑ catalog
‑ permission
‑ scaffolder
‑ kubernetes
‑ scorecard
admin:
users:
‑ name: user:default/rhdh-qe
RBAC Policy File: Based on RHDH core (.ibm/pipelines/resources/config_map/rbac-policy.csv)
Conditional Policies File: YAML file with conditional policy rules
Source Files (RHDH Core)
| File | Path |
|---|---|
| Test spec | e2e-tests/playwright/e2e/plugins/rbac/rbac.spec.ts |
| Page Object | e2e-tests/playwright/support/pages/rbac.ts |
Plugin Packages
| Package | Type |
|---|---|
| backstage-community-plugin-rbac | Frontend |
Acceptance Criteria
1. Create Workspace Structure
- [ ] Create workspaces/rbac/e2e-tests/
- [ ] Copy standard config files from tech-radar reference
- [ ] Update package.json name and playwright.config.ts project name
2. Create RHDH Configuration (tests/config/)
- [ ] Create dynamic-plugins.yaml based on RHDH core dynamic-plugins.default.yaml
3. Migrate Test Files
- [ ] Create tests/specs/rbac.spec.ts
- [ ] Create tests/pages/rbac.page.ts
4. Verify All Tests Pass
- [ ] All 25 test cases pass
Test Cases (25 total)
1-25. RBAC plugin tests (roles, policies, permissions)
Reference
- Template: workspaces/tech-radar/e2e-tests