aad grant case

This commit is contained in:
cpwu 2022-05-19 15:15:45 +08:00
parent 3a7c19a44e
commit b2179da6d4
1 changed files with 8 additions and 2 deletions

View File

@ -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()