blob: 71e2027e4a89d24692d923ff0e0ef356756a583a [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
Helen Chen2d722902018-04-12 18:57:14 -07009 echo "Usage: ete-k8s.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