bug-fix: fix neutron quota setting 47/49347/3
authorYang Yu <Gabriel.yuyang@huawei.com>
Wed, 20 Dec 2017 09:03:39 +0000 (17:03 +0800)
committerYang Yu <Gabriel.yuyang@huawei.com>
Thu, 21 Dec 2017 03:32:50 +0000 (11:32 +0800)
JIRA: BOTTLENECK-215

also fix the bug for type error: converted string

Change-Id: Ic56b5ab5c49d8fdbcf49ba4571c2286d5f7bc422
Signed-off-by: Yang Yu <Gabriel.yuyang@huawei.com>
testsuites/posca/testcase_dashboard/posca_stress_ping.py
testsuites/posca/testcase_dashboard/posca_vnf_scale_out.py
testsuites/posca/testcase_dashboard/system_bandwidth.py
testsuites/run_testsuite.py
utils/env_prepare/quota_prepare.py

index 7a5a8fb..64ce383 100644 (file)
@@ -32,7 +32,7 @@ def dashboard_send_data(runner_config, test_data):
                    doc_type=test_data["testcase"],
                    body=test_data["data_body"])
     if res['created'] == "False":
-        LOG.error("date send to kibana have errors ", test_data["data_body"])
+        LOG.error("date send to kibana have errors %s", test_data["data_body"])
 
 
 def posca_stress_ping(runner_config):
index 7c894b8..6720b7f 100755 (executable)
@@ -31,5 +31,5 @@ def dashboard_send_data(runner_config, test_data):
                        doc_type="vnf_scale_out",
                        body=i)
         if res['created'] == "False":
-            LOG.error("date send to kibana have errors ",
+            LOG.error("date send to kibana have errors %s",
                       test_data["data_body"])
index 4501dee..5479b67 100755 (executable)
@@ -31,7 +31,7 @@ def dashboard_send_data(runner_config, test_data):
                    doc_type=test_data["testcase"],
                    body=test_data["data_body"])
     if res['created'] == "False":
-        LOG.error("date send to kibana have errors ", test_data["data_body"])
+        LOG.error("date send to kibana have errors %s", test_data["data_body"])
 
 
 def dashboard_system_bandwidth(runner_config):
index e727668..2e82b20 100644 (file)
@@ -110,7 +110,7 @@ def testsuite_run(test_level, test_name, REPORT="False"):
         try:
             posca_testcase_run(tester_parser[0], testcase, config[testcase])
         except Exception, e:
-            LOG.warning('e.message:\t', e.message)
+            LOG.warning('e.message:\t%s', e.message)
         stop_date = datetime.datetime.now()
         LOG.info("End of %s testcase in POSCA testsuite", testcase)
         criteria = "FAIL"
index 2401595..267e70a 100644 (file)
@@ -22,7 +22,9 @@ neutron_quota = {"subnet": -1,
                  "subnetpool": -1,
                  "router": -1,
                  "port": -1,
-                 "security_group": -1}
+                 "security_group": -1,
+                 "security_group_rule": -1,
+                 "rbac_policy": -1}
 
 nova_quota = {"ram": -1,
               "cores": -1,