1 # Copyright © 2018 Amdocs, Bell Canada
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
18 # Run the testsuite for the passed tag. Valid tags are ete, health, closedloop, instantiate
19 # Please clean up logs when you are done...
20 # Note: Do not run multiple concurrent ete.sh as the --display is not parameterized and tests will collide
22 if [ "$1" == "" ] || [ "$2" == "" ]; then
23 echo "Usage: ete-k8s.sh [namespace] [ health | ete | closedloop | instantiate | distribute ]"
30 POD=$(kubectl --namespace $NAMESPACE get pods | sed 's/ .*//'| grep robot)
34 export ETEHOME=/var/opt/OpenECOMP_ETE
35 export GLOBAL_BUILD_NUMBER=$(kubectl --namespace $NAMESPACE exec ${POD} -- bash -c "ls -1q /share/logs/ | wc -l")
36 export OUTPUT_FOLDER=ETE_$(printf %04d $GLOBAL_BUILD_NUMBER)_$2
38 #export OUTPUT_FOLDER=ETE_$$
40 VARIABLEFILES="-V /share/config/vm_properties.py -V /share/config/integration_robot_properties.py -V /share/config/integration_preload_parameters.py"
41 VARIABLES="-v GLOBAL_BUILD_NUMBER:$$"
43 kubectl --namespace $NAMESPACE exec ${POD} -- ${ETEHOME}/runTags.sh ${VARIABLEFILES} ${VARIABLES} -d /share/logs/${OUTPUT_FOLDER} ${TAGS} --display 88