提交 f0a740aa 编写于 作者: P Ping Xiao

test: add test case for TS-1581

上级 bfe0b050
......@@ -13,6 +13,7 @@
import sys
import taos
import os
from util.log import tdLog
from util.cases import tdCases
from util.sql import tdSql
......@@ -35,6 +36,17 @@ class TDTestCase:
tdSql.error("create user tdenginet PASS '1234512345123456' ")
updatePwd = "test"
os.system('''taos -s "alter user root PASS '%s'"''' % updatePwd)
r = os.popen("taos -u root -p%s -s 'show users'" % updatePwd);
text = r.read()
r.close()
if "Authentication failure" in text:
tdLog.exit("%s failed: Authentication failure" % __file__)
else:
pass
try:
tdSql.execute("create account a&cc PASS 'pass123'")
except Exception as e:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册