community.general/tests/unit/plugins/modules
Dexter 6bbd1dd7f5
pacemaker: add cluster maintenance mode checks (#10194)
* feat(maintenance): Add cluster maintenance mode checks for pacemaker

* bug(fix): Correct substring typo and unit test

This commit corrects a substring check for determining if the pacemaker
cluster is in maintenance mode. Additionally, unit test is corrected
with correct output from pacemaker when in maintenance mode.

* feat(maintenance): Add force argument for absent resources

This commit adds in --force argument for resources intended to be absent
within a cluster that is in maintenance mode. Without this argument, the
cluster will not attempt to remove the resource due to maintenance mode.
The resource will be declared as orphaned and exiting maintenance mode
will allow the cluster to remove the resource completely.

* refactor(review): Apply code review changes

This commit adds refactors to enhance code quality.

* doc(changelog): Add fragment for maintenance mode addition
2025-06-07 17:52:32 +02:00
..
interfaces_file Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
conftest.py Use more unit test utils from community.internal_test_tools (#9918) 2025-03-22 13:12:31 +01: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 gitlab_*_access_token: handle revoked field in group and project access tokens (#10196) 2025-06-06 06:16:54 +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 Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_alerta_customer.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_apache2_module.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_apk.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_archive.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_bitbucket_access_key.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_bitbucket_pipeline_key_pair.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_bitbucket_pipeline_known_host.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_bitbucket_pipeline_variable.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_bootc_manage.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_campfire.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_circonus_annotation.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_cpanm.py rename test helper (#9736) 2025-02-15 18:26:25 +13:00
test_cpanm.yaml test helper unit tests: reformat YAML files (#9664) 2025-02-01 23:16:03 +13:00
test_datadog_downtime.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01: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 Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_django_check.py rename test helper (#9736) 2025-02-15 18:26:25 +13:00
test_django_check.yaml test helper unit tests: reformat YAML files (#9664) 2025-02-01 23:16:03 +13:00
test_django_command.py rename test helper (#9736) 2025-02-15 18:26:25 +13:00
test_django_command.yaml test helper unit tests: reformat YAML files (#9664) 2025-02-01 23:16:03 +13:00
test_django_createcachetable.py rename test helper (#9736) 2025-02-15 18:26:25 +13:00
test_django_createcachetable.yaml test helper unit tests: reformat YAML files (#9664) 2025-02-01 23:16:03 +13:00
test_dnf_config_manager.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_dnsimple.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_dnsimple_info.py Use more unit test utils from community.internal_test_tools (#9918) 2025-03-22 13:12:31 +01:00
test_facter_facts.py rename test helper (#9736) 2025-02-15 18:26:25 +13:00
test_facter_facts.yaml test helper unit tests: reformat YAML files (#9664) 2025-02-01 23:16:03 +13:00
test_gconftool2.py rename test helper (#9736) 2025-02-15 18:26:25 +13:00
test_gconftool2.yaml test helper unit tests: reformat YAML files (#9664) 2025-02-01 23:16:03 +13:00
test_gconftool2_info.py rename test helper (#9736) 2025-02-15 18:26:25 +13:00
test_gconftool2_info.yaml test helper unit tests: reformat YAML files (#9664) 2025-02-01 23:16:03 +13:00
test_gem.py Use more unit test utils from community.internal_test_tools (#9918) 2025-03-22 13:12:31 +01:00
test_gio_mime.py rename test helper (#9736) 2025-02-15 18:26:25 +13:00
test_gio_mime.yaml test helper: add support for check and diff modes (#9666) 2025-02-02 02:17:58 +13:00
test_github_repo.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +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_group_access_token.py gitlab_*_access_token: handle revoked field in group and project access tokens (#10196) 2025-06-06 06:16:54 +02: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_project_access_token.py gitlab_*_access_token: handle revoked field in group and project access tokens (#10196) 2025-06-06 06:16:54 +02: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 Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_homebrew_cask.py homebrew_cask: Handle unusual brew version strings (#9881) 2025-03-15 08:04:06 +01:00
test_icinga2_feature.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_ini_file.py Add ignore_spaces option to ini_file to ignore spacing changes (#7273) 2023-09-17 13:22:22 +02:00
test_ipa_getkeytab.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_ipa_otpconfig.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_ipa_otptoken.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_ipa_pwpolicy.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_ipbase.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_java_keystore.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_jenkins_build.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_jenkins_build_info.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_jenkins_node.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_jenkins_plugin.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_keycloak_authentication.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_keycloak_authentication_required_actions.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_keycloak_client.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_keycloak_client_rolemapping.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_keycloak_clientscope.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_keycloak_component.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_keycloak_identity_provider.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_keycloak_realm.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_keycloak_realm_info.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_keycloak_realm_keys.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_keycloak_realm_keys_metadata_info.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_keycloak_role.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_keycloak_user.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_keycloak_user_federation.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_keycloak_userprofile.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_krb_ticket.py rename test helper (#9736) 2025-02-15 18:26:25 +13:00
test_krb_ticket.yaml test helper unit tests: reformat YAML files (#9664) 2025-02-01 23:16:03 +13:00
test_linode.py Use more unit test utils from community.internal_test_tools (#9918) 2025-03-22 13:12:31 +01:00
test_linode_v4.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_lvg_rename.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_lxca_cmms.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_lxca_nodes.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +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 Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_monit.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_nmcli.py nmcli: add autoconnect priority and retries (#10134) 2025-05-28 21:41:22 +02:00
test_nomad_token.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_npm.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_ocapi_command.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_ocapi_info.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +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 Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_oneview_ethernet_network.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_oneview_ethernet_network_info.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_oneview_fc_network.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_oneview_fc_network_info.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_oneview_fcoe_network.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_oneview_fcoe_network_info.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_oneview_logical_interconnect_group.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_oneview_logical_interconnect_group_info.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_oneview_network_set.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_oneview_network_set_info.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_oneview_san_manager.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_oneview_san_manager_info.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_opkg.py rename test helper (#9736) 2025-02-15 18:26:25 +13:00
test_opkg.yaml test helper unit tests: reformat YAML files (#9664) 2025-02-01 23:16:03 +13:00
test_pacemaker_resource.py add pacemaker_resource plugin (#9531) 2025-03-05 21:08:42 +01:00
test_pacemaker_resource.yaml pacemaker: add cluster maintenance mode checks (#10194) 2025-06-07 17:52:32 +02:00
test_pacman.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_pacman_key.py pacman_key: support checking for expired and untrusted keys (#9950) 2025-06-02 20:41:53 +02:00
test_pagerduty.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_pagerduty_alert.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_pagerduty_change.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_pamd.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_parted.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_pkgin.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_pmem.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_pritunl_org.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_pritunl_org_info.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_pritunl_user.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_pritunl_user_info.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_proxmox_backup.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_proxmox_backup_info.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_proxmox_kvm.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_proxmox_snap.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_proxmox_storage_contents_info.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_proxmox_tasks_info.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_proxmox_template.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_proxmox_vm_info.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_puppet.py rename test helper (#9736) 2025-02-15 18:26:25 +13:00
test_puppet.yaml test helper unit tests: reformat YAML files (#9664) 2025-02-01 23:16:03 +13:00
test_redhat_subscription.py redhat_subscription: stop manual unsubscribing on unregistration (#9578) 2025-01-20 19:37:51 +01:00
test_redis_data.py Use more unit test utils from community.internal_test_tools (#9918) 2025-03-22 13:12:31 +01:00
test_redis_data_incr.py Use more unit test utils from community.internal_test_tools (#9918) 2025-03-22 13:12:31 +01:00
test_redis_data_info.py Use more unit test utils from community.internal_test_tools (#9918) 2025-03-22 13:12:31 +01:00
test_redis_info.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_rhsm_release.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_rhsm_repository.py 10.0.0: remove deprecated features (#8918) 2024-09-28 08:11:21 +03:00
test_rpm_ostree_pkg.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_rundeck_acl_policy.py rundeck_acl_policy: fix project acls are put/posted to the wrong endpoint (#10097) 2025-05-17 08:01:32 +02:00
test_scaleway_compute_private_network.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_scaleway_private_network.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_simpleinit_msb.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_slack.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_snap.py rename test helper (#9736) 2025-02-15 18:26:25 +13:00
test_solaris_zone.py Use more unit test utils from community.internal_test_tools (#9918) 2025-03-22 13:12:31 +01:00
test_ss_3par_cpg.py Unflatmap community.general (#5461) 2022-11-02 20:42:29 +00:00
test_statsd.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_sysupgrade.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_terraform.py Use more unit test utils from community.internal_test_tools (#9918) 2025-03-22 13:12:31 +01:00
test_ufw.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_usb_facts.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_wdc_redfish_command.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_wdc_redfish_info.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_xcc_redfish_command.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01:00
test_xdg_mime.py Add xdg_mime module (#10007) 2025-04-26 12:34:03 +02:00
test_xdg_mime.yaml Add xdg_mime module (#10007) 2025-04-26 12:34:03 +02: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 rename test helper (#9736) 2025-02-15 18:26:25 +13:00
test_xfconf.yaml test helper unit tests: reformat YAML files (#9664) 2025-02-01 23:16:03 +13:00
test_xfconf_info.py rename test helper (#9736) 2025-02-15 18:26:25 +13:00
test_xfconf_info.yaml test helper unit tests: reformat YAML files (#9664) 2025-02-01 23:16:03 +13:00
uthelper.py Use more unit test utils from community.internal_test_tools (#9918) 2025-03-22 13:12:31 +01:00
utils.py Unit tests: replace mock and compat with code from community.internal_test_tools (#9921) 2025-03-22 14:12:56 +01: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