From 5ba0e6856c47d10f6c6081e314f967974984b6db Mon Sep 17 00:00:00 2001 From: jackwener <30525741+jackwener@users.noreply.github.com> Date: Wed, 12 Jan 2022 15:00:09 +0800 Subject: [PATCH] pytest --- tests/admin/test_show_hosts.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/admin/test_show_hosts.py b/tests/admin/test_show_hosts.py index 3392cb0760c..a3ad3bf243a 100644 --- a/tests/admin/test_show_hosts.py +++ b/tests/admin/test_show_hosts.py @@ -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)