diff options
author | Konrad Bańka <k.banka@samsung.com> | 2021-06-07 23:22:35 +0200 |
---|---|---|
committer | Konrad Bańka <k.banka@samsung.com> | 2021-06-08 00:11:59 +0200 |
commit | 7bb8f80782362ea241affbbd9ce0f45b4639db8a (patch) | |
tree | e76bf552066f95fc766f4d2669c3398b2842f5eb /heat/vFW_CNF_CDS | |
parent | 532cfff8eaad73781cbb410064cd3b4bda5e3095 (diff) |
[vFW_CNF_CDS] Improve logging and fix tests typo
Issue-ID: INT-1899
Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: I6f5fb411d395a83e3cc47ab1c089ffaa6bc64da5
Diffstat (limited to 'heat/vFW_CNF_CDS')
-rw-r--r-- | heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/K8sHealthCheck.kt | 16 | ||||
-rw-r--r-- | heat/vFW_CNF_CDS/templates/helm/vfw/templates/tests/ping.yaml | 2 |
2 files changed, 15 insertions, 3 deletions
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" , |