[PR #7439/2b628260 backport][stable-7] Fix more typos (#7445)

Fix more typos (#7439)

* Fix more typos in plugins/.

* Fix typos in tests/unit/.

* Fix typos in tests/integration/.

* Fix more typos.

Co-authored-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>

---------

Co-authored-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>
(cherry picked from commit 2b62826082)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2023-10-29 20:26:39 +01:00 committed by GitHub
parent 985fbb321b
commit 2ed7e96372
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
62 changed files with 99 additions and 99 deletions

View file

@ -90,7 +90,7 @@
size: -2G
state: present
- name: Resizing /mksysb to 100G (no enought space)
- name: Resizing /mksysb to 100G (not enough space)
aix_filesystem:
filesystem: /mksysb
size: +100G

View file

@ -73,7 +73,7 @@
state: absent
force: true
- name: reenable autoindex
- name: re-enable autoindex
community.general.apache2_module:
name: autoindex
state: present

View file

@ -1,4 +1,4 @@
# Copyright (c) Ansible Projec
# Copyright (c) Ansible Project
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later

View file

@ -161,7 +161,7 @@
- result['role']['ServiceIdentities'][0]['ServiceName'] == "web"
- result['role']['ServiceIdentities'][0]['Datacenters'][0] == "dc1"
- result['role']['Policies'] is not defined
- result['role']['NodeIdentities'] == [] # in check mode the cleared field is returned as an emtpy array
- result['role']['NodeIdentities'] == [] # in check mode the cleared field is returned as an empty array
- name: Update the role with service identity to remove the service identities
consul_role:

View file

@ -11,7 +11,7 @@ tested_filesystems:
# - XFS: 20Mo
# - Btrfs: 150Mo (50Mo when "--metadata single" is used and 100Mb when on newer Fedora versions)
# - f2fs:
# - 1.2.0 requires at leat 116Mo
# - 1.2.0 requires at least 116Mo
# - 1.7.0 requires at least 30Mo
# - 1.10.0 requires at least 38Mo
# - resizefs asserts when initial fs is smaller than 60Mo and seems to require 1.10.0

View file

@ -109,7 +109,7 @@
- current_gems.stdout is not search('gist\s+\([0-9.]+\)')
when: ansible_user_uid == 0
# Check cutom gem directory
# Check custom gem directory
- name: Install gem in a custom directory with incorrect options
gem:
name: gist

View file

@ -59,7 +59,7 @@
failed_when: customized_result.msg.find("does not exist") == -1
# Test: filenames with whitespaces
# We report error: the user should be reponsible for the it
# We report error: the user should be responsible for the it
- name: "Testcase: filenames with whitespaces"
community.general.iso_customize:
src_iso: "{{ test_dir }}/test.iso"

View file

@ -181,7 +181,7 @@
- result_x509_changed is changed
- name: |
We also want to make sure that the status doesnt change if we import the same cert
We also want to make sure that the status does not change if we import the same cert
community.general.java_cert:
cert_alias: test_cert
cert_path: "{{ test_cert2_path }}"

View file

@ -20,7 +20,7 @@ docker run --name mykeycloak -p 8080:8080 -e KC_HTTP_RELATIVE_PATH=/auth -e KEYC
This test suite can run against a fresh unconfigured server instance
(no preconfiguration required) and cleans up after itself (undoes all
its config changes) as long as it runs through completly. While its active
its config changes) as long as it runs through completely. While its active
it changes the server configuration in the following ways:
* creating, modifying and deleting some keycloak groups

View file

@ -20,7 +20,7 @@ docker run --name mykeycloak -p 8080:8080 -e KC_HTTP_RELATIVE_PATH=/auth -e KEYC
This test suite can run against a fresh unconfigured server instance
(no preconfiguration required) and cleans up after itself (undoes all
its config changes) as long as it runs through completly. While its active
its config changes) as long as it runs through completely. While its active
it changes the server configuration in the following ways:
* creating, modifying and deleting some keycloak groups

View file

@ -20,7 +20,7 @@ docker run --name mykeycloak -p 8080:8080 -e KC_HTTP_RELATIVE_PATH=/auth -e KEYC
This test suite can run against a fresh unconfigured server instance
(no preconfiguration required) and cleans up after itself (undoes all
its config changes) as long as it runs through completly. While its active
its config changes) as long as it runs through completely. While its active
it changes the server configuration in the following ways:
* creating, modifying and deleting some keycloak groups

View file

@ -20,7 +20,7 @@ docker run --name mykeycloak -p 8080:8080 -e KC_HTTP_RELATIVE_PATH=/auth -e KEYC
This test suite can run against a fresh unconfigured server instance
(no preconfiguration required) and cleans up after itself (undoes all
its config changes) as long as it runs through completly. While its active
its config changes) as long as it runs through completely. While its active
it changes the server configuration in the following ways:
* creating, modifying and deleting some keycloak groups

View file

