summaryrefslogtreecommitdiffstats
path: root/testsuites/posca/testcase_script
diff options
context:
space:
mode:
authorliyin <liyin11@huawei.com>2016-11-30 17:42:14 +0800
committerliyin <liyin11@huawei.com>2016-11-30 17:46:03 +0800
commit4d0b88875e3717e8c8db79cc8027f2fafdeddac8 (patch)
tree59fb15e5cddbebbd8508386fc7b402d4c9e688c7 /testsuites/posca/testcase_script
parent01b29534a5c2b3533bb97cde8120016481d7b3cb (diff)
posca test suite support influxDB container
JIRA: BOTTLENECK-110 This patch support bottlenecks testsuites posca support use yardstick rest api to pull InfluxDB container. the yardstick use this container to store its test result. Change-Id: I6ad6b5d7a9748c385787567b3d6d1dfe4cee167f Signed-off-by: liyin <liyin11@huawei.com>
Diffstat (limited to 'testsuites/posca/testcase_script')
-rw-r--r--testsuites/posca/testcase_script/common_script.py9
-rw-r--r--testsuites/posca/testcase_script/posca_factor_system_bandwidth.py1
2 files changed, 10 insertions, 0 deletions
diff --git a/testsuites/posca/testcase_script/common_script.py b/testsuites/posca/testcase_script/common_script.py
index 9234d938..6d5c8932 100644
--- a/testsuites/posca/testcase_script/common_script.py
+++ b/testsuites/posca/testcase_script/common_script.py
@@ -120,3 +120,12 @@ def posca_send_data(con_dic, test_config, file_config):
data_reply.update(test_config)
posca_output_result(file_config, data_reply)
return data_reply
+
+
+def posca_create_incluxdb(con_dic):
+ base_url = "http://%s/yardstick/env/action" % (con_dic['test_ip'])
+ test_dict = {
+ "action":"createInfluxDBContainer",
+ }
+ reponse = requests.post(
+ base_url, data=json.dumps(test_dict), headers=headers)
diff --git a/testsuites/posca/testcase_script/posca_factor_system_bandwidth.py b/testsuites/posca/testcase_script/posca_factor_system_bandwidth.py
index 63192023..74bea8ff 100644
--- a/testsuites/posca/testcase_script/posca_factor_system_bandwidth.py
+++ b/testsuites/posca/testcase_script/posca_factor_system_bandwidth.py
@@ -128,6 +128,7 @@ def main():
starttime = datetime.datetime.now()
config = ConfigParser.ConfigParser()
con_dic = common_script.posca_config_read(testcase_cfg, con_str, config)
+ common_script.posca_create_incluxdb(con_dic)
posca_env_check()
posca_run(con_dic)
endtime = datetime.datetime.now()