blob: 26eedc97f7abccbb4512cc9208868ccc4b61cc07 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001#!/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#
8if [ "$1" == "" ];then
Mandeep Khindac00c6872017-10-26 17:46:43 +00009 echo "Usage: ete.sh [ health | ete | closedloop | instantiate | distribute ]"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040010 exit
11fi
12
13export TAGS="-i $1"
14export ETEHOME=/var/opt/OpenECOMP_ETE
15export OUTPUT_FOLDER=ETE_$$
16
17VARIABLEFILES="-V /share/config/vm_properties.py -V /share/config/integration_robot_properties.py -V /share/config/integration_preload_parameters.py"
18VARIABLES="-v GLOBAL_BUILD_NUMBER:$$"
19
20#docker exec openecompete_container ${ETEHOME}/runTags.sh ${VARIABLEFILES} ${VARIABLES} -d /share/logs/${OUTPUT_FOLDER} ${TAGS} --display 88
21
22POD=$(kubectl --namespace onap-robot get pods | sed 's/ .*//'| grep robot)
23kubectl --namespace onap-robot exec ${POD} -- ${ETEHOME}/runTags.sh ${VARIABLEFILES} ${VARIABLES} -d ${ETEHOME}/html/logs/ete/${OUTPUT_FOLDER} ${TAGS} --display 88