1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/tests/unit/plugins/modules
patchback[bot] 39c39e3de1
[PR #7273/8a9b9827 backport][stable-7] Add ignore_spaces option to ini_file to ignore spacing changes (#7279)
Add `ignore_spaces` option to `ini_file` to ignore spacing changes (#7273)

* Add `ignore_spaces` option to `ini_file` to ignore spacing changes

Add a new `ignore_spaces` option to the `ini_file` module which, if
true, prevents the module from changing a line in a file if the only
thing that would change by doing so is whitespace before or after the
`=`.

Also add test cases for this new functionality. There were previously
no tests for `ini_file` at all, and this doesn't attempt to fix that,
but it does add tests to ensure that the new behavior implemented here
as well as the old behavior in the affected code are correct.

Fixes #7202.

* Add changelog fragment

* pep8 / pylint

* remove unused import

* fix typo in comment in integration test file

* Add symlink tests to main.yml

It appears that #6546 added symlink tests but neglected to add them to
main.yml so they weren't being executed.

* ini_file symlink tests; create output files in correct location

* Add integration tests for ini_file ignore_spaces

* PR feedback

(cherry picked from commit 8a9b98273d)

Co-authored-by: Jonathan Kamens <jik@kamens.us>
2023-09-17 14:36:05 +02:00
..
interfaces_file Interfaces file spaces fix (#6131) 2023-03-09 20:09:13 +01:00
conftest.py Make sure that plugins/module_utils/deps.py is cleaned up before every test (#6459) 2023-04-29 21:46:12 +02:00
FakeAnsibleModule.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
FakeXenAPI.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
gitlab.py Add Gitlab group runners support (#3935) 2023-03-25 08:23:20 +01:00
helper.py [PR #7266/e7ff0acd backport][stable-7] refactor test helper context class (#7270) 2023-09-15 23:11:31 +02:00
hpe_test_utils.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
linode_conftest.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
oneview_conftest.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
oneview_module_loader.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
rhn_conftest.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_alerta_customer.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_apache2_module.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_apk.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_archive.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_bitbucket_access_key.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_bitbucket_pipeline_key_pair.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_bitbucket_pipeline_known_host.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_bitbucket_pipeline_variable.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_campfire.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_circonus_annotation.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_cpanm.py [PR #7247/6e3a56ff backport][stable-7] encapsulate test function in the helper class (#7255) 2023-09-13 07:58:02 +02:00
test_cpanm.yaml [PR #7248/17c76872 backport][stable-7] DRY: using YAML anchors and aliases (#7256) 2023-09-13 07:57:30 +02:00
test_datadog_downtime.py.disabled Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_dconf.py dconf: Check for changes properly despite style of quotes used by user (#6049) 2023-03-04 20:51:50 +01:00
test_discord.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_dnsimple.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_dnsimple_info.py dnsimple_info: remove extraneous importorskip from test (#6439) 2023-04-28 10:05:24 +02:00
test_gconftool2.py [PR #7247/6e3a56ff backport][stable-7] encapsulate test function in the helper class (#7255) 2023-09-13 07:58:02 +02:00
test_gconftool2.yaml [PR #7248/17c76872 backport][stable-7] DRY: using YAML anchors and aliases (#7256) 2023-09-13 07:57:30 +02:00
test_gconftool2_info.py [PR #7247/6e3a56ff backport][stable-7] encapsulate test function in the helper class (#7255) 2023-09-13 07:58:02 +02:00
test_gconftool2_info.yaml [PR #7248/17c76872 backport][stable-7] DRY: using YAML anchors and aliases (#7256) 2023-09-13 07:57:30 +02:00
test_gem.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_github_repo.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_gitlab_deploy_key.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_gitlab_group.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_gitlab_hook.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_gitlab_project.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_gitlab_protected_branch.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_gitlab_runner.py Add Gitlab group runners support (#3935) 2023-03-25 08:23:20 +01:00
test_gitlab_user.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_homebrew.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_homebrew_cask.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_icinga2_feature.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_ini_file.py [PR #7273/8a9b9827 backport][stable-7] Add ignore_spaces option to ini_file to ignore spacing changes (#7279) 2023-09-17 14:36:05 +02:00
test_ipa_otpconfig.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_ipa_otptoken.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_ipa_pwpolicy.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_ipbase.py Add ipbase_info module (#6477) 2023-05-09 19:48:29 +02:00
test_java_keystore.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_jenkins_build.py [PR #7204/afeeb89a backport][stable-7] Improvements to the jenkins_build module and new jenkins_build_info module (#7234) 2023-09-11 06:00:57 +02:00
test_jenkins_build_info.py [PR #7204/afeeb89a backport][stable-7] Improvements to the jenkins_build module and new jenkins_build_info module (#7234) 2023-09-11 06:00:57 +02:00
test_jenkins_plugin.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_keycloak_authentication.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_keycloak_authentication_required_actions.py [PR #6732/cd48e818 backport][stable-7] Keycloak: Authentication required actions management (#6754) 2023-06-20 19:48:18 +02:00
test_keycloak_client.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_keycloak_client_rolemapping.py [PR #6687/e06a0e22 backport][stable-7] keycloak_client_rolemapping.py: add support for subgroups (#6723) 2023-06-18 20:25:34 +02:00
test_keycloak_clientscope.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_keycloak_identity_provider.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_keycloak_realm.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_keycloak_realm_info.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_keycloak_role.py [PR #6469/9395df1c backport][stable-7] Inspq keycloak role composites (#6693) 2023-06-15 08:42:10 +02:00
test_keycloak_user.py [PR #7085/a8809401 backport][stable-7] Avoid direct type comparisons (#7086) 2023-08-11 10:23:58 +02:00
test_keycloak_user_federation.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_linode.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_linode_v4.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_lvg_rename.py [PR #6721/48711406 backport][stable-7] lvg_rename: New module to support VG renaming (#6733) 2023-06-19 16:43:39 +02:00
test_lxca_cmms.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_lxca_nodes.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_macports.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_maven_artifact.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_modprobe.py add persistent option for modprobe (#5424) 2023-02-26 14:58:58 +01:00
test_monit.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_nmcli.py [PR #6902/cc8e2d67 backport][stable-7] Added support in nmcli for ipv4.dns-options (#6926) 2023-07-13 22:42:05 +02:00
test_npm.py [PR #6989/5988b9ac backport][stable-7] npm: changed to cmdrunner (#7096) 2023-08-12 10:26:38 +02:00
test_ocapi_command.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_ocapi_info.py Remote management modules for OCAPI-based devices. (#5754) 2023-01-22 17:10:36 +01:00
test_one_vm.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_oneview_datacenter_info.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_oneview_enclosure_info.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_oneview_ethernet_network.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_oneview_ethernet_network_info.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_oneview_fc_network.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_oneview_fc_network_info.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_oneview_fcoe_network.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_oneview_fcoe_network_info.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_oneview_logical_interconnect_group.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_oneview_logical_interconnect_group_info.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_oneview_network_set.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_oneview_network_set_info.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_oneview_san_manager.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_oneview_san_manager_info.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_opkg.py [PR #7247/6e3a56ff backport][stable-7] encapsulate test function in the helper class (#7255) 2023-09-13 07:58:02 +02:00
test_opkg.yaml [PR #7248/17c76872 backport][stable-7] DRY: using YAML anchors and aliases (#7256) 2023-09-13 07:57:30 +02:00
test_pacman.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_pacman_key.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_pagerduty.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_pagerduty_alert.py [PR #7183/6012d262 backport][stable-7] feat: pagerduty_alert: Adds in use of v2 api provided (#7229) 2023-09-10 09:00:28 +02:00
test_pagerduty_change.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_pamd.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_parted.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_pkgin.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_pmem.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_pritunl_org.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_pritunl_org_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_pritunl_user.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_pritunl_user_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_proxmox_kvm.py [PR #6981/f9448574 backport][stable-7] [proxmox_kvm] Don't create VM if name is used without vmid (#6992) 2023-07-23 21:48:36 +02:00
test_proxmox_snap.py [PR #6757/2d6e369d backport][stable-7] [proxmox_template] Fix error while uploading big ISO to Proxmox VE cluster (#6831) 2023-07-02 22:25:14 +02:00
test_proxmox_tasks_info.py [PR #6757/2d6e369d backport][stable-7] [proxmox_template] Fix error while uploading big ISO to Proxmox VE cluster (#6831) 2023-07-02 22:25:14 +02:00
test_proxmox_template.py [PR #6757/2d6e369d backport][stable-7] [proxmox_template] Fix error while uploading big ISO to Proxmox VE cluster (#6831) 2023-07-02 22:25:14 +02:00
test_proxmox_vm_info.py [PR #7049/2089769c backport][stable-7] [proxmox_vm_info] Return empty list when requested VM doesn't exist (#7079) 2023-08-09 16:54:35 +02:00
test_puppet.py [PR #7247/6e3a56ff backport][stable-7] encapsulate test function in the helper class (#7255) 2023-09-13 07:58:02 +02:00
test_puppet.yaml [PR #7248/17c76872 backport][stable-7] DRY: using YAML anchors and aliases (#7256) 2023-09-13 07:57:30 +02:00
test_redhat_subscription.py [PR #6658/42f7531f backport][stable-7] redhat_subscription: refactor of internal Rhsm class (#6667) 2023-06-10 21:10:56 +02:00
test_redis_data.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_redis_data_incr.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_redis_data_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_redis_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_rhn_channel.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_rhn_register.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_rhsm_release.py [PR #6669/74ffb295 backport][stable-7] rhsm_release: improve the execution of subscription-manager (#6674) 2023-06-11 12:05:42 +02:00
test_rhsm_repository.py [PR #6783/867704dd backport][stable-7] rhsm_repository: refactor handling of subscription-manager (#6830) 2023-07-02 22:01:53 +02:00
test_rpm_ostree_pkg.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_scaleway_compute_private_network.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_scaleway_private_network.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_slack.py Replace missing default favicon with docs.ansible.com favicon (#5928) 2023-02-03 11:02:14 +01:00
test_snap.py [PR #7247/6e3a56ff backport][stable-7] encapsulate test function in the helper class (#7255) 2023-09-13 07:58:02 +02:00
test_solaris_zone.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_ss_3par_cpg.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_statsd.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_sysupgrade.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_terraform.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_ufw.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_wdc_redfish_command.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_wdc_redfish_info.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_xcc_redfish_command.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_xenserver_guest_info.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_xenserver_guest_powerstate.py Remove unnecessary test imports (#5978) 2023-02-12 21:05:08 +01:00
test_xfconf.py [PR #7247/6e3a56ff backport][stable-7] encapsulate test function in the helper class (#7255) 2023-09-13 07:58:02 +02:00
test_xfconf.yaml [PR #7248/17c76872 backport][stable-7] DRY: using YAML anchors and aliases (#7256) 2023-09-13 07:57:30 +02:00
test_xfconf_info.py [PR #7247/6e3a56ff backport][stable-7] encapsulate test function in the helper class (#7255) 2023-09-13 07:58:02 +02:00
test_xfconf_info.yaml [PR #7248/17c76872 backport][stable-7] DRY: using YAML anchors and aliases (#7256) 2023-09-13 07:57:30 +02:00
utils.py Fix more copyright lines, add more default copyright lines (#5095) 2022-08-08 14:24:58 +02:00
xenserver_common.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
xenserver_conftest.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00