-
Task
-
Resolution: Unresolved
-
Blocker
-
None
-
None
-
2
-
False
-
-
False
-
-
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)
| File | Path |
|---|---|
| Test spec | e2e-tests/playwright/e2e/github-integration-org-fetch.spec.ts |
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
- Template: workspaces/tech-radar/e2e-tests