Skip to content

Commit

Permalink
pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwener committed Jan 12, 2022
1 parent df17dbe commit 5ba0e68
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/admin/test_show_hosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ def test_show_hosts(self):
'Status',
'Leader count',
'Leader distribution',
'Partition distribution']
'Partition distribution',
'Version']
expected_result_format = [[re.compile(r'\S+'),
re.compile(r'\d+'),
re.compile(r'ONLINE|OFFLINE'),
re.compile(r'\d+'),
re.compile(r'No valid partition|(\S+:\d+, )*\S+:\d+'),
re.compile(r'No valid partition|(\S+:\d+, )*\S+:\d+')]]
re.compile(r'No valid partition|(\S+:\d+, )*\S+:\d+'),
re.compile(r'\S+')]]
resp = self.execute(query)
self.check_resp_succeeded(resp)
self.check_column_names(resp, expected_column_names)
Expand Down

0 comments on commit 5ba0e68

Please sign in to comment.