mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-29 15:08:59 +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
|
|
@ -357,7 +357,7 @@ test_cases:
|
|||
|
||||
# ------------------------------------------------------------------ reload
|
||||
- id: state_reloaded
|
||||
# reload exits before any presence/status checks; no version check either
|
||||
# reload exits before any presence/status checks; version check happens in __init__
|
||||
input:
|
||||
name: processX
|
||||
state: reloaded
|
||||
|
|
@ -366,6 +366,7 @@ test_cases:
|
|||
state: reloaded
|
||||
mocks:
|
||||
run_command:
|
||||
- *version_526
|
||||
- command: [/testbin/monit, reload]
|
||||
environ: {}
|
||||
rc: 0
|
||||
|
|
@ -396,7 +397,7 @@ test_cases:
|
|||
|
||||
# ------------------------------------------------------------------ failure cases
|
||||
- id: state_reloaded_fail
|
||||
# reload returns rc=1 → fail_json("monit reload failed")
|
||||
# reload returns rc=1 → fail_json("monit reload failed"); version check happens in __init__
|
||||
input:
|
||||
name: processX
|
||||
state: reloaded
|
||||
|
|
@ -404,6 +405,7 @@ test_cases:
|
|||
failed: true
|
||||
mocks:
|
||||
run_command:
|
||||
- *version_526
|
||||
- command: [/testbin/monit, reload]
|
||||
environ: {}
|
||||
rc: 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue