mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-25 13:12:46 +00:00
pacemaker: Add regex checking for maintenance-mode (#10707)
* Add regex checking for maintenance-mode * Add changelog fragment * Apply suggestions from code review Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Alexei Znamensky <103110+russoz@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
b5a2c5812c
commit
6332175493
4 changed files with 70 additions and 2 deletions
|
|
@ -371,6 +371,30 @@ test_cases:
|
|||
rc: 0
|
||||
out: 'maintenance-mode=true'
|
||||
err: ""
|
||||
- id: test_maintenance_minimal_input_initial_online_version_change
|
||||
input:
|
||||
state: maintenance
|
||||
output:
|
||||
changed: true
|
||||
previous_value: 'maintenance-mode: false'
|
||||
value: 'maintenance-mode: true'
|
||||
mocks:
|
||||
run_command:
|
||||
- command: [/testbin/pcs, property, config, maintenance-mode]
|
||||
environ: *env-def
|
||||
rc: 0
|
||||
out: 'maintenance-mode: false'
|
||||
err: ""
|
||||
- command: [/testbin/pcs, property, set, maintenance-mode=true]
|
||||
environ: *env-def
|
||||
rc: 0
|
||||
out: ""
|
||||
err: ""
|
||||
- command: [/testbin/pcs, property, config, maintenance-mode]
|
||||
environ: *env-def
|
||||
rc: 0
|
||||
out: 'maintenance-mode: true'
|
||||
err: ""
|
||||
- id: test_maintenance_minimal_input_initial_offline
|
||||
input:
|
||||
state: maintenance
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue