Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-11384

Migrate GitHub Org Integration E2E tests to Overlay (backstage workspace)

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • 1.10.0
    • None
    • Catalog, Github, Overlay
    • None

      Description

      Migrate GitHub Org Integration E2E tests to workspaces/backstage/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

      GitHub App Integration: GitHub App with organization access (same as GitHub Discovery plugin)

      Based on RHDH core config (.ibm/pipelines/resources/config_map/app-config-rhdh.yaml):

      catalog:
        providers:
          githubOrg:
            id: production
            githubUrl: "${GITHUB_URL}"
            orgs: ["${GITHUB_ORG}", "${GITHUB_ORG_2}"]
      

      Multiple GitHub Organizations: At least 2 test organizations with users and groups

      Source Files (RHDH Core)

      Plugin Packages

      Package Type
      backstage-plugin-catalog-backend-module-github-org-dynamic Backend

      Acceptance Criteria

      1. Create Workspace Structure

      • [ ] Reuse workspaces/backstage/e2e-tests/ from GitHub Discovery

      2. Create RHDH Configuration (tests/config/)

      • [ ] Add githubOrg provider to app-config-rhdh.yaml

      3. Migrate Test Files

      • [ ] Create tests/specs/github-integration-org-fetch.spec.ts

      4. Verify All Tests Pass

      • [ ] All 3 test cases pass

      Test Cases (3 total)

      Verify that fetching the groups of the first org works

      Verify that fetching the groups of the second org works

      Verify that fetching the users of the orgs works

      Reference

              Unassigned Unassigned
              skhileri Subhash Khileri
              RHDH Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: