mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-09-01 00:59:24 +00:00
18 lines
629 B
Python
18 lines
629 B
Python
from behave import step, then
|
|
|
|
|
|
@step('I configure and start {name} with a tag {tag_name} {tag_value}')
|
|
def start_patroni_with_a_name_value_tag(context, name, tag_name, tag_value):
|
|
return context.pctl.start(name, tags={tag_name: tag_value})
|
|
|
|
|
|
@then('There is a label with "{content}" in {name} data directory')
|
|
def check_label(context, content, name):
|
|
label = context.pctl.read_label(name)
|
|
assert label == content, "{0} is not equal to {1}".format(label, content)
|
|
|
|
|
|
@step('I create label with "{content}" in {name} data directory')
|
|
def write_label(context, content, name):
|
|
context.pctl.write_label(name, content)
|