From 0892cb258a9126d0fe40bf5ee8ba4cb7fd7ab9b2 Mon Sep 17 00:00:00 2001 From: zhufl Date: Fri, 6 May 2016 14:46:00 +0800 Subject: [PATCH] Correct mispell words in comments 1) test_list_hosts_with_nonexistent_zone "and no hosts will be retured", "retured" 2) test_update_default_quotas "that we go from -1 (unlimitted)", "unlimitted" ... and so on Change-Id: I185a792e03f78d34dff4a923d0f34902470497ce Closes-Bug: #1578930 --- tempest/api/compute/admin/test_hosts.py | 2 +- tempest/api/compute/admin/test_quotas.py | 2 +- tempest/api/compute/volumes/test_volumes_list.py | 2 +- tempest/common/preprov_creds.py | 6 +++--- tempest/lib/cmd/skip_tracker.py | 2 +- tempest/lib/common/utils/data_utils.py | 4 ++-- tempest/scenario/manager.py | 2 +- tempest/scenario/network_resources.py | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tempest/api/compute/admin/test_hosts.py b/tempest/api/compute/admin/test_hosts.py index f6ea3a4e32..a9e9644e68 100644 --- a/tempest/api/compute/admin/test_hosts.py +++ b/tempest/api/compute/admin/test_hosts.py @@ -49,7 +49,7 @@ class HostsAdminTestJSON(base.BaseV2ComputeAdminTest): @test.idempotent_id('c6ddbadb-c94e-4500-b12f-8ffc43843ff8') def test_list_hosts_with_nonexistent_zone(self): # If send the request with a nonexistent zone, the request will be - # successful and no hosts will be retured + # successful and no hosts will be returned hosts = self.client.list_hosts(zone='xxx')['hosts'] self.assertEqual(0, len(hosts)) diff --git a/tempest/api/compute/admin/test_quotas.py b/tempest/api/compute/admin/test_quotas.py index 2907e26085..b1f0755cb6 100644 --- a/tempest/api/compute/admin/test_quotas.py +++ b/tempest/api/compute/admin/test_quotas.py @@ -185,7 +185,7 @@ class QuotaClassesAdminTestJSON(base.BaseV2ComputeAdminTest): # increment all of the values for updating the default quota class for quota, default in six.iteritems(body): # NOTE(sdague): we need to increment a lot, otherwise - # there is a real chance that we go from -1 (unlimitted) + # there is a real chance that we go from -1 (unlimited) # to a very small number which causes issues. body[quota] = default + 100 LOG.debug("update limits for the default quota class set") diff --git a/tempest/api/compute/volumes/test_volumes_list.py b/tempest/api/compute/volumes/test_volumes_list.py index 990e42994a..f709c91120 100644 --- a/tempest/api/compute/volumes/test_volumes_list.py +++ b/tempest/api/compute/volumes/test_volumes_list.py @@ -27,7 +27,7 @@ class VolumesTestJSON(base.BaseV2ComputeTest): # ensure that the backing file for the volume group that Nova uses # has space for at least 3 1G volumes! # If you are running a Devstack environment, ensure that the - # VOLUME_BACKING_FILE_SIZE is atleast 4G in your localrc + # VOLUME_BACKING_FILE_SIZE is at least 4G in your localrc @classmethod def skip_checks(cls): diff --git a/tempest/common/preprov_creds.py b/tempest/common/preprov_creds.py index f3df3870bd..51f723b106 100644 --- a/tempest/common/preprov_creds.py +++ b/tempest/common/preprov_creds.py @@ -219,9 +219,9 @@ class PreProvisionedCredentialProvider(cred_provider.CredentialProvider): else: hashes = self.hash_dict['creds'].keys() # NOTE(mtreinish): admin is a special case because of the increased - # privlege set which could potentially cause issues on tests where that - # is not expected. So unless the admin role isn't specified do not - # allocate admin. + # privilege set which could potentially cause issues on tests where + # that is not expected. So unless the admin role isn't specified do + # not allocate admin. admin_hashes = self.hash_dict['roles'].get(self.admin_role, None) if ((not roles or self.admin_role not in roles) and diff --git a/tempest/lib/cmd/skip_tracker.py b/tempest/lib/cmd/skip_tracker.py index b7d6a24139..f35b14cb8c 100755 --- a/tempest/lib/cmd/skip_tracker.py +++ b/tempest/lib/cmd/skip_tracker.py @@ -48,7 +48,7 @@ def debug(msg, *args, **kwargs): def find_skips(start): - """Find the entire list of skiped tests. + """Find the entire list of skipped tests. Returns a list of tuples (method, bug) that represent test methods that have been decorated to skip because of diff --git a/tempest/lib/common/utils/data_utils.py b/tempest/lib/common/utils/data_utils.py index 7c124afa34..9605479623 100644 --- a/tempest/lib/common/utils/data_utils.py +++ b/tempest/lib/common/utils/data_utils.py @@ -39,7 +39,7 @@ def rand_uuid_hex(): def rand_name(name='', prefix=None): - """Generate a random name that inclues a random number + """Generate a random name that includes a random number :param str name: The name that you want to include :param str prefix: The prefix that you want to include @@ -81,7 +81,7 @@ def rand_password(length=15): def rand_url(): - """Generate a random url that inclues a random number + """Generate a random url that includes a random number :return: a random url. The format is 'https://url-.com'. (e.g. 'https://url-154876201.com') diff --git a/tempest/scenario/manager.py b/tempest/scenario/manager.py index 7d9885c629..956fe88942 100644 --- a/tempest/scenario/manager.py +++ b/tempest/scenario/manager.py @@ -648,7 +648,7 @@ class ScenarioTest(tempest.test.BaseTestCase): """ if CONF.validation.connect_method == 'floating': # The tests calling this method don't have a floating IP - # and can't make use of the validattion resources. So the + # and can't make use of the validation resources. So the # method is creating the floating IP there. return self.create_floating_ip(server)['ip'] elif CONF.validation.connect_method == 'fixed': diff --git a/tempest/scenario/network_resources.py b/tempest/scenario/network_resources.py index 329c54d9fc..667476f0fe 100644 --- a/tempest/scenario/network_resources.py +++ b/tempest/scenario/network_resources.py @@ -76,7 +76,7 @@ class DeletableResource(AttributeDict): """Waits for a network resource to reach a status @param fetch: the callable to be used to query the resource status - @type fecth: callable that takes no parameters and returns the resource + @type fetch: callable that takes no parameters and returns the resource @param status: the status that the resource has to reach @type status: String """