Run all components in one namespace
[oom.git] / kubernetes / robot / ete-k8s.sh
1 #!/bin/bash
2
3 #
4 # Run the testsuite for the passed tag. Valid tags are ete, health, closedloop, instantiate
5 # Please clean up logs when you are done...
6 # Note: Do not run multiple concurrent ete.sh as the --display is not parameterized and tests will collide
7 #
8 if [ "$1" == "" ] || [ "$2" == "" ]; then
9    echo "Usage: ete.sh [namespace] [ health | ete | closedloop | instantiate | distribute ]"
10    exit
11 fi
12
13 export NAMESPACE="$1"
14 export TAGS="-i $2"
15 export ETEHOME=/var/opt/OpenECOMP_ETE
16 export OUTPUT_FOLDER=ETE_$$
17
18 VARIABLEFILES="-V /share/config/vm_properties.py -V /share/config/integration_robot_properties.py -V /share/config/integration_preload_parameters.py"
19 VARIABLES="-v GLOBAL_BUILD_NUMBER:$$"
20
21 POD=$(kubectl --namespace $NAMESPACE get pods | sed 's/ .*//'| grep robot)
22 kubectl --namespace $NAMESPACE exec ${POD} -- ${ETEHOME}/runTags.sh ${VARIABLEFILES} ${VARIABLES} -d /share/logs/${OUTPUT_FOLDER} ${TAGS} --display 88