-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(e2e): [Test automation] Verify Topology is a supported plugin a…
…nd E2E scenario follow-up (#2191) * [Test automation] Verify Topology is a supported plugin and E2E scenario follow-up * Namespace removed * [Test automation] Verify Topology is a supported plugin and E2E scenario follow-up * Namespace removed * [Test automation] Verify Topology is a supported plugin and E2E scenario follow-up * Namespace removed * Sleep test * TLS issue * pipeline config change * cleanup * cleanup * cleanup * 1.4 changes * fix * Requested changes * Requested changes
- Loading branch information
Showing
6 changed files
with
169 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
--- | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: Pipeline | ||
metadata: | ||
name: topology-test | ||
labels: | ||
app.kubernetes.io/instance: topology-test | ||
app.kubernetes.io/name: topology-test | ||
backstage.io/kubernetes-id: developer-hub | ||
spec: | ||
tasks: | ||
- name: deploy | ||
taskSpec: | ||
steps: | ||
- name: oc | ||
image: 'quay.io/openshift/origin-cli:latest' | ||
script: | | ||
#!/bin/sh | ||
oc "$@" | ||
--- | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: PipelineRun | ||
metadata: | ||
name: topology-test-run | ||
labels: | ||
app: topology-test | ||
backstage.io/kubernetes-id: developer-hub | ||
spec: | ||
pipelineRef: | ||
name: topology-test | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: topology-test | ||
labels: | ||
app.kubernetes.io/instance: topology-test | ||
app.kubernetes.io/name: topology-test | ||
backstage.io/kubernetes-id: developer-hub | ||
annotations: | ||
app.openshift.io/vcs-uri: "https://github.com/janus-idp/backstage-showcase" | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: topology-test | ||
template: | ||
metadata: | ||
labels: | ||
app: topology-test | ||
backstage.io/kubernetes-id: developer-hub | ||
spec: | ||
containers: | ||
- name: topology | ||
image: nginxinc/nginx-unprivileged:stable-alpine | ||
ports: | ||
- containerPort: 8080 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: topology-test-service | ||
labels: | ||
app: topology-test | ||
backstage.io/kubernetes-id: developer-hub | ||
spec: | ||
selector: | ||
app: topology-test | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Page } from "@playwright/test"; | ||
|
||
export class Topology { | ||
private page: Page; | ||
|
||
constructor(page: Page) { | ||
this.page = page; | ||
} | ||
|
||
async hoverOnPodStatusIndicator() { | ||
await this.page | ||
.locator('[data-test-id="topology-test"]') | ||
.getByText("Pod") | ||
.first() | ||
.hover({}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters