summaryrefslogtreecommitdiffstats
path: root/ete-k8s2.sh
diff options
context:
space:
mode:
authorBrian Freeman <bf1936@att.com>2019-04-17 13:46:53 -0500
committerBrian Freeman <bf1936@att.com>2019-04-17 16:21:05 -0500
commit9d85d0b33ade6b633e6654593b5d5da9e5a75536 (patch)
tree2fd85a79cc22bfa847a80f447f634fdf5d9d813c /ete-k8s2.sh
parente12b626ab2141e59d74314dc24713b295dac9d53 (diff)
Fixes for RegionThree and Instantiate Direct
Issue-ID: INT-1028 Change-Id: I2ffb571da6af9d16077b5d085fa9ae5611209865 Signed-off-by: Brian Freeman <bf1936@att.com>
Diffstat (limited to 'ete-k8s2.sh')
-rw-r--r--ete-k8s2.sh63
1 files changed, 63 insertions, 0 deletions
diff --git a/ete-k8s2.sh b/ete-k8s2.sh
new file mode 100644
index 00000000..2a9bc7c6
--- /dev/null
+++ b/ete-k8s2.sh
@@ -0,0 +1,63 @@
+# Copyright © 2018 Amdocs, Bell Canada
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#!/bin/bash
+
+#################################################################
+#################################################################
+#################################################################
+#
+# Example script that uses second openstack tenant for VNFs
+# Put modified vm_properties2.py and integration_preload_parameter2.py
+# in /tmp
+# ./ete-k8s2.sh onap <tag>
+#
+#################################################################
+#################################################################
+#################################################################
+#################################################################
+
+#
+# Run the testsuite for the passed tag. Valid tags are ete, health, closedloop, instantiate
+# Please clean up logs when you are done...
+# Note: Do not run multiple concurrent ete.sh as the --display is not parameterized and tests will collide
+#
+if [ "$1" == "" ] || [ "$2" == "" ]; then
+ echo "Usage: ete-k8s.sh [namespace] [ health | healthdist | distribute | instantiate | instantiateVFWCL | instantiateDemoVFWCL | | portal ]"
+ exit
+fi
+
+set -x
+
+export NAMESPACE="$1"
+
+POD=$(kubectl --namespace $NAMESPACE get pods | sed 's/ .*//'| grep robot)
+
+
+TAGS="-i $2"
+
+if [ "$3" ]; then
+ VARIABLES="-v $3"
+fi
+
+ETEHOME=/var/opt/ONAP
+export GLOBAL_BUILD_NUMBER=$(kubectl --namespace $NAMESPACE exec ${POD} -- bash -c "ls -1q /share/logs/ | wc -l")
+OUTPUT_FOLDER=$(printf %04d $GLOBAL_BUILD_NUMBER)_ete_$2
+DISPLAY_NUM=$(($GLOBAL_BUILD_NUMBER + 90))
+
+#VARIABLEFILES="-V /share/config/vm_properties.py -V /share/config/integration_robot_properties.py -V /share/config/integration_preload_parameters.py"
+VARIABLEFILES="-V /tmp/vm_properties2.py -V /share/config/integration_robot_properties.py -V /tmp/integration_preload_parameters2.py"
+VARIABLES="$VARIABLES -v GLOBAL_BUILD_NUMBER:$$"
+
+kubectl --namespace $NAMESPACE exec ${POD} -- ${ETEHOME}/runTags.sh ${VARIABLEFILES} ${VARIABLES} -d /share/logs/${OUTPUT_FOLDER} ${TAGS} --display $DISPLAY_NUM