Merge "Correct mispell words in comments"

This commit is contained in:
Jenkins 2016-05-09 10:35:16 +00:00 committed by Gerrit Code Review
commit 87e64c4af4
8 changed files with 11 additions and 11 deletions

@ -49,7 +49,7 @@ class HostsAdminTestJSON(base.BaseV2ComputeAdminTest):
@test.idempotent_id('c6ddbadb-c94e-4500-b12f-8ffc43843ff8') @test.idempotent_id('c6ddbadb-c94e-4500-b12f-8ffc43843ff8')
def test_list_hosts_with_nonexistent_zone(self): def test_list_hosts_with_nonexistent_zone(self):
# If send the request with a nonexistent zone, the request will be # 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'] hosts = self.client.list_hosts(zone='xxx')['hosts']
self.assertEqual(0, len(hosts)) self.assertEqual(0, len(hosts))

@ -185,7 +185,7 @@ class QuotaClassesAdminTestJSON(base.BaseV2ComputeAdminTest):
# increment all of the values for updating the default quota class # increment all of the values for updating the default quota class
for quota, default in six.iteritems(body): for quota, default in six.iteritems(body):
# NOTE(sdague): we need to increment a lot, otherwise # 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. # to a very small number which causes issues.
body[quota] = default + 100 body[quota] = default + 100
LOG.debug("update limits for the default quota class set") LOG.debug("update limits for the default quota class set")

@ -27,7 +27,7 @@ class VolumesTestJSON(base.BaseV2ComputeTest):
# ensure that the backing file for the volume group that Nova uses # ensure that the backing file for the volume group that Nova uses
# has space for at least 3 1G volumes! # has space for at least 3 1G volumes!
# If you are running a Devstack environment, ensure that the # 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 @classmethod
def skip_checks(cls): def skip_checks(cls):

@ -219,9 +219,9 @@ class PreProvisionedCredentialProvider(cred_provider.CredentialProvider):
else: else:
hashes = self.hash_dict['creds'].keys() hashes = self.hash_dict['creds'].keys()
# NOTE(mtreinish): admin is a special case because of the increased # NOTE(mtreinish): admin is a special case because of the increased
# privlege set which could potentially cause issues on tests where that # privilege set which could potentially cause issues on tests where
# is not expected. So unless the admin role isn't specified do not # that is not expected. So unless the admin role isn't specified do
# allocate admin. # not allocate admin.
admin_hashes = self.hash_dict['roles'].get(self.admin_role, admin_hashes = self.hash_dict['roles'].get(self.admin_role,
None) None)
if ((not roles or self.admin_role not in roles) and if ((not roles or self.admin_role not in roles) and

@ -48,7 +48,7 @@ def debug(msg, *args, **kwargs):
def find_skips(start): 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 Returns a list of tuples (method, bug) that represent
test methods that have been decorated to skip because of test methods that have been decorated to skip because of

@ -39,7 +39,7 @@ def rand_uuid_hex():
def rand_name(name='', prefix=None): 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 name: The name that you want to include
:param str prefix: The prefix 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(): 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-<random number>.com'. :return: a random url. The format is 'https://url-<random number>.com'.
(e.g. 'https://url-154876201.com') (e.g. 'https://url-154876201.com')

@ -648,7 +648,7 @@ class ScenarioTest(tempest.test.BaseTestCase):
""" """
if CONF.validation.connect_method == 'floating': if CONF.validation.connect_method == 'floating':
# The tests calling this method don't have a floating IP # 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. # method is creating the floating IP there.
return self.create_floating_ip(server)['ip'] return self.create_floating_ip(server)['ip']
elif CONF.validation.connect_method == 'fixed': elif CONF.validation.connect_method == 'fixed':

@ -76,7 +76,7 @@ class DeletableResource(AttributeDict):
"""Waits for a network resource to reach a status """Waits for a network resource to reach a status
@param fetch: the callable to be used to query the resource 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 @param status: the status that the resource has to reach
@type status: String @type status: String
""" """