Merge "Bottlenecks testcase rebuild"
[bottlenecks.git] / testsuites / run_testsuite.py
index 7ec67ef..bc255c4 100644 (file)
@@ -61,7 +61,9 @@ def report(testcase, start_date, stop_date, criteria, details_doc):
     }
     results['details'] = {"test_results": details_doc}
 
-    target = "http://testresults.opnfv.org/test/api/v1/results"
+    target = os.environ.get(
+        'REPORTING_DB',
+        'http://testresults.opnfv.org/test/api/v1/results')
     timeout = 5
 
     try:
@@ -77,6 +79,7 @@ def report(testcase, start_date, stop_date, criteria, details_doc):
 
 
 def docker_env_prepare(config):
+    LOG.info("Begin to prepare docker environment")
     if 'contexts' in config.keys() and config["contexts"] is not None:
         context_config = config["contexts"]
         if 'yardstick' in context_config.keys() and \
@@ -89,6 +92,7 @@ def docker_env_prepare(config):
             conf_parser.Parser.convert_docker_env(config, "dashboard")
             LOG.debug('Waiting for ELK init')
             time.sleep(15)
+    LOG.info("Docker environment have prepared")
     return