aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2016-01-28 15:48:17 +0100
committerjose.lausuch <jose.lausuch@ericsson.com>2016-01-28 15:48:17 +0100
commit87880013c9030fdacf477c0b977a8e06f9afbbdf (patch)
treed26e65cdb73fea9f465520ba7a7441d411c32b05
parent2e8ecc1b2b2e16a3dc8d9bf1689dfcbb96c3e391 (diff)
Small typos fixes in functest_utils.py
Change-Id: I9fdb1efe11ce62c460f380ba1087ed9fc83611ef Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
-rw-r--r--testcases/functest_utils.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/testcases/functest_utils.py b/testcases/functest_utils.py
index c548c899..da79c2c9 100644
--- a/testcases/functest_utils.py
+++ b/testcases/functest_utils.py
@@ -284,7 +284,7 @@ def create_neutron_router(neutron_client, name):
router = neutron_client.create_router(json_body)
return router['router']['id']
except Exception, e:
- print "Error [create_neutron_router(neutron_client, name)]:" % name, e
+ print "Error [create_neutron_router(neutron_client, '%s')]:" % name, e
return False
@@ -435,7 +435,7 @@ def update_sg_quota(neutron_client, tenant_id, sg_quota, sg_rule_quota):
return True
except Exception, e:
print "Error [update_sg_quota(neutron_client, '%s', '%s', "\
- "'%s')]:" %(tenant_id,sg_quota, sg_rule_quota), e
+ "'%s')]:" %(tenant_id, sg_quota, sg_rule_quota), e
return False
@@ -485,7 +485,7 @@ def create_glance_image(glance_client, image_name, file_path, public=True):
return image.id
except Exception, e:
print "Error [create_glance_image(glance_client, '%s', '%s', "\
- "'%s')]:" %(image_name,file_path, str(public)), e
+ "'%s')]:" %(image_name, file_path, str(public)), e
return False
@@ -494,7 +494,7 @@ def delete_glance_image(nova_client, image_id):
nova_client.images.delete(image_id)
return True
except Exception, e:
- print "Error [delete_glance_image(nova_client, image_id)]:" % image_id, e
+ print "Error [delete_glance_image(nova_client, '%s')]:" % image_id, e
return False
@@ -792,7 +792,8 @@ def push_results_to_db(db_url, case_name, logger, pod_name,
logger.debug(r)
return True
except Exception, e:
- print "Error []:", e
+ print "Error [push_results_to_db('%s', '%s', '%s', '%s', '%s')]:" \
+ % (db_url, case_name, pod_name, version, payload), e
return False
@@ -836,7 +837,7 @@ def getTestEnv(test, functest_yaml):
# if not defined in dependencies => no dependencies
config_test = ""
except Exception, e:
- print "Error []:", e
+ print "Error [getTestEnv]:", e
return config_test