Skip to content

Commit

Permalink
updated in hammer ping stderr parsing (SatelliteQE#15394)
Browse files Browse the repository at this point in the history
pondrejk authored Jun 11, 2024
1 parent ca9193d commit 79a7832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/foreman/cli/test_ping.py
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ def test_positive_ping(target_sat, switch_user):
:customerscenario: true
"""
result = target_sat.execute(f"su - {'postgres' if switch_user else 'root'} -c 'hammer ping'")
assert result.stderr[1].decode() == ''
assert result.stderr == ''

# Filter lines containing status
statuses = [line for line in result.stdout.splitlines() if 'status:' in line.lower()]

0 comments on commit 79a7832

Please sign in to comment.