-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: mdolhalo <[email protected]>
- Loading branch information
mdolhalo
committed
Oct 6, 2023
1 parent
0811b7e
commit 6768afd
Showing
43 changed files
with
597 additions
and
118 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
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,58 @@ | ||
#!/bin/bash | ||
# shellcheck source=/dev/null | ||
|
||
export ARCH_VERSION="x86_64" | ||
|
||
######################################## | ||
############# Methods ################## | ||
######################################## | ||
|
||
launchAPITests() { | ||
export MOCHA_SUITE="APITest" | ||
echo "MOCHA_SUITE = ${MOCHA_SUITE}" | ||
npm run driver-less-test | ||
} | ||
|
||
launchDynamicAPITests() { | ||
export MOCHA_SUITE="DynamicAPITest" | ||
echo "MOCHA_SUITE = ${MOCHA_SUITE}" | ||
npm run delayed-test | ||
} | ||
|
||
launchUITests() { | ||
export MOCHA_SUITE="UITest" | ||
echo "MOCHA_SUITE = ${MOCHA_SUITE}" | ||
npm run test | ||
} | ||
|
||
launchAllTests() { | ||
echo "" | ||
echo "Launching all tests for $ARCH_VERSION $OCP_VERSION" | ||
echo "" | ||
launchDynamicAPITests | ||
launchAPITests | ||
launchUITests | ||
} | ||
|
||
######################################## | ||
############# Launching ################ | ||
######################################## | ||
|
||
#possible values OCP_VERSION="airgap-ocp-413", "ocp4-12" | ||
export OCP_VERSION="ocp4-13" | ||
echo "suits/$ARCH_VERSION/$OCP_VERSION/$MOCHA_SUITE" | ||
echo "$(<"suits/$ARCH_VERSION/$OCP_VERSION/InitEnvironmental.sh")" | ||
source "suits/$ARCH_VERSION/$OCP_VERSION/InitEnvironmental.sh" && | ||
launchAllTests | ||
|
||
export OCP_VERSION="ocp4-12" | ||
echo "suits/$ARCH_VERSION/$OCP_VERSION/$MOCHA_SUITE" | ||
echo "$(<"suits/$ARCH_VERSION/$OCP_VERSION/InitEnvironmental.sh")" | ||
source "suits/$ARCH_VERSION/$OCP_VERSION/InitEnvironmental.sh" && | ||
launchAllTests | ||
|
||
export OCP_VERSION="airgap-ocp-413" | ||
echo "suits/$ARCH_VERSION/$OCP_VERSION/$MOCHA_SUITE" | ||
echo "$(<"suits/$ARCH_VERSION/$OCP_VERSION/InitEnvironmental.sh")" | ||
source "suits/$ARCH_VERSION/$OCP_VERSION/InitEnvironmental.sh" && | ||
launchAllTests |
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 |
---|---|---|
|
@@ -9,11 +9,13 @@ | |
"tsc": "rm -rf ./dist && ./configs/sh-scripts/generateIndex.sh && tsc -p .", | ||
"test": "./configs/sh-scripts/initDefaultValues.sh npm run lint && npm run tsc && export USERSTORY=$USERSTORY && mocha --config dist/configs/mocharc.js", | ||
"driver-less-test": "export TS_USE_WEB_DRIVER_FOR_TEST=false && npm run test", | ||
"delayed-test": "npm run lint && npm run tsc && export TS_USE_WEB_DRIVER_FOR_TEST=false && export MOCHA_DELAYED_SUITE=true && mocha --config dist/configs/mocharc.js --delay", | ||
"open-allure-dasboard": "allure generate .allure-results --clean -o .allure-report && allure open .allure-report", | ||
"cleanup-docker": "if [ $(docker ps -a | grep -c selenium-e2e) -gt 0 ]; then docker rm -f $(docker ps --filter \"name=selenium-e2e\" -aq); fi;", | ||
"test-docker": "npm run cleanup-docker && docker run -it --shm-size=2g -p 5920:5920 --name selenium-e2e -e TS_SELENIUM_BASE_URL=$TS_SELENIUM_BASE_URL eclipse/che-e2e:nightly", | ||
"test-docker-mount-e2e": "npm run cleanup-docker && docker run -it --shm-size=2g -p 5920:5920 --name selenium-e2e -e TS_SELENIUM_BASE_URL=$TS_SELENIUM_BASE_URL -v $(pwd):/tmp/e2e:Z eclipse/che-e2e:nightly", | ||
"test-all-devfiles": " ./configs/sh-scripts/initDefaultValues.sh && ./configs/sh-scripts/initDevfileTests.sh", | ||
"test-regression": "./configs/sh-scripts/regressionTestRun.sh", | ||
"devfile-acceptance-test-suite": "./configs/sh-scripts/initDefaultValues.sh npm run lint && npm run tsc && export TS_USE_WEB_DRIVER_FOR_TEST=false && mocha 'dist/specs/api/*.js' --config dist/configs/mocharc.js --delay --grep 'Devfile acceptance test suite'" | ||
}, | ||
"author": "Ihor Okhrimenko ([email protected])", | ||
|
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
Oops, something went wrong.