1
0
Fork 0

Adding upstream version 4.2.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-03-09 08:29:27 +01:00
parent be6a09053d
commit 9442fe97a5
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
14 changed files with 197 additions and 99 deletions

View file

@ -26,6 +26,19 @@ def step_see_list_databases(context):
context.cmd_output = None
@when("we ping the database")
def step_ping_database(context):
cmd = ["pgcli", "--ping"]
context.cmd_output = subprocess.check_output(cmd, cwd=context.package_root)
@then("we get a pong response")
def step_get_pong_response(context):
# exit code 0 is implied by the presence of cmd_output here, which
# is only set on a successful run.
assert context.cmd_output.strip() == b"PONG", f"Output was {context.cmd_output}"
@when("we run dbcli")
def step_run_cli(context):
wrappers.run_cli(context)