From 6a439da294f83445db162edf641bf531492bc4cc Mon Sep 17 00:00:00 2001 From: Luis Perez Date: Wed, 18 Sep 2024 14:17:27 -0700 Subject: [PATCH] Update kafka tests to account for tz offset This is probably better than the previous output where it was unclear what offset the times were in without looking at the parenthentical humanized time --- tests/cli/test_cmds_status.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/cli/test_cmds_status.py b/tests/cli/test_cmds_status.py index 7095cc0132..cef5ca266d 100644 --- a/tests/cli/test_cmds_status.py +++ b/tests/cli/test_cmds_status.py @@ -2411,16 +2411,16 @@ def test_output( expected_output = [ f" Kafka View Url: {status['kafka_view_url']}", f" Zookeeper: {status['zookeeper']}", - f" State: testing", + " State: testing", f" Ready: {str(status['cluster_ready']).lower()}", f" Health: {PaastaColors.red('unhealthy')}", f" Reason: {status['health']['message']}", f" Offline Partitions: {status['health']['offline_partitions']}", f" Under Replicated Partitions: {status['health']['under_replicated_partitions']}", - f" Brokers:", - f" Id Phase Started", - f" 0 {PaastaColors.green('Running')} 2020-03-25 16:24:21 ({mock_naturaltime.return_value})", - f" 1 {PaastaColors.red('Pending')} 2020-03-25 16:24:21 ({mock_naturaltime.return_value})", + " Brokers:", + " Id Phase Started", + f" 0 {PaastaColors.green('Running')} 2020-03-25 16:24:21+00:00 ({mock_naturaltime.return_value})", + f" 1 {PaastaColors.red('Pending')} 2020-03-25 16:24:21+00:00 ({mock_naturaltime.return_value})", ] assert expected_output == output