@ -140,7 +140,7 @@
that:
- "'active' == '{{ item }}'"
- name: Deactive volume group in check mode
- name: Deactivate volume group in check mode
lvg:
state: inactive
vg: testvg

View file

@ -117,7 +117,7 @@
that:
- install_status.stat.exists == true
- name: Unistall Rested
- name: Uninstall Rested
mas:
id: 421879749
state: absent

View file

@ -9,7 +9,7 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
# ENVIRONENT PREPARACTION
# ENVIRONMENT PREPARACTION
- set_fact: test_number= 0

View file

@ -30,7 +30,7 @@
state: present
notify: Remove packages for yay-become
- name: Hack permssions for the remote_tmp_dir
- name: Hack permissions for the remote_tmp_dir
ansible.builtin.file:
path: "{{ remote_tmp_dir }}"
mode: '0777'

View file

@ -23,7 +23,7 @@
commercial_type: '{{ scaleway_commerial_type }}'
wait: true
- name: Get server informations of the first page
- name: Get server information of the first page
scaleway_server_info:
region: par1
query_parameters:
@ -37,7 +37,7 @@
that:
- first_page is success
- name: Get server informations of the second page
- name: Get server information of the second page
scaleway_server_info:
region: par1
query_parameters:

View file

@ -159,7 +159,7 @@
- cr_deletion_task is success
- cr_deletion_task is changed
- name: Delete container regitry (Confirmation)
- name: Delete container registry (Confirmation)
community.general.scaleway_container_registry:
state: absent
name: '{{ name }}'

View file

@ -8,7 +8,7 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
- name: Get image informations and register it in a variable
- name: Get image information and register it in a variable
scaleway_image_info:
region: par1
register: images
@ -22,7 +22,7 @@
that:
- images is success
- name: Get image informations from ams1 and register it in a variable
- name: Get image information from ams1 and register it in a variable
scaleway_image_info:
region: ams1
register: images_ams1

View file

@ -8,7 +8,7 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
- name: Get ip informations and register it in a variable
- name: Get ip information and register it in a variable
scaleway_ip_info:
region: par1
register: ips
@ -22,7 +22,7 @@
that:
- ips is success
- name: Get ip informations and register it in a variable
- name: Get ip information and register it in a variable
scaleway_ip_info:
region: ams1
register: ips_ams1

View file

@ -8,7 +8,7 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
- name: Get organization informations and register it in a variable
- name: Get organization information and register it in a variable
scaleway_organization_info:
register: organizations

View file

@ -8,7 +8,7 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
- name: Get security group informations and register it in a variable
- name: Get security group information and register it in a variable
scaleway_security_group_info:
region: par1
register: security_groups
@ -22,7 +22,7 @@
that:
- security_groups is success
- name: Get security group informations and register it in a variable (AMS1)
- name: Get security group information and register it in a variable (AMS1)
scaleway_security_group_info:
region: ams1
register: ams1_security_groups

View file

@ -8,7 +8,7 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
- name: Get server informations and register it in a variable
- name: Get server information and register it in a variable
scaleway_server_info:
region: par1
register: servers
@ -22,7 +22,7 @@
that:
- servers is success
- name: Get server informations and register it in a variable
- name: Get server information and register it in a variable
scaleway_server_info:
region: ams1
register: ams1_servers

View file

@ -8,7 +8,7 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
- name: Get snapshot informations and register it in a variable
- name: Get snapshot information and register it in a variable
scaleway_snapshot_info:
region: par1
register: snapshots
@ -22,7 +22,7 @@
that:
- snapshots is success
- name: Get snapshot informations and register it in a variable (AMS1)
- name: Get snapshot information and register it in a variable (AMS1)
scaleway_snapshot_info:
region: ams1
register: ams1_snapshots

View file

@ -8,7 +8,7 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
- name: Get volume informations and register it in a variable
- name: Get volume information and register it in a variable
scaleway_volume_info:
region: par1
register: volumes
@ -22,7 +22,7 @@
that:
- volumes is success
- name: Get volume informations and register it in a variable (AMS1)
- name: Get volume information and register it in a variable (AMS1)
scaleway_volume_info:
region: ams1
register: ams1_volumes

View file

@ -50,7 +50,7 @@
state: present
# Check if re-installing etcd3 is required
- name: Check if etcd3ctl exists for re-use.
- name: Check if etcd3ctl exists for reuse.
shell: "ETCDCTL_API=3 {{ etcd3_path }}/etcdctl --endpoints=localhost:2379 get foo"
args:
executable: /bin/bash

View file

