aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorboucherv <valentin.boucher@orange.com>2016-06-20 10:52:21 +0200
committerboucherv <valentin.boucher@orange.com>2016-06-20 10:57:08 +0200
commitd81354f6b3ccdd8186465a5c7d455e8fcfb0012c (patch)
treea5900fbad51224530f6e7423f71a68f1e1f8f063
parent61cd76b7c893e36aaf135dd963ee40fffe34362f (diff)
bugfix: name format and testcase start time
Change-Id: I8929ccc69c09dc70eee92695eab1ebfa77dcf283 Signed-off-by: boucherv <valentin.boucher@orange.com>
-rw-r--r--testcases/vIMS/vIMS.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/testcases/vIMS/vIMS.py b/testcases/vIMS/vIMS.py
index a35eba98..20a61158 100644
--- a/testcases/vIMS/vIMS.py
+++ b/testcases/vIMS/vIMS.py
@@ -26,8 +26,8 @@ import glanceclient.client as glclient
import novaclient.client as nvclient
from neutronclient.v2_0 import client as ntclient
-from clearwater import *
-from orchestrator import *
+from clearwater import clearwater
+from orchestrator import orchestrator
import functest.utils.functest_logger as ft_logger
import functest.utils.functest_utils as functest_utils
@@ -89,6 +89,7 @@ CW_REQUIERMENTS = functest_yaml.get("vIMS").get(
CFY_DEPLOYMENT_DURATION = 0
CW_DEPLOYMENT_DURATION = 0
+TESTCASE_START_TIME = time.time()
RESULTS = {'orchestrator': {'duration': 0, 'result': ''},
'vIMS': {'duration': 0, 'result': ''},
'sig_test': {'duration': 0, 'result': ''}}
@@ -117,14 +118,13 @@ def step_failure(step_name, error_msg):
set_result(step_name, 0, error_msg)
status = "FAIL"
# in case of failure starting and stoping time are not correct
- start_time = time.time()
- stop_time = start_time
+ stop_time = time.time()
if step_name == "sig_test":
status = "PASS"
functest_utils.push_results_to_db("functest",
"vims",
None,
- start_time,
+ TESTCASE_START_TIME,
stop_time,
status,
RESULTS)
@@ -244,9 +244,9 @@ def test_clearwater():
logger.error("Unable to set test status")
functest_utils.push_results_to_db("functest",
- "vIMS",
+ "vims",
logger,
- start_time_ts,
+ TESTCASE_START_TIME,
end_time_ts,
status,
RESULTS)