-
Task
-
Resolution: Unresolved
-
Major
-
None
-
None
-
False
-
-
False
-
-
Description
Migrate Tekton E2E tests to workspaces/tekton/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.
Setup Prerequisites
OpenShift Pipelines Operator: Tekton/OpenShift Pipelines installed in the cluster
Based on RHDH core resources (.ibm/pipelines/resources/pipeline-run/pipelines-operator.yaml):
apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: name: openshift‑pipelines‑operator namespace: openshift‑operators spec: channel: latest name: openshift‑pipelines‑operator‑rh source: redhat‑operators sourceNamespace: openshift‑marketplace
Kubernetes Cluster Access: Service account with permissions to read Tekton resources
- K8S_CLUSTER_TOKEN: Service account token for cluster access
- K8S_CLUSTER_URL: Kubernetes API server URL
Test Pipeline: Tekton Pipeline and PipelineRun with backstage.io/kubernetes-id label
- See .ibm/pipelines/resources/topology_test/topology-test.yaml for reference
Source Files (RHDH Core)
| File | Path |
|---|---|
| Test spec | e2e-tests/playwright/e2e/plugins/tekton/tekton.spec.ts |
Plugin Packages
| Package | Type |
|---|---|
| backstage-community-plugin-tekton | Frontend |
Acceptance Criteria
1. Create Workspace Structure
- [ ] Create workspaces/tekton/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:
plugins: ‑ package: ./dynamic‑plugins/dist/backstage‑community‑plugin‑tekton disabled: false pluginConfig: dynamicPlugins: frontend: backstage‑community.plugin‑tekton: mountPoints: ‑ mountPoint: entity.page.ci/cards importName: TektonCI config: layout: gridColumn: 1 / ‑1 if: allOf: ‑ isTektonCIAvailable
3. Migrate Test Files
- [ ] Create tests/specs/tekton.spec.ts
4. Verify All Tests Pass
- [ ] All 3 test cases pass
Test Cases (3 total)
1-3. Tekton CI plugin tests
Reference
- Template: workspaces/tech-radar/e2e-tests