From: Konrad Bańka Date: Mon, 7 Jun 2021 21:22:35 +0000 (+0200) Subject: [vFW_CNF_CDS] Improve logging and fix tests typo X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;ds=sidebyside;h=refs%2Fchanges%2F29%2F121729%2F3;p=demo.git [vFW_CNF_CDS] Improve logging and fix tests typo Issue-ID: INT-1899 Signed-off-by: Konrad Bańka Change-Id: I6f5fb411d395a83e3cc47ab1c089ffaa6bc64da5 --- diff --git a/heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/K8sHealthCheck.kt b/heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/K8sHealthCheck.kt index 6c45b4e9..68d83e03 100644 --- a/heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/K8sHealthCheck.kt +++ b/heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/K8sHealthCheck.kt @@ -95,8 +95,20 @@ open class K8sHealthCheck : AbstractScriptComponentFunction() { } jobs.joinAll() } - log.info("Get statuses finished:") - log.info("$statuses") + var success = true + statuses?.forEach { it -> + if (it.value != "Succeeded") { + success = false + } + } + log.info("---") + if (success) { + log.info("Healthcheck finished successfully") + } else { + log.info("Healthcheck finished with failure") + } + log.info("Detailed results: $statuses") + log.info("---") return statuses } diff --git a/heat/vFW_CNF_CDS/templates/helm/vfw/templates/tests/ping.yaml b/heat/vFW_CNF_CDS/templates/helm/vfw/templates/tests/ping.yaml index 37b41832..70c40c7d 100644 --- a/heat/vFW_CNF_CDS/templates/helm/vfw/templates/tests/ping.yaml +++ b/heat/vFW_CNF_CDS/templates/helm/vfw/templates/tests/ping.yaml @@ -29,7 +29,7 @@ spec: "name": {{ .Values.int_private1_net_id | quote }}, "interface": "eth1" , "defaultGateway": "false" - } + }, { "name": {{ .Values.int_private2_net_id | quote }}, "interface": "eth2" ,