mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
* Scripts for PSI minishift tests * added line at end of script * added line at end of script * emoved info as requested * Updates as per review feedback * deleting unwanted script as it was replaced with other files * Scripts for PSI minishift tests * Applied workaround to use env variable to select minikube or minishift * Set CLUSTER env variable to appply workaround for firewall not taking parameters * added curl for missing script and added misiing /, removed unnecessary cd * Separating minishift from merged minikube-minishift scripts due to firewall not taking parameters for script execution * Changes to run tests in IBM Cloud, changed TEST_EXEX_NODES=24 * remove non required changes (old stuff) and remove non required scripts (old stuff) * Modified and added scripts to run tests in IBM Cloud cluster * Additional changes for to run K8S test in IBM Cloud * Removed unnecessary line * changes to run tests on K8S cluster in IBM Cloud * ncorportaed changes based on feedback for IBM Cloud tests * Chnages based in feedback for IBM Cloud * updated string for home dir * removing test-integration-devfile as it ends with failures * Fixed if statement * changes to Makefile for number of nodes * added requested comment to Makefile about nodes if running in IBM Cloud
42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
#!/usr/bin/env bash
|
|
# Runs integration tests on K8S cluster hosted in IBM Cloud
|
|
|
|
shout() {
|
|
set +x
|
|
echo -e "\n.---------------------------------------\n${1}\n'---------------------------------------\n"
|
|
set -x
|
|
}
|
|
|
|
set -ex
|
|
|
|
# This is one of the variables injected by ci-firewall. Its purpose is to allow scripts to handle uniqueness as needed
|
|
SCRIPT_IDENTITY=${SCRIPT_IDENTITY:-"def-id"}
|
|
|
|
case ${1} in
|
|
k8s)
|
|
export TEST_EXEC_NODES="24"
|
|
ibmcloud login --apikey $IBMC_DEVELOPER_OCLOGIN_APIKEY -a cloud.ibm.com -r eu-de -g "Developer-CI-and-QE"
|
|
ibmcloud ks cluster config --cluster $IBMC_K8S_CLUSTER_ID
|
|
|
|
# Integration tests
|
|
shout "| Running integration Tests on Kubernetes cluster in IBM Cloud"
|
|
make test-cmd-project
|
|
|
|
shout "Cleaning up some leftover namespaces"
|
|
|
|
set +x
|
|
for i in $(kubectl get namespace -o name); do
|
|
if [[ $i == "namespace/${SCRIPT_IDENTITY}"* ]]; then
|
|
kubectl delete $i
|
|
fi
|
|
done
|
|
set -x
|
|
|
|
odo logout
|
|
;;
|
|
*)
|
|
echo "Need parameter set to k8s"
|
|
exit 1
|
|
;;
|
|
esac
|