bug fix: use FAIL/PASS as criteria for vping_userdata and rally_sanity 17/16117/1
authorMorgan Richomme <morgan.richomme@orange.com>
Wed, 29 Jun 2016 14:25:25 +0000 (16:25 +0200)
committerMorgan Richomme <morgan.richomme@orange.com>
Wed, 29 Jun 2016 14:25:25 +0000 (16:25 +0200)
Change-Id: Iadccae118bb2dc557bb590175c65022c1ed70605
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
testcases/OpenStack/rally/run_rally-cert.py
testcases/OpenStack/vPing/vPing_userdata.py

index 8afbcca..7839322 100755 (executable)
@@ -355,10 +355,10 @@ def run_task(test_name):
         json_data = json.load(json_file)
 
     """ parse JSON operation result """
-    status = "failed"
+    status = "FAIL"
     if task_succeed(json_results):
         logger.info('Test scenario: "{}" OK.'.format(test_name) + "\n")
-        status = "passed"
+        status = "PASS"
     else:
         logger.info('Test scenario: "{}" Failed.'.format(test_name) + "\n")
 
index ff7158e..cdc4119 100644 (file)
@@ -347,10 +347,10 @@ def main():
                 logger.debug("Pinging %s. Waiting for response..." % test_ip)
         sec += 1
 
-    test_status = "NOK"
+    test_status = "FAIL"
     if EXIT_CODE == 0:
         logger.info("vPing OK")
-        test_status = "OK"
+        test_status = "PASS"
     elif EXIT_CODE == -2:
         duration = 0
         logger.info("Userdata is not supported in nova boot. Aborting test...")