bugfix: serviceha do not provide result to influxdb 89/19089/1
authorrexlee8776 <limingjiang@huawei.com>
Fri, 19 Aug 2016 17:04:31 +0000 (17:04 +0000)
committerrexlee8776 <limingjiang@huawei.com>
Fri, 19 Aug 2016 17:04:31 +0000 (17:04 +0000)
JIRA: YARDSTICK-320

Change-Id: I94cdc2cc9f4f356484d49916d2c67bac61e38967
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
yardstick/benchmark/scenarios/availability/serviceha.py

index aee94ee..10f2c4f 100755 (executable)
@@ -66,6 +66,10 @@ class ServiceHA(base.Scenario):
         LOG.info("monitor stop!")
 
         sla_pass = self.monitorMgr.verify_SLA()
+        if sla_pass:
+            result['sla_pass'] = 1
+        else:
+            result['sla_pass'] = 0
         assert sla_pass is True, "the test cases is not pass the SLA"
 
         return