提交 75fef036 编写于 作者: haoranc's avatar haoranc

testcase-subscribe of super table

上级 abe9b756
...@@ -35,10 +35,10 @@ ...@@ -35,10 +35,10 @@
"super_tables": [{ "super_tables": [{
"name": "stb0", "name": "stb0",
"child_table_exists":"no", "child_table_exists":"no",
"childtable_count": 200, "childtable_count": 100,
"childtable_prefix": "stb00_", "childtable_prefix": "stb00_",
"auto_create_table": "no", "auto_create_table": "no",
"batch_create_tbl_num": 10, "batch_create_tbl_num": 1000,
"data_source": "rand", "data_source": "rand",
"insert_mode": "taosc", "insert_mode": "taosc",
"insert_rows": 10, "insert_rows": 10,
......
{
"filetype":"subscribe",
"cfgdir": "/etc/taos",
"host": "127.0.0.1",
"port": 6030,
"user": "root",
"password": "taosdata",
"databases": "db",
"confirm_parameter_prompt": "no",
"super_table_query":
{
"stblname": "stb0",
"threads":2,
"mode":"sync",
"interval":0,
"restart":"no",
"keepProgress":"no",
"sqls": [
{
"sql": "select * from xxxx where ts >= '2021-02-25 10:00:01.000' ",
"result": "./subscribe_res2.txt"
},
{
"sql": "select * from xxxx where ts > '2021-02-25 10:00:04.000' ",
"result": "./subscribe_res3.txt"
}]
}
}
\ No newline at end of file
...@@ -11,12 +11,12 @@ ...@@ -11,12 +11,12 @@
{ {
"concurrent":2, "concurrent":2,
"mode":"sync", "mode":"sync",
"interval":0, "interval":10000,
"restart":"yes", "restart":"no",
"keepProgress":"yes", "keepProgress":"no",
"sqls": [ "sqls": [
{ {
"sql": "select * from stb00_0", "sql": "select * from stb0",
"result": "./subscribe_res0.txt" "result": "./subscribe_res0.txt"
}, },
{ {
...@@ -421,17 +421,13 @@ ...@@ -421,17 +421,13 @@
"stblname": "stb0", "stblname": "stb0",
"threads":2, "threads":2,
"mode":"sync", "mode":"sync",
"interval":10000, "interval":0,
"restart":"yes", "restart":"no",
"keepProgress":"yes", "keepProgress":"no",
"sqls": [ "sqls": [
{ {
"sql": "select * from xxxx where ts >= '2021-02-25 10:00:01.000' ", "sql": "select * from xxxx where ts >= '2021-02-25 10:00:01.000' ",
"result": "./subscribe_res2.txt" "result": "./subscribe_res2.txt"
},
{
"sql": "select * from xxxx where ts > '2021-02-25 10:00:04.000' ",
"result": "./subscribe_res3.txt"
}] }]
} }
} }
\ No newline at end of file
...@@ -113,7 +113,9 @@ class TDTestCase: ...@@ -113,7 +113,9 @@ class TDTestCase:
# query times less than or equal to 100 # query times less than or equal to 100
os.system("%staosdemo -f tools/taosdemoAllTest/subInsertdataMaxsql100.json" % binPath) os.system("%staosdemo -f tools/taosdemoAllTest/subInsertdataMaxsql100.json" % binPath)
os.system("%staosdemo -f tools/taosdemoAllTest/subSyncMaxsql100.json" % binPath) # os.system("%staosdemo -f tools/taosdemoAllTest/subSyncMaxsql100.json" % binPath)
os.system("%staosdemo -f tools/taosdemoAllTest/subSupermaxsql100.json" % binPath)
# delete useless files # delete useless files
os.system("rm -rf ./insert_res.txt") os.system("rm -rf ./insert_res.txt")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册