summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
fd66a04)
JIRA: BOTTLENECK-158
Change the path env to align with CI pipeline
Change-Id: Ib5a7799c3eb3e5ba9056aa738c4c3b15995e3c11
Signed-off-by: Yang Yu <Gabriel.yuyang@huawei.com>
"scenario": os.environ.get('DEPLOY_SCENARIO', 'unknown')
}
results['details'] = {"test_results": details_doc}
"scenario": os.environ.get('DEPLOY_SCENARIO', 'unknown')
}
results['details'] = {"test_results": details_doc}
+ 'BOTTLENECKS_DB_TARGET',
'http://testresults.opnfv.org/test/api/v1/results')
'http://testresults.opnfv.org/test/api/v1/results')
+ print ('Address of the target DB is: %s.' % target)
try:
LOG.debug('Test result : %s', jsonutils.dump_as_bytes(results))
res = requests.post(target,
try:
LOG.debug('Test result : %s', jsonutils.dump_as_bytes(results))
res = requests.post(target,
LOG.info("End of %s testcase in POSCA testsuite", testcase)
criteria = "FAIL"
if REPORT == "True":
LOG.info("End of %s testcase in POSCA testsuite", testcase)
criteria = "FAIL"
if REPORT == "True":
+ print ('Testing results are about to be sent to the target DB.')
details_doc = []
if os.path.exists(config[testcase]['out_file']):
with open(config[testcase]['out_file']) as details_result:
details_doc = []
if os.path.exists(config[testcase]['out_file']):
with open(config[testcase]['out_file']) as details_result:
if len(details_doc):
criteria = "PASS"
report(testcase, start_date, stop_date, criteria, details_doc)
if len(details_doc):
criteria = "PASS"
report(testcase, start_date, stop_date, criteria, details_doc)
+ else:
+ print ('Testing results have not been sent to the target DB.')