summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Freeman <bf1936@att.com>2019-04-10 14:51:59 -0500
committerBrian Freeman <bf1936@att.com>2019-04-10 14:52:10 -0500
commit01d503abd2e7aa7a4bcce5c54b13e89f6e442883 (patch)
treed59d4b75977eef3e330ee6e0ffeee162cc14a76b
parentc014e9208017bb712665fd70ee1f60f0ac519f99 (diff)
Add helm project tags and cleanup
eteHelm-k8s.sh included in testsuite for testing Issue-ID: INT-992 Change-Id: I1f0ca13ecf223076ba5088827b49132b18ac110e Signed-off-by: Brian Freeman <bf1936@att.com>
-rw-r--r--docker/Dockerfile3
-rw-r--r--eteHelm-k8s.sh51
-rw-r--r--robot/testsuites/health-check.robot162
3 files changed, 114 insertions, 102 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index c88818dd..46409cdb 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -32,7 +32,8 @@ RUN apt-get update \
x11-utils \
x11-xserver-utils \
xvfb \
- xxd
+ xxd \
+ vim
RUN pip install robotframework==3.0.4 \
diff --git a/eteHelm-k8s.sh b/eteHelm-k8s.sh
new file mode 100644
index 00000000..f63c98ee
--- /dev/null
+++ b/eteHelm-k8s.sh
@@ -0,0 +1,51 @@
+# Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
+#
+# 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
+
+#
+# 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" == "" ] ; then
+ echo "Usage: eteHelm-k8s.sh namespace "
+ echo " list projects via helm list and runs health-check with those tags except dev and dev-consul "
+ exit
+fi
+
+set -x
+
+export NAMESPACE="$1"
+
+POD=$(kubectl --namespace $NAMESPACE get pods | sed 's/ .*//'| grep robot)
+
+PROJECTS=$(helm list | cut -d ' ' -f 1 | grep "-" | grep -v consul )
+
+TAGS=""
+for project in $PROJECTS ;
+do
+TAGS="$TAGS -i $project"
+done
+
+
+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_helmlist
+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"
+VARIABLES="-v GLOBAL_BUILD_NUMBER:$$"
+
+kubectl --namespace $NAMESPACE exec ${POD} -- ${ETEHOME}/runTags.sh ${VARIABLEFILES} ${VARIABLES} -d /share/logs/${OUTPUT_FOLDER} ${TAGS} --display $DISPLAY_NUM
diff --git a/robot/testsuites/health-check.robot b/robot/testsuites/health-check.robot
index dda2fbc4..a5f2ee1f 100644
--- a/robot/testsuites/health-check.robot
+++ b/robot/testsuites/health-check.robot
@@ -32,43 +32,43 @@ Resource ../resources/holmes_interface.robot
*** Test Cases ***
Basic A&AI Health Check
- [Tags] health core
+ [Tags] health core dev-aai
Run A&AI Health Check
Basic AAF Health Check
- [Tags] health small
+ [Tags] health small dev-aaf
Run AAF Health Check
-Basic AAF SMS Health Check
+Basic AAF SMS Health Check dev-aaf
[Tags] health small
Run SMS Health Check
Basic APPC Health Check
- [Tags] health small
+ [Tags] health small dev-appc
Run APPC Health Check
Basic CLI Health Check
- [Tags] health small
+ [Tags] health small dev-cli
Run CLI Health Check
Basic CLAMP Health Check
- [Tags] health medium
+ [Tags] health medium dev-clamp
Run CLAMP Health Check
Basic DCAE Health Check
- [Tags] health medium
+ [Tags] health medium dev-dcae
Run DCAE Health Check
Basic DMAAP Data Router Health Check
- [Tags] health datarouter
+ [Tags] health datarouter dev-dmaap
Run DR Health Check
Basic DMAAP Message Router Health Check
- [Tags] health core
+ [Tags] health core dev-dmaap
Run MR Health Check
Basic DMAAP Message Router PubSub Health Check
- [Tags] healthmr
+ [Tags] healthmr dev-dmaap
[Timeout] 30
Run MR PubSub Health Check
@@ -77,200 +77,200 @@ Basic External API NBI Health Check
Run NBI Health Check
Basic Log Elasticsearch Health Check
- [Tags] health small oom
+ [Tags] health small oom dev-log
Run Log Elasticsearch Health Check
Basic Log Kibana Health Check
- [Tags] health small oom
+ [Tags] health small oom dev-log
Run Log Kibana Health Check
Basic Log Logstash Health Check
- [Tags] health small oom
+ [Tags] health small oom dev-log
Run Log Logstash Health Check
Basic Microservice Bus Health Check
- [Tags] health small
+ [Tags] health small dev-msb
Run MSB Health Check
Basic Multicloud API Health Check
- [Tags] health multicloud small
+ [Tags] health multicloud small dev-multicloud
Run MSB Get Request /api/multicloud/v0/swagger.json
Basic Multicloud-ocata API Health Check
- [Tags] health multicloud small
+ [Tags] health multicloud small dev-multicloud
Run MSB Get Request /api/multicloud-ocata/v0/swagger.json
Basic Multicloud-pike API Health Check
- [Tags] health multicloud small
+ [Tags] health multicloud small dev-multicloud
Run MSB Get Request /api/multicloud-pike/v0/swagger.json
Basic Multicloud-starlingx API Health Check
- [Tags] health multicloud
+ [Tags] health multicloud dev-multicloud
Run MSB Get Request /api/multicloud-starlingx/v0/swagger.json
Basic Multicloud-titanium_cloud API Health Check
- [Tags] health multicloud
+ [Tags] health multicloud dev-multicloud
Run MSB Get Request /api/multicloud-titaniumcloud/v1/swagger.json
Basic Multicloud-vio API Health Check
- [Tags] health multicloud
+ [Tags] health multicloud dev-multicloud
Run MSB Get Request /api/multicloud-vio/v0/swagger.json
Basic MUSIC Health Check
- [Tags] health music
+ [Tags] health music dev-common
Run MUSIC Health Check
Basic MUSIC Cassa Check
- [Tags] health music
+ [Tags] health music dev-common
Run MUSIC Cassandra Connection Check
Basic OOF-Homing Health Check
- [Tags] health medium
+ [Tags] health medium dev-oof
Run OOF-Homing Health Check
Basic OOF-SNIRO Health Check
- [Tags] health medium
+ [Tags] health medium dev-oof
Run OOF-SNIRO Health Check
Basic OOF-CMSO Health Check
- [Tags] health medium
+ [Tags] health medium dev-oof
Run OOF-CMSO Health Check
Basic Policy Health Check
- [Tags] health medium
+ [Tags] health medium dev-policy
Run Policy Health Check
Basic Pomba AAI-context-builder Health Check
- [Tags] health oom
+ [Tags] health oom dev-pomba
Run Pomba Aai Context Builder Health Check
Basic Pomba SDC-context-builder Health Check
- [Tags] health oom
+ [Tags] health oom dev-pomba
Run Pomba Sdc Context Builder Health Check
Basic Pomba Network-discovery-context-builder Health Check
- [Tags] health oom
+ [Tags] health oom dev-pomba
Run Pomba Network Discovery Context Builder Health Check
Basic Pomba Service-Decomposition Health Check
- [Tags] health oom
+ [Tags] health oom dev-pomba
Run Pomba Service Decomposition Health Check
Basic Pomba Network-Discovery-MicroService Health Check
- [Tags] health oom
+ [Tags] health oom dev-pomba
Run Pomba Network Discovery MicroService Health Check
Basic Pomba Pomba-Kibana Health Check
- [Tags] health oom
+ [Tags] health oom dev-pomba
Run Pomba Kibana Health Check
Basic Pomba Elastic-Search Health Check
- [Tags] health oom
+ [Tags] health oom dev-pomba
Run Pomba Elastic Search Health Check
Basic Pomba Sdnc-Context-Builder Health Check
- [Tags] health oom
+ [Tags] health oom dev-pomba
Run Pomba Sdnc Context Builder Health Check
Basic Pomba Context-Aggregator Health Check
- [Tags] health oom
+ [Tags] health oom dev-pomba
Run Pomba Context Aggregator Health Check
Basic Portal Health Check
- [Tags] health core
+ [Tags] health core dev-portal
Run Portal Health Check
Basic SDC Health Check
- [Tags] health core
+ [Tags] health core dev-sdc
Run ASDC Health Check
Basic SDNC Health Check
- [Tags] health core
+ [Tags] health core dev-sdnc
Run SDNGC Health Check
Basic SO Health Check
- [Tags] health core
+ [Tags] health core dev-so
Run SO Global Health Check
Basic UseCaseUI API Health Check
- [Tags] health api medium
+ [Tags] health api medium dev-uui
Run MSB Get Request /iui/usecaseui/
Basic VFC catalog API Health Check
- [Tags] health api
+ [Tags] health api dev-vfc
Run MSB Get Request /api/catalog/v1/swagger.json
Basic VFC emsdriver API Health Check
- [Tags] health 3rdparty
+ [Tags] health 3rdparty dev-vfc
Run MSB Get Request /api/emsdriver/v1/swagger.json
Basic VFC gvnfmdriver API Health Check
- [Tags] health 3rdparty
+ [Tags] health 3rdparty dev-vfc
Run MSB Get Request /api/gvnfmdriver/v1/swagger.json
Basic VFC huaweivnfmdriver API Health Check
- [Tags] health 3rdparty
+ [Tags] health 3rdparty dev-vfc
Run MSB Get Request /api/huaweivnfmdriver/v1/swagger.json
Basic VFC jujuvnfmdriver API Health Check
- [Tags] health 3rdparty
+ [Tags] health 3rdparty dev-vfc
Run MSB Get Request /api/jujuvnfmdriver/v1/swagger.json
Basic VFC multivimproxy API Health Check
- [Tags] health 3rdparty
+ [Tags] health 3rdparty dev-vfc
Run MSB Get Request /api/multivimproxy/v1/swagger.json
Basic VFC nokiavnfmdriver API Health Check
- [Tags] health 3rdparty
+ [Tags] health 3rdparty dev-vfc
Run MSB Get Request /api/nokiavnfmdriver/v1/swagger.json
Basic VFC nokiav2driver API Health Check
- [Tags] health 3rdparty
+ [Tags] health 3rdparty dev-vfc
Run MSB Get Request /api/NokiaSVNFM/v1/swagger.json
Basic VFC nslcm API Health Check
- [Tags] health api
+ [Tags] health api dev-vfc
Run MSB Get Request /api/nslcm/v1/swagger.json
Basic VFC resmgr API Health Check
- [Tags] health api
+ [Tags] health api dev-vfc
Run MSB Get Request /api/resmgr/v1/swagger.json
Basic VFC vnflcm API Health Check
- [Tags] health api
+ [Tags] health api dev-vfc
Run MSB Get Request /api/vnflcm/v1/swagger.json
Basic VFC vnfmgr API Health Check
- [Tags] health api
+ [Tags] health api dev-vfc
Run MSB Get Request /api/vnfmgr/v1/swagger.json
Basic VFC vnfres API Health Check
- [Tags] health api
+ [Tags] health api dev-vfc
Run MSB Get Request /api/vnfres/v1/swagger.json
Basic VFC workflow API Health Check
- [Tags] health api
+ [Tags] health api dev-vfc
Run MSB Get Request /api/workflow/v1/swagger.json
Basic VFC ztesdncdriver API Health Check
- [Tags] health 3rdparty
+ [Tags] health 3rdparty dev-vfc
Run MSB Get Request /api/ztesdncdriver/v1/swagger.json
Basic VFC ztevnfmdriver API Health Check
- [Tags] health 3rdparty
+ [Tags] health 3rdparty dev-vfc
Run MSB Get Request /api/ztevnfmdriver/v1/swagger.json
Basic VID Health Check
- [Tags] health small
+ [Tags] health small dev-vid
Run VID Health Check
Basic VNFSDK Health Check
- [Tags] health
+ [Tags] health dev-vnfsdk
Run VNFSDK Health Check
Health Distribution Test
[Tags] healthdist
- [Timeout] 600
+ [Timeout] 1200
Model Distribution For Directory vFW
Portal Login Tests
@@ -283,49 +283,9 @@ Portal Application Access Tests
Run Portal Application Access Tests
Basic Holmes Rule Management API Health Check
- [Tags] health medium
+ [Tags] health medium dev-dcae
Run Holmes Rule Mgmt Health Check
Basic Holmes Engine Management API Health Check
- [Tags] health medium
+ [Tags] health medium dev-dcae
Run Holmes Engine Mgmt Health Check
-
-#Basic VVP ICE CI Container (Automat Testing) Health Check
-# [Tags] oom
-# Run VVP ICE CI Container (Automat Testing) Health Check
-
-#Basic VVP CMS Health Check
-# [Tags] oom
-# Run VVP CMS Health Check
-
-#Basic VVP Engagement Manager Health Check
-# [Tags] oom
-# Run VVP Engagement Manager Health Check
-
-#Basic VVP Ext HA Proxy Health Check
-# [Tags] oom
-# Run VVP Ext HA Proxy Health Check
-
-#Basic VVP Gitlab Health Check
-# [Tags] oom
-# Run VVP Gitlab Health Check
-
-#Basic VVP Image Scanner Health Check
-# [Tags] oom
-# Run VVP Image Scanner Health Check
-
-#Basic VVP Int HA Proxy Health Check
-# [Tags] oom
-# Run VVP Int HA Proxy Health Check
-
-#Basic VVP Jenkins Health Check
-# [Tags] oom
-# Run VVP Jenkins Health Check
-
-#Basic VVP Postgresql Health Check
-# [Tags] oom
-# Run VVP Postgresql Health Check
-
-#Basic VVP Redis Health Check
-# [Tags] oom
-# Run VVP Redis Health Check