Skip to content

Commit

Permalink
chore: Allow to configure HappyPath test suite (#21918)
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <[email protected]>

Signed-off-by: Anatolii Bazko <[email protected]>
  • Loading branch information
tolusha authored Jan 6, 2023
1 parent 93ed226 commit d014fb0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/devworkspace-happy-path/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export CHE_NAMESPACE="${CHE_NAMESPACE:-eclipse-che}"
export E2E_TEST_IMAGE="${E2E_TEST_IMAGE:-quay.io/eclipse/che-e2e:next}"
export HAPPY_PATH_POD_NAME=happy-path-che
export HAPPY_PATH_TEST_PROJECT='https://github.com/che-samples/java-spring-petclinic/tree/devfilev2'
export HAPPY_PATH_SUITE="${HAPPY_PATH_SUITE:-test-devworkspace-happy-path-code}"

rm -rf ${WORKDIR}
mkdir -p ${WORKDIR}
Expand Down Expand Up @@ -98,6 +99,7 @@ startHappyPathTest() {
TS_SELENIUM_DEVWORKSPACE_URL="${ECLIPSE_CHE_URL}/#${HAPPY_PATH_TEST_PROJECT}"
HAPPY_PATH_POD_FILE=${SCRIPT_DIR}/resources/pod-che-happy-path.yaml
cp $HAPPY_PATH_POD_FILE ${WORKDIR}/e2e-pod.yaml
sed -i "s@HAPPY_PATH_SUITE@${HAPPY_PATH_SUITE}@g" ${WORKDIR}/e2e-pod.yaml
sed -i "s@CHE_URL@${ECLIPSE_CHE_URL}@g" ${WORKDIR}/e2e-pod.yaml
sed -i "s@WORKSPACE_ROUTE@${TS_SELENIUM_DEVWORKSPACE_URL}@g" ${WORKDIR}/e2e-pod.yaml
sed -i "s@CHE-NAMESPACE@${CHE_NAMESPACE}@g" ${WORKDIR}/e2e-pod.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
imagePullPolicy: Always
env:
- name: TEST_SUITE
value: test-devworkspace-happy-path-code
value: HAPPY_PATH_SUITE
- name: NODE_TLS_REJECT_UNAUTHORIZED
value: '0'
- name: TS_SELENIUM_BASE_URL
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"timeout": "2200000",
"reporter": "dist/driver/CheReporter.js",
"ui": "tdd",
"full-trace": true,
"require": [
"source-map-support/register",
"./dist/tests/MochaHooks.js"
],
"spec": [
"dist/tests/login/Login.spec.js",
"dist/tests/e2e/tests/devfiles/che-code/EmptyWorkspace.spec.ts"
]
}
1 change: 1 addition & 0 deletions tests/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"test-code": "./generateIndex.sh && npm run lint && npm run tsc && mocha --config mocha-che-code.json",
"test-happy-path-code": "./generateIndex.sh && npm run lint && npm run tsc && mocha --config mocha-happy-path-che-code.json",
"test-devworkspace-happy-path-code": "./generateIndex.sh && npm run lint && npm run tsc && mocha --config mocha-devworkspace-happy-path-che-code.json",
"test-empty-workspace-devworkspace-happy-path-code": "./generateIndex.sh && npm run lint && npm run tsc && mocha --config mocha-empty-workspace-devworkspace-happy-path-che-code.json",
"test-java-vertx-code": "./generateIndex.sh && npm run lint && npm run tsc && mocha --config mocha-java-vertx-che-code.json",
"test-java-springboot-code": "./generateIndex.sh && npm run lint && npm run tsc && mocha --config mocha-java-springboot-che-code.json",
"test-factory-code": "./generateIndex.sh && npm run lint && npm run tsc && mocha --config mocha-factory-che-code.json",
Expand Down

0 comments on commit d014fb0

Please sign in to comment.