@ -33,7 +33,7 @@
src: "{{ ssh_config_test }}"
register: slurp_ssh_config
- name: "Options - Verify that nothign was added to {{ ssh_config_test }} during change mode"
- name: "Options - Verify that nothing was added to {{ ssh_config_test }} during change mode"
assert:
that:
- "'options.example.com' not in slurp_ssh_config['content'] | b64decode"
@ -243,7 +243,7 @@
src: "{{ ssh_config_test }}"
register: slurp_ssh_config
- name: "Options - Verify that nothign was added to {{ ssh_config_test }} during change mode"
- name: "Options - Verify that nothing was added to {{ ssh_config_test }} during change mode"
assert:
that:
- "'options.example.com' not in slurp_ssh_config['content'] | b64decode"

View file

@ -63,5 +63,5 @@
loop_control:
index_var: provider_index
- name: Test Complex Varibles
- name: Test Complex Variables
ansible.builtin.include_tasks: complex_variables.yml

View file

@ -12,7 +12,7 @@ from ansible.plugins.loader import become_loader, get_shell_plugin
def call_become_plugin(task, var_options, cmd, executable=None):
"""Helper function to call become plugin simiarly on how Ansible itself handles this."""
"""Helper function to call become plugin similarly on how Ansible itself handles this."""
plugin = become_loader.get(task['become_method'])
plugin.set_options(task_keys=task, var_options=var_options)
shell = get_shell_plugin(executable=executable)

View file

@ -78,6 +78,6 @@ class TestLookupModule(unittest.TestCase):
@patch('ansible_collections.community.general.plugins.lookup.bitwarden_secrets_manager._bitwarden_secrets_manager', new=MockBitwardenSecretsManager())
def test_bitwarden_secrets_manager_no_match(self):
# Getting a nonexistant secret id throws exception
# Getting a nonexistent secret id throws exception
with self.assertRaises(AnsibleLookupError):
self.lookup.run(['nonexistant_id'], bws_access_token='123')

View file

@ -89,7 +89,7 @@ class TestDNSimple_Info(ModuleTestCase):
result = exc_info.exception.args[0]
# nothing should change
self.assertFalse(result['changed'])
# we should return at least one item with mathing domain
# we should return at least one item with matching domain
assert result['dnsimple_records_info'][0]['name'] == name
@with_httmock(records_resp)

View file

@ -69,7 +69,7 @@ class TestGem(ModuleTestCase):
assert result['msg'] == "install_dir requires user_install=false"
def test_passes_install_dir_to_gem(self):
# XXX: This test is extremely fragile, and makes assuptions about the module code, and how
# XXX: This test is extremely fragile, and makes assumptions about the module code, and how
# functions are run.
# If you start modifying the code of the module, you might need to modify what this
# test mocks. The only thing that matters is the assertion that this 'gem install' is

View file

@ -152,7 +152,7 @@ class TestUnloadModule(ModuleTestCase):
class TestModuleIsLoadedPersistently(ModuleTestCase):
def setUp(self):
if (sys.version_info[0] == 3 and sys.version_info[1] < 7) or (sys.version_info[0] == 2 and sys.version_info[1] < 7):
self.skipTest('open_mock doesnt support readline in earlier python versions')
self.skipTest("open_mock doesn't support readline in earlier python versions")
super(TestModuleIsLoadedPersistently, self).setUp()
@ -230,7 +230,7 @@ class TestModuleIsLoadedPersistently(ModuleTestCase):
class TestPermanentParams(ModuleTestCase):
def setUp(self):
if (sys.version_info[0] == 3 and sys.version_info[1] < 7) or (sys.version_info[0] == 2 and sys.version_info[1] < 7):
self.skipTest('open_mock doesnt support readline in earlier python versions')
self.skipTest("open_mock doesn't support readline in earlier python versions")
super(TestPermanentParams, self).setUp()
self.mock_get_bin_path = patch('ansible.module_utils.basic.AnsibleModule.get_bin_path')

View file

@ -54,9 +54,9 @@ class PagerDutyTest(unittest.TestCase):
def _assert_create_window_payload(self, module, url, headers, data=None, method=None):
payload = json.loads(data)
window_data = payload['maintenance_window']
self.assertTrue('start_time' in window_data, '"start_time" is requiered attribute')
self.assertTrue('end_time' in window_data, '"end_time" is requiered attribute')
self.assertTrue('services' in window_data, '"services" is requiered attribute')
self.assertTrue('start_time' in window_data, '"start_time" is required attribute')
self.assertTrue('end_time' in window_data, '"end_time" is required attribute')
self.assertTrue('services' in window_data, '"services" is required attribute')
return object(), {'status': 201}
def _assert_create_window_single_service(self, module, url, headers, data=None, method=None):

View file

@ -89,7 +89,7 @@ Enabled: %s
Enable the specified IDs.
'repo_ids' can be either a string or a list of strings representing
an ID (wilcard included).
an ID (wildcard included).
Returns the same object, so calls to this can be chained.
"""
@ -104,7 +104,7 @@ Enabled: %s
Disable the specified IDs.
'repo_ids' can be either a string or a list of strings representing
an ID (wilcard included).
an ID (wildcard included).
Returns the same object, so calls to this can be chained.
"""