mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-01-27 10:20:10 +00:00
17 lines
425 B
Python
17 lines
425 B
Python
from behave import step
|
|
|
|
|
|
@step('DCS is down')
|
|
def start_dcs_outage(context):
|
|
context.dcs_ctl.start_outage()
|
|
|
|
|
|
@step('DCS is up')
|
|
def stop_dcs_outage(context):
|
|
context.dcs_ctl.stop_outage()
|
|
|
|
|
|
@step('I start {name:name} in a cluster {cluster_name:w} from backup with no_leader')
|
|
def start_cluster_from_backup_no_leader(context, name, cluster_name):
|
|
context.pctl.bootstrap_from_backup_no_leader(name, cluster_name)
|