mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-03 17:03:06 +00:00
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
This commit is contained in:
parent
c8fe1e571f
commit
cc24e57307
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