Skip to content

Commit

Permalink
Update kafka tests to account for tz offset
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nemacysts committed Sep 18, 2024
1 parent 629e89b commit 6a439da
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/cli/test_cmds_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6a439da

Please sign in to comment.