mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-22 05:09:12 +00:00
[PR #11254/cc24e573 backport][stable-12] monit: deprecate support for monit <= 5.18 (#11609)
monit: deprecate support for monit <= 5.18 (#11254)
* monit: deprecate support for monit <= 5.18
* add additional runs for checking version
* add changelog frag
* bump deprecation for 14.0.0
(cherry picked from commit cc24e57307)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
7784fbdf17
commit
000b92a425
4 changed files with 16 additions and 2 deletions
|
|
@ -24,6 +24,7 @@ class MonitTest(unittest.TestCase):
|
|||
self.module = mock.MagicMock()
|
||||
self.module.exit_json.side_effect = AnsibleExitJson
|
||||
self.module.fail_json.side_effect = AnsibleFailJson
|
||||
self.module.run_command.return_value = (0, "This is monit version 5.26.0", "")
|
||||
self.monit = monit.Monit(self.module, "monit", "processX", 1)
|
||||
self.monit._status_change_retry_count = 1
|
||||
mock_sleep = mock.patch("time.sleep")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue