Merge pull request #13322 from taosdata/test/td-16102-1
test: add schemaless-taosc-insert testcases to CI
This commit is contained in:
commit
9fd02e4816
|
@ -95,9 +95,13 @@ class TDCom:
|
|||
stb_list = map(lambda x: x[0], res_row_list)
|
||||
for stb in stb_list:
|
||||
if type == "taosc":
|
||||
tdSql.execute(f'drop table if exists {stb}')
|
||||
tdSql.execute(f'drop table if exists `{stb}`')
|
||||
if not stb[0].isdigit():
|
||||
tdSql.execute(f'drop table if exists {stb}')
|
||||
elif type == "restful":
|
||||
self.restApiPost(f"drop table if exists {stb}")
|
||||
self.restApiPost(f"drop table if exists `{stb}`")
|
||||
if not stb[0].isdigit():
|
||||
self.restApiPost(f"drop table if exists {stb}")
|
||||
|
||||
def dateToTs(self, datetime_input):
|
||||
return int(time.mktime(time.strptime(datetime_input, "%Y-%m-%d %H:%M:%S.%f")))
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -36,10 +36,10 @@ class TDTestCase:
|
|||
|
||||
if db_update_tag == 0:
|
||||
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:
|
||||
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}')
|
||||
|
||||
def timeTrans(self, time_value, ts_type):
|
||||
|
|
|
@ -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/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_json_taosc_insert.py
|
||||
python3 ./test.py -f 1-insert/test_stmt_muti_insert_query.py
|
||||
|
||||
python3 ./test.py -f 2-query/between.py
|
||||
|
|
Loading…
Reference in New Issue