diff --git a/tests/system-test/0-others/user_control.py b/tests/system-test/0-others/user_control.py index 74a2024381c98d8722ba0d2a86da391966e59e57..c4218ac5b2be8e7d33a1707c3fbedfc39255d772 100644 --- a/tests/system-test/0-others/user_control.py +++ b/tests/system-test/0-others/user_control.py @@ -211,14 +211,19 @@ class TDTestCase: tdSql.query("show users") tdSql.checkRows(self.users_count + 2) + # 密码登录认证 + self.login_currrent(self.__user_list[0], self.__passwd_list[0]) + self.login_err(self.__user_list[0], f"new{self.__passwd_list[0]}") + + # 修改密码 tdLog.printNoPrefix("==========step3: alter user pass test") self.test_alter_pass() - # 密码登录认证 + # 密码修改后的登录认证 tdLog.printNoPrefix("==========step4: check login test") - self.login_err(self.__user_list[0], "passwd1") + self.login_err(self.__user_list[0], self.__passwd_list[0]) self.login_currrent(self.__user_list[0], f"new{self.__passwd_list[0]}")