mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-03 23:14:02 -07:00
[PR #10195/e4373565 backport][stable-11] pacemaker_stonith: new module (#10719)
pacemaker_stonith: new module (#10195)
* feat(initial): Add pacemaker_stonith module and unit tests
* feat(initial): Add working changes to pacemaker_stonith
* refactor(review): Apply code review suggestions
* Apply suggestions from code review
* refactor(review): Additional code review items
* bug(cli_action): Add missing runner arguments
* Apply code review suggestions
* Apply suggestions from code review
* Apply suggestions from code review
* WIP
* Apply doc changes to pacemaker stonith
* Update plugins/modules/pacemaker_stonith.py
---------
(cherry picked from commit e43735659a
)
Co-authored-by: Dexter <45038532+munchtoast@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
3bf688be39
commit
148c133248
5 changed files with 458 additions and 0 deletions
19
tests/unit/plugins/modules/test_pacemaker_stonith.py
Normal file
19
tests/unit/plugins/modules/test_pacemaker_stonith.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Author: Dexter Le (dextersydney2001@gmail.com)
|
||||
# Largely adapted from test_redhat_subscription by
|
||||
# Jiri Hnidek (jhnidek@redhat.com)
|
||||
#
|
||||
# Copyright (c) Dexter Le (dextersydney2001@gmail.com)
|
||||
# Copyright (c) Jiri Hnidek (jhnidek@redhat.com)
|
||||
#
|
||||
# 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
|
||||
|
||||
from __future__ import (absolute_import, division, print_function)
|
||||
__metaclass__ = type
|
||||
|
||||
|
||||
from ansible_collections.community.general.plugins.modules import pacemaker_stonith
|
||||
from .uthelper import UTHelper, RunCommandMock
|
||||
|
||||
UTHelper.from_module(pacemaker_stonith, __name__, mocks=[RunCommandMock])
|
Loading…
Add table
Add a link
Reference in a new issue