Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(e2e): [e2e] Fix and Enable topoloy test case on AKS and GKE #2215

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
18a0a85
[Test automation] Verify Topology is a supported plugin and E2E scena…
teknaS47 Dec 13, 2024
a759ab8
Namespace removed
teknaS47 Dec 15, 2024
63626d0
Merge branch 'main' into topology-plugin-test
teknaS47 Dec 19, 2024
d8411a2
[Test automation] Verify Topology is a supported plugin and E2E scena…
teknaS47 Dec 13, 2024
58906fd
Namespace removed
teknaS47 Dec 15, 2024
053f817
Merge branch 'topology-plugin-test' of https://github.com/teknaS47/ba…
teknaS47 Dec 19, 2024
2a9bba4
[Test automation] Verify Topology is a supported plugin and E2E scena…
teknaS47 Dec 13, 2024
fa26971
Namespace removed
teknaS47 Dec 15, 2024
7fc199a
Merge branch 'topology-plugin-test' of https://github.com/teknaS47/ba…
teknaS47 Dec 27, 2024
ec48cc0
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 2, 2025
038f308
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 7, 2025
4512654
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 13, 2025
2ea02bb
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 15, 2025
ed11673
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 15, 2025
7f84c2a
Sleep test
teknaS47 Jan 16, 2025
5f02079
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 16, 2025
d065abc
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 16, 2025
05eadf8
TLS issue
teknaS47 Jan 17, 2025
f9833f4
Merge branch 'topology-plugin-test' of https://github.com/teknaS47/ba…
teknaS47 Jan 17, 2025
c8f0562
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 17, 2025
f4c1164
pipeline config change
teknaS47 Jan 17, 2025
f0e8bc7
Merge branch 'topology-plugin-test' of https://github.com/teknaS47/ba…
teknaS47 Jan 17, 2025
bb9e27e
cleanup
teknaS47 Jan 17, 2025
25e9dc3
cleanup
teknaS47 Jan 17, 2025
d18a9a5
cleanup
teknaS47 Jan 17, 2025
cb6fa88
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 17, 2025
e851de1
1.4 changes
teknaS47 Jan 17, 2025
cd03a29
Merge branch 'topology-plugin-test' of https://github.com/teknaS47/ba…
teknaS47 Jan 17, 2025
256413a
fix
teknaS47 Jan 17, 2025
45483f8
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 17, 2025
d4671ef
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 17, 2025
7cc57e0
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 18, 2025
504ae24
Requested changes
teknaS47 Jan 19, 2025
15349ec
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 19, 2025
4feed46
Requested changes
teknaS47 Jan 19, 2025
ff36427
Merge branch 'topology-plugin-test' of https://github.com/teknaS47/ba…
teknaS47 Jan 19, 2025
3201135
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 19, 2025
165cdd3
Adding Ingress resource for k8s
teknaS47 Jan 21, 2025
a8d582b
Merge branch 'topology-plugin-test' of https://github.com/teknaS47/ba…
teknaS47 Jan 21, 2025
8f11148
Merge branch 'topology-plugin-test' of https://github.com/teknaS47/ba…
teknaS47 Jan 21, 2025
06192d3
Merge branch 'topology-plugin-test' of https://github.com/teknaS47/ba…
teknaS47 Jan 21, 2025
0ece11e
[Test automation] Verify Topology is a supported plugin and E2E scena…
teknaS47 Dec 13, 2024
34728d3
[Test automation] Verify Topology is a supported plugin and E2E scena…
teknaS47 Dec 13, 2024
6ba890e
Sleep test
teknaS47 Jan 16, 2025
8c8d05b
TLS issue
teknaS47 Jan 17, 2025
c259006
cleanup
teknaS47 Jan 17, 2025
8148bf5
cleanup
teknaS47 Jan 17, 2025
9bb5ead
Requested changes
teknaS47 Jan 19, 2025
cc07ea9
Adding Ingress resource for k8s
teknaS47 Jan 21, 2025
5b69e23
Merge branch 'topology-plugin-test' of https://github.com/teknaS47/ba…
teknaS47 Jan 21, 2025
e43c659
Adding Ingress test
teknaS47 Jan 22, 2025
ea6bc88
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 22, 2025
f7fe313
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 22, 2025
85599f9
Fixing Ingress test
teknaS47 Jan 22, 2025
5fe8764
Merge branch 'topology-plugin-test' of https://github.com/teknaS47/ba…
teknaS47 Jan 22, 2025
02b701a
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 22, 2025
76bed3e
Fixing Ingress test
teknaS47 Jan 22, 2025
c5086fb
Merge branch 'topology-plugin-test' of https://github.com/teknaS47/ba…
teknaS47 Jan 22, 2025
31e2212
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 22, 2025
31f8741
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 23, 2025
93daa8a
Testing on AKS
teknaS47 Jan 23, 2025
28fa2c6
Merge branch 'topology-plugin-test' of https://github.com/teknaS47/ba…
teknaS47 Jan 23, 2025
6dbb4f5
Testing on AKS fix
teknaS47 Jan 23, 2025
04aba4c
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 23, 2025
1fbc9ea
Testing on AKS
teknaS47 Jan 23, 2025
364f56a
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 23, 2025
fcfe437
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 23, 2025
44354e2
Testing on AKS fix
teknaS47 Jan 23, 2025
93354ec
Removing AKS test
teknaS47 Jan 24, 2025
5299d45
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 24, 2025
852e1ff
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 24, 2025
2f48908
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 25, 2025
c5eabcf
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 27, 2025
2c9b28c
Merge branch 'main' into topology-plugin-test
teknaS47 Jan 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .ibm/pipelines/resources/topology_test/topology-test-ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: topology-test-route
labels:
app: topology-test
backstage.io/kubernetes-id: developer-hub
spec:
rules:
- host: topology-test-route
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: topology-test-service
port:
number: 8080
14 changes: 14 additions & 0 deletions .ibm/pipelines/resources/topology_test/topology-test-route.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: topology-test-route
labels:
app: topology-test
backstage.io/kubernetes-id: developer-hub
spec:
to:
kind: Service
name: topology-test-service
port:
targetPort: 8080
wildcardPolicy: None
17 changes: 1 addition & 16 deletions .ibm/pipelines/resources/topology_test/topology-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,4 @@ spec:
ports:
- protocol: TCP
port: 8080
targetPort: 8080
---
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: topology-test-route
labels:
app: topology-test
backstage.io/kubernetes-id: developer-hub
spec:
to:
kind: Service
name: topology-test-service
port:
targetPort: 8080
wildcardPolicy: None
targetPort: 8080
7 changes: 5 additions & 2 deletions .ibm/pipelines/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,11 @@ apply_yaml_files() {
oc apply -f "$dir/resources/pipeline-run/hello-world-pipeline-run.yaml"

# Create Deployment and Pipeline for Topology test.
if [[ "${project}" != *k8s* ]]; then # Specific to OCP deployments (uses Route which is not supported by K8S)
oc apply -f "$dir/resources/topology_test/topology-test.yaml"
oc apply -f "$dir/resources/topology_test/topology-test.yaml"
if [[ "${project}" == *k8s* ]]; then
oc apply -f "$dir/resources/topology_test/topology-test-ingress.yaml"
else
oc apply -f "$dir/resources/topology_test/topology-test-route.yaml"
fi
}

