From 79a7832f282da87d3ac8aed5a91ea4b6fa5c883e Mon Sep 17 00:00:00 2001 From: Peter Ondrejka Date: Tue, 11 Jun 2024 15:02:26 +0200 Subject: [PATCH] updated in hammer ping stderr parsing (#15394) --- tests/foreman/cli/test_ping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/foreman/cli/test_ping.py b/tests/foreman/cli/test_ping.py index 0d6b6929c25..cf5429bdabd 100644 --- a/tests/foreman/cli/test_ping.py +++ b/tests/foreman/cli/test_ping.py @@ -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()]