From b2179da6d413967efbd59aff493b3b8019274a22 Mon Sep 17 00:00:00 2001 From: cpwu Date: Thu, 19 May 2022 15:15:45 +0800 Subject: [PATCH] aad grant case --- tests/system-test/0-others/user_control.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/system-test/0-others/user_control.py b/tests/system-test/0-others/user_control.py index 0ce9e7adef..deb5a76a75 100644 --- a/tests/system-test/0-others/user_control.py +++ b/tests/system-test/0-others/user_control.py @@ -220,7 +220,7 @@ class TDTestCase: user.error("select * from ct1") user.error("insert into t1 (ts) values (now())") - def grant_current(self): + def test_grant_current(self): tdLog.printNoPrefix("==========step 1.0: if do not grant, can not read/write") self.grant_check_none(user=self.__user_list[0], passwd=self.__passwd_list[0]) @@ -273,10 +273,13 @@ class TDTestCase: ] def test_grant_err(self): - for sql in self.__grant_err(): tdSql.error(sql) + def test_grant(self): + self.test_grant_err() + self.test_grant_current() + def test_user_create(self): self.create_user_current() self.create_user_err() @@ -359,6 +362,9 @@ class TDTestCase: self.login_currrent(self.__user_list[0], self.__passwd_list[0]) self.login_err(self.__user_list[0], f"new{self.__passwd_list[0]}") + # 用户权限设置 + self.test_grant() + # 修改密码 tdLog.printNoPrefix("==========step3: alter user pass test") self.test_alter_pass()