Merge pull request #6292 from taosdata/xiaoping/add_test_case

[TD-4420]<test>: add test case
This commit is contained in:
huili 2021-05-31 09:42:02 +08:00 committed by GitHub
commit a7e1c34895
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -38,6 +38,8 @@ python3 ./test.py -f table/boundary.py
python3 ./test.py -f table/create.py python3 ./test.py -f table/create.py
python3 ./test.py -f table/del_stable.py python3 ./test.py -f table/del_stable.py
#stable
python3 ./test.py -f stable/insert.py
# tag # tag
python3 ./test.py -f tag_lite/filter.py python3 ./test.py -f tag_lite/filter.py

View File

@ -72,6 +72,9 @@ class TDTestCase:
tdSql.query("describe db.stb") tdSql.query("describe db.stb")
tdSql.checkRows(3) tdSql.checkRows(3)
tdSql.error("drop stable if exists db.dev_01")
tdSql.error("drop stable if exists db.dev_02")
tdSql.execute("alter stable db.stb add tag t1 int") tdSql.execute("alter stable db.stb add tag t1 int")
tdSql.query("describe db.stb") tdSql.query("describe db.stb")
tdSql.checkRows(4) tdSql.checkRows(4)
@ -80,6 +83,13 @@ class TDTestCase:
tdSql.query("show stables") tdSql.query("show stables")
tdSql.checkRows(1) tdSql.checkRows(1)
tdSql.error("drop stable if exists db.dev_001")
tdSql.error("drop stable if exists db.dev_002")
for i in range(10):
tdSql.execute("drop stable if exists db.stb")
tdSql.query("show stables")
tdSql.checkRows(1)
def stop(self): def stop(self):
tdSql.close() tdSql.close()