summaryrefslogtreecommitdiffstats
path: root/testsuites/posca/testcase_script/posca_feature_vnf_scale_out.py
diff options
context:
space:
mode:
authorliyin <liyin11@huawei.com>2018-03-07 03:47:28 +0000
committerAce Lee <liyin11@huawei.com>2018-03-12 02:21:54 +0000
commitadf6a02bae295455f584ebab762592dd57e2422c (patch)
tree04c01b98d18eed356e4adf542bbcde53b00cafde /testsuites/posca/testcase_script/posca_feature_vnf_scale_out.py
parent06db2e37272bb3a030c2b5f2e255ec6a61f17472 (diff)
bottlenecks offiline support
JIRA: BOTTLENECK-224 This patch for bottlenecks support offiline. By use some offiline image rather than yardstick env prepare. This will solve some problem happened in yardstick image builder. Change-Id: I62b6606570c2ea6ce365212c79777af01c47c9a6 Signed-off-by: liyin <liyin11@huawei.com>
Diffstat (limited to 'testsuites/posca/testcase_script/posca_feature_vnf_scale_out.py')
-rw-r--r--testsuites/posca/testcase_script/posca_feature_vnf_scale_out.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/testsuites/posca/testcase_script/posca_feature_vnf_scale_out.py b/testsuites/posca/testcase_script/posca_feature_vnf_scale_out.py
index 6d53515f..417cf2b9 100644
--- a/testsuites/posca/testcase_script/posca_feature_vnf_scale_out.py
+++ b/testsuites/posca/testcase_script/posca_feature_vnf_scale_out.py
@@ -46,12 +46,9 @@ def env_pre(test_config):
print(test_yardstick)
stack_prepare._prepare_env_daemon(test_yardstick)
quota_prepare.quota_env_prepare()
- cmd = ('yardstick env prepare')
LOG.info("yardstick environment prepare!")
- print docker_env.yardstick_info['container']
if(test_config["contexts"]['yardstick_envpre']):
- yardstick_container = docker_env.yardstick_info['container']
- stdout = docker_env.docker_exec_cmd(yardstick_container, cmd)
+ stdout = yardstick_task.yardstick_image_prepare()
LOG.debug(stdout)
@@ -99,16 +96,11 @@ def do_test(test_config, Use_Dashboard, context_conf):
elif data["status"] == 2:
LOG.error("yardstick error exit")
exit()
- # data = json.load(output)
save_data = config_to_result(test_config, data)
- print("^^^^^^^^^^^^^^^^^^^^^^^^^")
- print save_data
if Use_Dashboard is True:
print("use dashboard")
- # DashBoard.dashboard_send_data(context_conf, save_data)
- # return save_data["data_body"]
return save_data