diff options
author | mrichomme <morgan.richomme@orange.com> | 2019-12-10 08:47:28 +0100 |
---|---|---|
committer | mrichomme <morgan.richomme@orange.com> | 2019-12-11 12:00:31 +0100 |
commit | 1f997a66f658ff11809f44f4630fc678eb091b83 (patch) | |
tree | d29e08adfc2a5d193310d9dfc640175b0cf76fc6 /infra-healthcheck/scripts/check_onap_helm.sh | |
parent | 78b4cdd2c5aa084ee6b8cc0f768187be907ae68c (diff) |
Move integration xtesting Dockerfile to ONAP
All the Dockerfiles and xtesting configurations were hosted in gitlab.com [1]
The goal of this patch is to host these assets in ONAP
A jenkins jjb shall be created to generated the docker and push them on the nexus
(today the built-in registry of ONAP was used)
These xtesting dockers are referencing integration categories [2] and integration
use cases [3]
These xtesting dockers shall also simplify the way to integrate new use cases in any
CI chain (jenkins or gitlab-ci based)
[1]: https://gitlab.com/Orange-OpenSource/lfn/onap/integration/xtesting
[2]: https://wiki.onap.org/pages/viewpage.action?pageId=71835330
[3]: http://testresults.opnfv.org/onap/api/v1/projects/integration/cases
Issue-ID: INT-1366
Signed-off-by: mrichomme <morgan.richomme@orange.com>
Change-Id: Iba0fc0b0415731a7a81ba0225a70ae16391dd129
Signed-off-by: mrichomme <morgan.richomme@orange.com>
Diffstat (limited to 'infra-healthcheck/scripts/check_onap_helm.sh')
-rw-r--r-- | infra-healthcheck/scripts/check_onap_helm.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/infra-healthcheck/scripts/check_onap_helm.sh b/infra-healthcheck/scripts/check_onap_helm.sh new file mode 100644 index 0000000..27f8094 --- /dev/null +++ b/infra-healthcheck/scripts/check_onap_helm.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +echo "------------------------------------------------------------------------" +echo "------------------- ONAP Check helm charts ----------------------------" +echo "------------------------------------------------------------------------" +code=0 +nb_charts=$(helm ls |awk {'print $1'}|grep -v NAME |wc -l) +nb_failed_charts=0 +list_failed_charts="[$(helm ls |grep -v DEPLOYED |grep -v NAME |awk '{print $1}')]" +nice_list=$(echo $list_failed_charts |sed -e "s/ /,/g") + +# List Helm chart and get their status +for i in $(helm ls |awk {'print $1'}|grep -v NAME);do + echo "Chart $i" + status=$(helm status $i |grep STATUS:) + echo ${status} + if [ "${status}" != "STATUS: DEPLOYED" ]; then + echo "Chart problem" + helm status $i -o yaml + code=1 + let "nb_failed_charts++" + fi + echo "--------------------------------------------------------------------" +done + +echo "------------------------------------------------" +echo "------- ONAP Helm tests ------------------------" +echo "------------------------------------------------" +echo ">>> Nb Helm Charts: ${nb_charts}" +echo ">>> Nb Failed Helm Charts: ${nb_failed_charts}" +echo ">>> List of Failed Helm Charts: ${nice_list}" +echo "------------------------------------------------" +echo "------------------------------------------------" +echo "------------------------------------------------" + +exit $code |