blob: 9810ac236e64647caa7a758b83ad2edbe12224f1 [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#
BorislavG8bfc6cf2018-02-27 15:04:26 +00008if [ "$1" == "" ] || [ "$2" == "" ]; then
9 echo "Usage: ete.sh [namespace] [ health | ete | closedloop | instantiate | distribute ]"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040010 exit
11fi
12
BorislavG8bfc6cf2018-02-27 15:04:26 +000013export NAMESPACE="$1"
14export TAGS="-i $2"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040015export ETEHOME=/var/opt/OpenECOMP_ETE
16export OUTPUT_FOLDER=ETE_$$
17
18VARIABLEFILES="-V /share/config/vm_properties.py -V /share/config/integration_robot_properties.py -V /share/config/integration_preload_parameters.py"
19VARIABLES="-v GLOBAL_BUILD_NUMBER:$$"
20
BorislavG8bfc6cf2018-02-27 15:04:26 +000021POD=$(kubectl --namespace $NAMESPACE get pods | sed 's/ .*//'| grep robot)
22kubectl --namespace $NAMESPACE exec ${POD} -- ${ETEHOME}/runTags.sh ${VARIABLEFILES} ${VARIABLES} -d /share/logs/${OUTPUT_FOLDER} ${TAGS} --display 88