未验证 提交 9fd02e48 编写于 作者: C cpwu 提交者: GitHub

Merge pull request #13322 from taosdata/test/td-16102-1

test: add schemaless-taosc-insert testcases to CI
...@@ -95,8 +95,12 @@ class TDCom: ...@@ -95,8 +95,12 @@ class TDCom:
stb_list = map(lambda x: x[0], res_row_list) stb_list = map(lambda x: x[0], res_row_list)
for stb in stb_list: for stb in stb_list:
if type == "taosc": if type == "taosc":
tdSql.execute(f'drop table if exists `{stb}`')
if not stb[0].isdigit():
tdSql.execute(f'drop table if exists {stb}') tdSql.execute(f'drop table if exists {stb}')
elif type == "restful": elif type == "restful":
self.restApiPost(f"drop table if exists `{stb}`")
if not stb[0].isdigit():
self.restApiPost(f"drop table if exists {stb}") self.restApiPost(f"drop table if exists {stb}")
def dateToTs(self, datetime_input): def dateToTs(self, datetime_input):
......
...@@ -36,10 +36,10 @@ class TDTestCase: ...@@ -36,10 +36,10 @@ class TDTestCase:
if db_update_tag == 0: if db_update_tag == 0:
tdSql.execute(f"drop database if exists {name}") tdSql.execute(f"drop database if exists {name}")
tdSql.execute(f"create database if not exists {name} precision 'ms'") tdSql.execute(f"create database if not exists {name} precision 'us'")
else: else:
tdSql.execute(f"drop database if exists {name}") tdSql.execute(f"drop database if exists {name}")
tdSql.execute(f"create database if not exists {name} precision 'ms' update 1") tdSql.execute(f"create database if not exists {name} precision 'ns' update 1")
tdSql.execute(f'use {name}') tdSql.execute(f'use {name}')
def timeTrans(self, time_value, ts_type): def timeTrans(self, time_value, ts_type):
......
...@@ -14,7 +14,9 @@ python3 ./test.py -f 0-others/udf_restart_taosd.py ...@@ -14,7 +14,9 @@ python3 ./test.py -f 0-others/udf_restart_taosd.py
python3 ./test.py -f 0-others/user_control.py python3 ./test.py -f 0-others/user_control.py
python3 ./test.py -f 0-others/fsync.py python3 ./test.py -f 0-others/fsync.py
python3 ./test.py -f 1-insert/influxdb_line_taosc_insert.py
python3 ./test.py -f 1-insert/opentsdb_telnet_line_taosc_insert.py python3 ./test.py -f 1-insert/opentsdb_telnet_line_taosc_insert.py
python3 ./test.py -f 1-insert/opentsdb_json_taosc_insert.py
python3 ./test.py -f 1-insert/test_stmt_muti_insert_query.py python3 ./test.py -f 1-insert/test_stmt_muti_insert_query.py
python3 ./test.py -f 2-query/between.py python3 ./test.py -f 2-query/between.py
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册