Skip to content

Commit 2154628

Browse files
Merge pull request #1136 from jcaianirh/e2e-teardown
create single script for e2e tests for setup, launch, and teardown
2 parents 3c3e548 + c66b96e commit 2154628

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test-prow-e2e.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
3+
set -exuo pipefail
4+
5+
ARTIFACT_DIR=/tmp/artifacts
6+
export ARTIFACT_DIR
7+
8+
./build.sh
9+
10+
oc login -u kubeadmin -p $(cat "${ARTIFACT_DIR}/installer/auth/kubeadmin-password")
11+
12+
source ./contrib/oc-environment.sh
13+
14+
kubectl create -f https://raw.githubusercontent.com/operator-framework/operator-lifecycle-manager/master/deploy/okd/manifests/0.8.0/0000_30_06-rh-operators.configmap.yaml
15+
kubectl create -f https://raw.githubusercontent.com/operator-framework/operator-lifecycle-manager/master/deploy/okd/manifests/0.8.0/0000_30_09-rh-operators.catalogsource.yaml
16+
17+
./test-gui.sh e2e
18+
19+
cp -rv ./frontend/gui_test_screenshots "${ARTIFACT_DIR}/gui_test_screenshots"

0 commit comments

Comments
 (0)