|
|
@ -22,14 +22,17 @@ def then_cli_executed_successfully(context, result):
|
|
|
|
|
|
|
|
|
|
|
|
@then('the CLI output contains "{string}"')
|
|
|
|
@then('the CLI output contains "{string}"')
|
|
|
|
def then_cli_output_contains(context, string):
|
|
|
|
def then_cli_output_contains(context, string):
|
|
|
|
|
|
|
|
print(f"Got: {context.cli_result.stdout}")
|
|
|
|
assert string in context.cli_result.stdout
|
|
|
|
assert string in context.cli_result.stdout
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@then('the CLI output doesn\'t contains "{string}"')
|
|
|
|
@then('the CLI output doesn\'t contains "{string}"')
|
|
|
|
def then_cli_output_contains(context, string):
|
|
|
|
def then_cli_output_contains(context, string):
|
|
|
|
|
|
|
|
print(f"Got: {context.cli_result.stdout}")
|
|
|
|
assert not (string in context.cli_result.stdout)
|
|
|
|
assert not (string in context.cli_result.stdout)
|
|
|
|
|
|
|
|
|
|
|
|
@then('the CLI contains the error: "{string}"')
|
|
|
|
@then('the CLI contains the error: "{string}"')
|
|
|
|
def then_cli_output_contains_error(context, string):
|
|
|
|
def then_cli_output_contains_error(context, string):
|
|
|
|
|
|
|
|
print(f"Got: {context.cli_result.stdout}")
|
|
|
|
assert string in context.cli_result.stdout
|
|
|
|
assert string in context.cli_result.stdout
|
|
|
|
|
|
|
|
|
|
|
|