mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Fix spelling mistakes (comments only) (#25564)
Original Author : klemens <ka7@github.com> Taking over previous PR as per https://github.com/ansible/ansible/pull/23644#issuecomment-307334525 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
committed by
John R Barker
parent
460d932aa8
commit
b89cb95609
@@ -21,7 +21,7 @@ galaxy_info:
|
||||
# Optionally specify the branch Galaxy will use when accessing the GitHub
|
||||
# repo for this role. During role install, if no tags are available,
|
||||
# Galaxy will use this branch. During import Galaxy will access files on
|
||||
# this branch. If travis integration is cofigured, only notification for this
|
||||
# this branch. If travis integration is configured, only notification for this
|
||||
# branch will be accepted. Otherwise, in all cases, the repo's default branch
|
||||
# (usually master) will be used.
|
||||
#github_branch:
|
||||
|
||||
@@ -152,7 +152,7 @@ class GCPAuthTestCase(unittest.TestCase):
|
||||
module = mock.MagicMock()
|
||||
with mock.patch("ansible.module_utils.gcp.open",
|
||||
mock.mock_open(read_data='foobar'), create=True) as m:
|
||||
# pem condition, warning is surpressed with the return_value
|
||||
# pem condition, warning is suppressed with the return_value
|
||||
credentials_file = '/foopath/pem.pem'
|
||||
is_valid = _validate_credentials_file(module,
|
||||
credentials_file=credentials_file,
|
||||
|
||||
@@ -173,7 +173,7 @@ class TestVaultEditor(unittest.TestCase):
|
||||
src_file_contents = to_bytes("some info in a file\nyup.")
|
||||
src_file_path = self._create_file(self._test_dir, 'src_file', content=src_file_contents)
|
||||
|
||||
# editor invocation doesnt change anything
|
||||
# editor invocation doesn't change anything
|
||||
def faux_editor(editor_args):
|
||||
self._faux_editor(editor_args, src_file_contents)
|
||||
|
||||
|
||||
@@ -286,7 +286,7 @@ class TestAnsibleLoaderVault(unittest.TestCase, YamlTestUtils):
|
||||
self.assertTrue('some string' != vault_string)
|
||||
self.assertNotEquals('some string', vault_string)
|
||||
|
||||
# Note this is a compare of the str/unicode of these, they are diferent types
|
||||
# Note this is a compare of the str/unicode of these, they are different types
|
||||
# so we want to test self == other, and other == self etc
|
||||
self.assertEquals(plaintext_var, vault_string)
|
||||
self.assertEquals(vault_string, plaintext_var)
|
||||
|
||||
@@ -151,7 +151,7 @@ class TestIncludeRole(unittest.TestCase):
|
||||
"""
|
||||
Test nested includes with default tasks and variables.
|
||||
|
||||
Variables from outer roles should be inherited, but overriden in inner
|
||||
Variables from outer roles should be inherited, but overridden in inner
|
||||
roles.
|
||||
"""
|
||||
|
||||
@@ -192,7 +192,7 @@ class TestIncludeRole(unittest.TestCase):
|
||||
"""
|
||||
Test nested includes with alternative tasks and variables.
|
||||
|
||||
Variables from outer roles should be inherited, but overriden in inner
|
||||
Variables from outer roles should be inherited, but overridden in inner
|
||||
roles.
|
||||
"""
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ class SynchronizeTester(object):
|
||||
fdata = f.read()
|
||||
test_meta = yaml.load(fdata)
|
||||
|
||||
# load inital play context vars
|
||||
# load initial play context vars
|
||||
if '_play_context' in test_meta:
|
||||
if test_meta['_play_context']:
|
||||
self.task.args = {}
|
||||
@@ -123,7 +123,7 @@ class SynchronizeTester(object):
|
||||
v = None
|
||||
setattr(self._play_context, k, v)
|
||||
|
||||
# load inital task context vars
|
||||
# load initial task context vars
|
||||
if '_task' in test_meta:
|
||||
if test_meta['_task']:
|
||||
self.task.args = {}
|
||||
@@ -133,14 +133,14 @@ class SynchronizeTester(object):
|
||||
v = None
|
||||
setattr(self.task, k, v)
|
||||
|
||||
# load inital task vars
|
||||
# load initial task vars
|
||||
if 'task_args' in test_meta:
|
||||
if test_meta['task_args']:
|
||||
self.task.args = {}
|
||||
for (k, v) in test_meta['task_args'].items():
|
||||
self.task.args[k] = v
|
||||
|
||||
# load inital task vars
|
||||
# load initial task vars
|
||||
invarspath = os.path.join(fixturepath, test_meta.get('fixtures', {}).get('taskvars_in', 'taskvars_in.json'))
|
||||
with open(invarspath, 'rb') as f:
|
||||
fdata = f.read()
|
||||
@@ -163,7 +163,7 @@ class SynchronizeTester(object):
|
||||
for (k, v) in test_meta['hostvars'].items():
|
||||
in_task_vars['hostvars'][k] = v
|
||||
|
||||
# initalize and run the module
|
||||
# initialize and run the module
|
||||
SAM = ActionModule(self.task, self.connection, self._play_context,
|
||||
self.loader, self.templar, self.shared_loader_obj)
|
||||
SAM._execute_module = self._execute_module
|
||||
|
||||
@@ -206,7 +206,7 @@ class TestVariableManager(unittest.TestCase):
|
||||
res = v.get_vars(play=play1, task=task)
|
||||
self.assertEqual(res['default_var'], 'default_var_from_defaults_only1')
|
||||
|
||||
# next we assert the precendence of inventory variables
|
||||
# next we assert the precedence of inventory variables
|
||||
v.set_inventory(inv1)
|
||||
h1 = inv1.get_host('host1')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user