• Icon: Task Task
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • 1.10.0
    • None
    • Overlay, RBAC
    • None
    • RHDH Plugins 3288

      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)

      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/)

      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

              rh-ee-pknight Patrick Knight
              skhileri Subhash Khileri
              RHDH Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: