fix: add password length case

This commit is contained in:
Alex Duan 2024-12-25 14:13:34 +08:00
parent 5502324f6d
commit 6b8822999a
2 changed files with 5 additions and 10 deletions

View File

@ -37,9 +37,6 @@ class TDTestCase(TBase):
""" """
[TD-11510] taosBenchmark test cases [TD-11510] taosBenchmark test cases
""" """
# check correct # check correct
def checkCorrect(self, csvFile, allRows, interlaceRows): def checkCorrect(self, csvFile, allRows, interlaceRows):
# open as csv # open as csv
@ -110,7 +107,7 @@ class TDTestCase(TBase):
benchmark = etool.benchMarkFile() benchmark = etool.benchMarkFile()
# do check # do check
json = "taosbenchmark/json/exportCsv.json" json = "tools/benchmark/json/exportCsv.json"
self.checkExportCsv(benchmark, json) self.checkExportCsv(benchmark, json)
def stop(self): def stop(self):

View File

@ -27,9 +27,6 @@ class TDTestCase(TBase):
case1<sdsang>: [TD-20506] taosdump dump db with non-root case1<sdsang>: [TD-20506] taosdump dump db with non-root
""" """
def run(self): def run(self):
tdSql.prepare() tdSql.prepare()
@ -77,9 +74,10 @@ class TDTestCase(TBase):
os.system("rm -rf %s" % self.tmpdir) os.system("rm -rf %s" % self.tmpdir)
os.makedirs(self.tmpdir) os.makedirs(self.tmpdir)
tdSql.execute("create user test pass '123456'") pwd = "Taos@123456"
tdSql.execute(f"create user test pass '{pwd}'")
os.system("%s -utest -p123456 -D db -o %s -T 1" % (binPath, self.tmpdir)) os.system(f"%s -utest -p{pwd} -D db -o %s -T 1" % (binPath, self.tmpdir))
tdSql.execute("drop database db") tdSql.execute("drop database db")
# sys.exit(1) # sys.exit(1)