Fix typos

Change-Id: Iaef3767dd9e7f43503dd8287b9b2345585bd87fb
This commit is contained in:
Rajesh Tailor 2022-09-20 21:29:12 +05:30
parent dc2cb6cdd5
commit 1f029ce578
6 changed files with 10 additions and 10 deletions

View File

@ -38,7 +38,7 @@ class SimpleReadOnlyNovaClientTest(base.ClientTestBase):
def test_admin_availability_zone_list(self):
self.assertIn("internal", self.nova('availability-zone-list'))
def test_admin_flavor_acces_list(self):
def test_admin_flavor_access_list(self):
self.assertRaises(exceptions.CommandFailed,
self.nova,
'flavor-access-list')
@ -73,7 +73,7 @@ class SimpleReadOnlyNovaClientTest(base.ClientTestBase):
def test_admin_server_group_list(self):
self.nova('server-group-list')
def test_admin_servce_list(self):
def test_admin_service_list(self):
self.nova('service-list')
def test_admin_usage(self):

View File

@ -21,7 +21,7 @@ class TestInstanceUsageAuditLogCLI(base.ClientTestBase):
COMPUTE_API_VERSION = '2.1'
# NOTE(takashin): By default, 'instance_usage_audit' is False in nova.
# So the instance usage audit log is not recoreded.
# So the instance usage audit log is not recorded.
# Therefore an empty result can be got.
# But it is tested here to call APIs and get responses normally.

View File

@ -44,7 +44,7 @@ class TestQuotaClassesNovaClient(base.ClientTestBase):
"""Returns a fake quota class name specific to this test class."""
return 'fake-class-%s' % self.COMPUTE_API_VERSION.replace('.', '-')
def _verify_qouta_class_show_output(self, output, expected_values):
def _verify_quota_class_show_output(self, output, expected_values):
# Assert that the expected key/value pairs are in the output table
for quota_name in self._included_resources:
# First make sure the resource is actually in expected quota.
@ -74,7 +74,7 @@ class TestQuotaClassesNovaClient(base.ClientTestBase):
}
output = self.nova('quota-class-show %s' %
self._get_quota_class_name())
self._verify_qouta_class_show_output(output, default_values)
self._verify_quota_class_show_output(output, default_values)
def test_quota_class_update(self):
"""Tests updating a fake quota class. The way this works in the API
@ -96,7 +96,7 @@ class TestQuotaClassesNovaClient(base.ClientTestBase):
self.nova("quota-class-update", params=" ".join(params))
# Assert the results using the quota-class-show output.
output = self.nova('quota-class-show %s' % class_name)
self._verify_qouta_class_show_output(output, expected_values)
self._verify_quota_class_show_output(output, expected_values)
# Assert that attempting to update resources that are blocked will
# result in a failure.
@ -115,7 +115,7 @@ class TestQuotasNovaClient2_50(TestQuotaClassesNovaClient):
# The 2.50 microversion added the server_groups and server_group_members
# to the response, and filtered out floating_ips, fixed_ips,
# security_groups and security_group_members, similar to the 2.36
# microversion in the os-qouta-sets API.
# microversion in the os-quota-sets API.
_included_resources = ['instances', 'cores', 'ram', 'metadata_items',
'injected_files', 'injected_file_content_bytes',
'injected_file_path_bytes', 'key_pairs',

View File

@ -1218,7 +1218,7 @@ class FakeSessionClient(base_client.SessionClient):
"deleted": False,
"created_at": "2014-04-19T02:16:44.000000",
"updated_at": "2014-04-19T10:12:3.000000",
"figerprint": "FAKE_KEYPAIR",
"fingerprint": "FAKE_KEYPAIR",
"deleted_at": None,
"id": 4}}
]})

View File

@ -21,7 +21,7 @@ from novaclient import base
# NOTE(takashin): The os-agents APIs have been removed
# in https://review.opendev.org/c/openstack/nova/+/749309 .
# But the following API bindings remains as ther are
# But the following API bindings remains as there are
# because the python-openstackclient depends on them.

View File

@ -1429,7 +1429,7 @@ class ServerManager(base.BootingManagerWithFind):
Often a cheaper call then getting all the details for a server.
:param server: The :class:`Server` (or its ID) for which
the IP adresses are to be returned
the IP addresses are to be returned
:returns: An instance of novaclient.base.DictWithMeta
"""
resp, body = self.api.client.get("/servers/%s/ips" %