mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
Make the patronictl test provide an input for the schedule, even if it's empty.
This commit is contained in:
@@ -118,6 +118,7 @@ y''')
|
||||
# Aborting failover,as we anser NO to the confirmation
|
||||
result = self.runner.invoke(ctl, ['failover', 'dummy', '--dcs', '8.8.8.8'], input='''leader
|
||||
other
|
||||
|
||||
N''')
|
||||
assert result.exit_code == 1
|
||||
|
||||
@@ -159,6 +160,7 @@ y''')
|
||||
# No members available
|
||||
result = self.runner.invoke(ctl, ['failover', 'dummy', '--dcs', '8.8.8.8'], input='''leader
|
||||
other
|
||||
|
||||
y''')
|
||||
assert result.exit_code == 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user