diff options
Diffstat (limited to 'smoketests/base.py')
-rw-r--r-- | smoketests/base.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/smoketests/base.py b/smoketests/base.py index 69222878b..f6cec3168 100644 --- a/smoketests/base.py +++ b/smoketests/base.py @@ -63,7 +63,7 @@ class SmokeTestCase(unittest.TestCase): return status == 0 def wait_for_running(self, instance, tries=60, wait=1): - """Wait for instance to be running""" + """Wait for instance to be running.""" for x in xrange(tries): instance.update() if instance.state.startswith('running'): @@ -73,7 +73,7 @@ class SmokeTestCase(unittest.TestCase): return False def wait_for_deleted(self, instance, tries=60, wait=1): - """Wait for instance to be deleted""" + """Wait for instance to be deleted.""" for x in xrange(tries): try: #NOTE(dprince): raises exception when instance id disappears @@ -85,7 +85,7 @@ class SmokeTestCase(unittest.TestCase): return False def wait_for_ping(self, ip, command="ping", tries=120): - """Wait for ip to be pingable""" + """Wait for ip to be pingable.""" for x in xrange(tries): if self.can_ping(ip, command): return True @@ -93,7 +93,7 @@ class SmokeTestCase(unittest.TestCase): return False def wait_for_ssh(self, ip, key_name, tries=30, wait=5): - """Wait for ip to be sshable""" + """Wait for ip to be sshable.""" for x in xrange(tries): try: conn = self.connect_ssh(ip, key_name) @@ -141,9 +141,7 @@ class SmokeTestCase(unittest.TestCase): **kwargs) def split_clc_url(self, clc_url): - """ - Splits a cloud controller endpoint url. - """ + """Splits a cloud controller endpoint url.""" parts = httplib.urlsplit(clc_url) is_secure = parts.scheme == 'https' ip, port = parts.netloc.split(':') |