Expand Down
2 changes: 0 additions & 2 deletions e2e-tests/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,10 @@ export default defineConfig({
"**/playwright/e2e/authProviders/**/*.spec.ts",
"**/playwright/e2e/plugins/bulk-import.spec.ts",
"**/playwright/e2e/plugins/tekton/tekton.spec.ts",
"**/playwright/e2e/plugins/topology/topology.spec.ts", // uses Route (not supported in K8S)
"**/playwright/e2e/catalog-scaffoldedfromLink.spec.ts",
"**/playwright/e2e/plugins/ocm.spec.ts",
"**/playwright/e2e/audit-log/**/*.spec.ts",
"**/playwright/e2e/verify-redis-cache.spec.ts",
"**/playwright/e2e/plugins/topology/topology.spec.ts",
"**/playwright/e2e/verify-tls-config-health-check.spec.ts",
"**/playwright/e2e/configuration-test/config-map.spec.ts",
],
Expand Down
26 changes: 18 additions & 8 deletions e2e-tests/playwright/e2e/plugins/topology/topology.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ test.describe("Test Topology Plugin", () => {
await uiHelper.clickTab("Topology");
await uiHelper.verifyText("backstage-janus");
await page.getByRole("button", { name: "Fit to Screen" }).click();
// await uiHelper.verifyText("rhdh");
// await uiHelper.verifyText("rhdh-rbac");
await uiHelper.verifyText("topology-test");
await uiHelper.verifyButtonURL("Open URL", "topology-test-route", {
locator: `[data-test-id="topology-test"]`,
Expand All @@ -38,13 +36,25 @@ test.describe("Test Topology Plugin", () => {
await uiHelper.clickTab("Resources");
await uiHelper.verifyHeading("Pods");
await uiHelper.verifyHeading("Services");
await uiHelper.verifyHeading("Routes");
await expect(
page.getByRole("link", { name: "topology-test-route" }),
).toBeVisible();
if (await page.getByText("Ingresses").isVisible()) {
await uiHelper.verifyHeading("Ingresses");
await uiHelper.verifyText("I");
await expect(
page
.getByTestId("ingress-list")
.getByRole("link", { name: "topology-test-route" }),
).toBeVisible();
await expect(page.locator("pre")).toBeVisible();
} else {
await uiHelper.verifyHeading("Routes");
await uiHelper.verifyText("RT");
await expect(
page.getByRole("link", { name: "topology-test-route" }).first(),
).toBeVisible();
}
await uiHelper.verifyText("Location:");
await expect(page.getByTitle("Deployment")).toBeVisible();
await uiHelper.verifyText("S");
await uiHelper.verifyText("RT");
await expect(page.locator("rect").first()).toBeVisible();
await uiHelper.clickTab("Details");
await page.getByLabel("Pod").hover();
Expand Down Expand Up @@ -75,6 +85,6 @@ test.describe("Test Topology Plugin", () => {
await uiHelper.verifyText("PLR");
await page.getByTestId("status-ok").first().click();
await uiHelper.verifyDivHasText("Pipeline SucceededTask");
await uiHelper.verifyText("2 Succeeded");
await uiHelper.verifyText("Pipeline Succeeded");
});
});
Loading