aboutsummaryrefslogtreecommitdiffstats
path: root/heat/vFW_CNF_CDS/templates/cba
diff options
context:
space:
mode:
authorKonrad Bańka <k.banka@samsung.com>2021-06-07 23:22:35 +0200
committerKonrad Banka <k.banka@samsung.com>2021-06-07 22:19:32 +0000
commit4215ab1d423564876079695762d33d8adc8fb01e (patch)
tree89e097ef174d0c51a9c0bbd6551c5f5dfc62a581 /heat/vFW_CNF_CDS/templates/cba
parent316a5e5a3cb74d4299e6a6c9a32648aead37e98a (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 (cherry picked from commit 7bb8f80782362ea241affbbd9ce0f45b4639db8a)
Diffstat (limited to 'heat/vFW_CNF_CDS/templates/cba')
-rw-r--r--heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/K8sHealthCheck.kt16
1 files changed, 14 insertions, 2 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
}