[vFW_CNF_CDS] Improve logging and fix tests typo 29/121729/3
authorKonrad Bańka <k.banka@samsung.com>
Mon, 7 Jun 2021 21:22:35 +0000 (23:22 +0200)
committerKonrad Bańka <k.banka@samsung.com>
Mon, 7 Jun 2021 22:11:59 +0000 (00:11 +0200)
Issue-ID: INT-1899
Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: I6f5fb411d395a83e3cc47ab1c089ffaa6bc64da5

heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/K8sHealthCheck.kt
heat/vFW_CNF_CDS/templates/helm/vfw/templates/tests/ping.yaml

index 6c45b4e..68d83e0 100644 (file)
@@ -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
     }
 
index 37b4183..70c40c7 100644 (file)
@@ -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" ,