Define label for integration tests not needing cluster (#6242)

This commit is contained in:
Philippe Martin
2022-10-31 23:16:24 +01:00
committed by GitHub
parent 233c817c50
commit 2dab7fbda9
12 changed files with 46 additions and 14 deletions

View File

@@ -15,7 +15,7 @@ export SKIP_USER_LOGIN_TESTS=true
export DEVFILE_PROXY="$(kubectl get svc -n devfile-proxy nginx -o jsonpath='{.status.loadBalancer.ingress[0].hostname}' || true)"
echo Using Devfile proxy: ${DEVFILE_PROXY}
make install
make test-integration
make test-integration-cluster
make test-e2e
) |& tee "/tmp/${LOGFILE}"

View File

@@ -0,0 +1,20 @@
#!/bin/bash
LOGFILE="pr-${GIT_PR_NUMBER}-nocluster-tests-${BUILD_NUMBER}"
source .ibm/pipelines/functions.sh
ibmcloud login --apikey "${API_KEY_QE}"
ibmcloud target -r "${IBM_REGION}"
(
set -e
make install
make test-integration-no-cluster
) |& tee "/tmp/${LOGFILE}"
RESULT=${PIPESTATUS[0]}
save_logs "${LOGFILE}" "NoCluster Tests" ${RESULT}
exit ${RESULT}

View File

@@ -16,7 +16,7 @@ cleanup_namespaces
export DEVFILE_PROXY="$(kubectl get svc -n devfile-proxy nginx -o jsonpath='{.status.loadBalancer.ingress[0].hostname}' || true)"
echo Using Devfile proxy: ${DEVFILE_PROXY}
make install
make test-integration
make test-integration-cluster
make test-e2e
) |& tee "/tmp/${LOGFILE}"

View File

@@ -80,7 +80,7 @@ function Run-Test {
Shout "Create Binary"
make install
Shout "Running test"
make test-integration | tee -a C:\Users\Administrator.ANSIBLE-TEST-VS\AppData\Local\Temp\$LOGFILE
make test-integration-cluster | tee -a C:\Users\Administrator.ANSIBLE-TEST-VS\AppData\Local\Temp\$LOGFILE
Check-ExitCode $LASTEXITCODE
make test-e2e | tee -a C:\Users\Administrator.ANSIBLE-TEST-VS\AppData\Local\Temp\$LOGFILE
Check-ExitCode $LASTEXITCODE