community.general/tests/unit
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
..
plugins pacemaker: add cluster maintenance mode checks (#10194) 2025-06-07 17:52:32 +02:00
requirements.txt add json_patch, json_patch_recipe and json_diff filters (#9565) 2025-01-21 20:51:21 +01:00
requirements.yml Switch to Ansible Galaxy compatible requirements files for tests (#6549) 2023-05-21 14:06:36 +02:00