onap on kubernetes source files
[oom.git] / kubernetes / config / docker / init / src / config / 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" == "" ];then
9    echo "Usage: ete.sh [ health | ete | closedloop | instantiate ]"
10    exit
11 fi
12
13 export TAGS="-i $1"
14 export ETEHOME=/var/opt/OpenECOMP_ETE
15 export OUTPUT_FOLDER=ETE_$$
16
17 VARIABLEFILES="-V /share/config/vm_properties.py -V /share/config/integration_robot_properties.py -V /share/config/integration_preload_parameters.py"
18 VARIABLES="-v GLOBAL_BUILD_NUMBER:$$"
19
20 #docker exec openecompete_container ${ETEHOME}/runTags.sh ${VARIABLEFILES} ${VARIABLES} -d /share/logs/${OUTPUT_FOLDER} ${TAGS} --display 88
21
22 POD=$(kubectl --namespace onap-robot get pods | sed 's/ .*//'| grep robot)
23 kubectl --namespace onap-robot exec ${POD} -- ${ETEHOME}/runTags.sh ${VARIABLEFILES} ${VARIABLES} -d ${ETEHOME}/html/logs/ete/${OUTPUT_FOLDER} ${TAGS} --display 88