Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
39604d77
T
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1184
Star
22015
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
39604d77
编写于
6月 25, 2021
作者:
haoranc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-4369]<test>: add testcase of resubscibe
上级
07c99df6
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
1511 addition
and
79 deletion
+1511
-79
tests/pytest/tools/taosdemoAllTest/subInsertdataMaxsql100 copy.json
...st/tools/taosdemoAllTest/subInsertdataMaxsql100 copy.json
+0
-61
tests/pytest/tools/taosdemoAllTest/subInsertdataMaxsql100.json
.../pytest/tools/taosdemoAllTest/subInsertdataMaxsql100.json
+25
-0
tests/pytest/tools/taosdemoAllTest/subResubjson/subSyncResubAC1endAfter1.json
...aosdemoAllTest/subResubjson/subSyncResubAC1endAfter1.json
+5
-3
tests/pytest/tools/taosdemoAllTest/subResubjson/subSyncResubAC1endAfterMin1.json
...demoAllTest/subResubjson/subSyncResubAC1endAfterMin1.json
+41
-0
tests/pytest/tools/taosdemoAllTest/subResubjson/subSyncResubACMinus1.json
...ls/taosdemoAllTest/subResubjson/subSyncResubACMinus1.json
+41
-0
tests/pytest/tools/taosdemoAllTest/subResubjson/subSyncResubACMinus1endAfter0.json
...moAllTest/subResubjson/subSyncResubACMinus1endAfter0.json
+41
-0
tests/pytest/tools/taosdemoAllTest/subResubjson/subSyncResubACMinus1endAfterNo0.json
...AllTest/subResubjson/subSyncResubACMinus1endAfterNo0.json
+41
-0
tests/pytest/tools/taosdemoAllTest/subSyncSpecMaxsql100.json
tests/pytest/tools/taosdemoAllTest/subSyncSpecMaxsql100.json
+1
-1
tests/pytest/tools/taosdemoAllTest/subSyncSpecMaxsql100Async.json
...test/tools/taosdemoAllTest/subSyncSpecMaxsql100Async.json
+439
-0
tests/pytest/tools/taosdemoAllTest/subSyncSuperMaxsql100.json
...s/pytest/tools/taosdemoAllTest/subSyncSuperMaxsql100.json
+401
-4
tests/pytest/tools/taosdemoAllTest/subSyncSuperMaxsql100Async.json
...est/tools/taosdemoAllTest/subSyncSuperMaxsql100Async.json
+426
-0
tests/pytest/tools/taosdemoAllTest/taosdemoTestSubWithJson.py
...s/pytest/tools/taosdemoAllTest/taosdemoTestSubWithJson.py
+47
-8
tests/pytest/tools/taosdemoAllTest/taosdemoTestSubWithJsonAsync.py
...est/tools/taosdemoAllTest/taosdemoTestSubWithJsonAsync.py
+3
-2
未找到文件。
tests/pytest/tools/taosdemoAllTest/subInsertdataMaxsql100 copy.json
已删除
100644 → 0
浏览文件 @
07c99df6
{
"filetype"
:
"insert"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"thread_count"
:
4
,
"thread_count_create_tbl"
:
4
,
"result_file"
:
"./insert_res.txt"
,
"confirm_parameter_prompt"
:
"no"
,
"insert_interval"
:
0
,
"interlace_rows"
:
0
,
"num_of_records_per_req"
:
3000
,
"max_sql_len"
:
1024000
,
"databases"
:
[{
"dbinfo"
:
{
"name"
:
"db"
,
"drop"
:
"yes"
,
"replica"
:
1
,
"days"
:
10
,
"cache"
:
16
,
"blocks"
:
8
,
"precision"
:
"ms"
,
"keep"
:
365
,
"minRows"
:
100
,
"maxRows"
:
4096
,
"comp"
:
2
,
"walLevel"
:
1
,
"cachelast"
:
0
,
"quorum"
:
1
,
"fsync"
:
3000
,
"update"
:
0
},
"super_tables"
:
[{
"name"
:
"stb0"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
200
,
"childtable_prefix"
:
"stb00_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
1000
,
"data_source"
:
"rand"
,
"insert_mode"
:
"taosc"
,
"insert_rows"
:
10
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"interlace_rows"
:
0
,
"insert_interval"
:
0
,
"max_sql_len"
:
1024000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1000
,
"start_timestamp"
:
"2021-02-25 10:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
1
,
"count"
:
1
},
{
"type"
:
"BINARY"
,
"len"
:
3
,
"count"
:
1
},
{
"type"
:
"INT"
},
{
"type"
:
"DOUBLE"
,
"count"
:
1
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
}]
}]
}
\ No newline at end of file
tests/pytest/tools/taosdemoAllTest/subInsertdataMaxsql100.json
浏览文件 @
39604d77
...
...
@@ -56,6 +56,31 @@
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
1
,
"count"
:
1
},
{
"type"
:
"BINARY"
,
"len"
:
3
,
"count"
:
1
},
{
"type"
:
"INT"
},
{
"type"
:
"DOUBLE"
,
"count"
:
1
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
},
{
"name"
:
"stb1"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
20
,
"childtable_prefix"
:
"stb01_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
1000
,
"data_source"
:
"rand"
,
"insert_mode"
:
"taosc"
,
"insert_rows"
:
10
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"interlace_rows"
:
0
,
"insert_interval"
:
0
,
"max_sql_len"
:
1024000
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1000
,
"start_timestamp"
:
"2021-02-25 10:00:00.000"
,
"sample_format"
:
"csv"
,
"sample_file"
:
"./sample.csv"
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"BINARY"
,
"len"
:
1
,
"count"
:
1
},
{
"type"
:
"BINARY"
,
"len"
:
3
,
"count"
:
1
},
{
"type"
:
"INT"
},
{
"type"
:
"DOUBLE"
,
"count"
:
1
}],
"tags"
:
[{
"type"
:
"TINYINT"
,
"count"
:
2
},
{
"type"
:
"BINARY"
,
"len"
:
16
,
"count"
:
5
}]
}]
}]
}
\ No newline at end of file
tests/pytest/tools/taosdemoAllTest/sub
SyncKeepStart
.json
→
tests/pytest/tools/taosdemoAllTest/sub
Resubjson/subSyncResubAC1endAfter1
.json
浏览文件 @
39604d77
...
...
@@ -12,9 +12,10 @@
"concurrent"
:
2
,
"mode"
:
"sync"
,
"interval"
:
0
,
"keepProgress"
:
"no"
,
"restart"
:
"yes"
,
"resubAfterConsume"
:
1
,
"endAfterConsume"
:
1
,
"keepProgress"
:
"yes"
,
"restart"
:
"no"
,
"sqls"
:
[
{
"sql"
:
"select * from stb00_0"
,
...
...
@@ -27,9 +28,10 @@
"threads"
:
2
,
"mode"
:
"sync"
,
"interval"
:
1000
,
"resubAfterConsume"
:
1
,
"endAfterConsume"
:
1
,
"keepProgress"
:
"yes"
,
"restart"
:
"no"
,
"resubAfterConsume"
:
1
,
"sqls"
:
[
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:01.000' "
,
...
...
tests/pytest/tools/taosdemoAllTest/subResubjson/subSyncResubAC1endAfterMin1.json
0 → 100644
浏览文件 @
39604d77
{
"filetype"
:
"subscribe"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"databases"
:
"db"
,
"confirm_parameter_prompt"
:
"no"
,
"specified_table_query"
:
{
"concurrent"
:
2
,
"mode"
:
"sync"
,
"interval"
:
0
,
"resubAfterConsume"
:
1
,
"endAfterConsume"
:
-1
,
"keepProgress"
:
"no"
,
"restart"
:
"yes"
,
"sqls"
:
[
{
"sql"
:
"select * from stb00_0"
,
"result"
:
"./subscribe_res0.txt"
}]
},
"super_table_query"
:
{
"stblname"
:
"stb0"
,
"threads"
:
2
,
"mode"
:
"sync"
,
"interval"
:
1000
,
"resubAfterConsume"
:
1
,
"endAfterConsume"
:
-1
,
"keepProgress"
:
"no"
,
"restart"
:
"yes"
,
"sqls"
:
[
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:01.000' "
,
"result"
:
"./subscribe_res2.txt"
}]
}
}
\ No newline at end of file
tests/pytest/tools/taosdemoAllTest/subResubjson/subSyncResubACMinus1.json
0 → 100644
浏览文件 @
39604d77
{
"filetype"
:
"subscribe"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"databases"
:
"db"
,
"confirm_parameter_prompt"
:
"no"
,
"specified_table_query"
:
{
"concurrent"
:
2
,
"mode"
:
"sync"
,
"interval"
:
0
,
"resubAfterConsume"
:
-1
,
"endAfterConsume"
:
-1
,
"keepProgress"
:
"no"
,
"restart"
:
"yes"
,
"sqls"
:
[
{
"sql"
:
"select * from stb00_0"
,
"result"
:
"./subscribe_res0.txt"
}]
},
"super_table_query"
:
{
"stblname"
:
"stb0"
,
"threads"
:
2
,
"mode"
:
"sync"
,
"interval"
:
1000
,
"resubAfterConsume"
:
-1
,
"endAfterConsume"
:
-1
,
"keepProgress"
:
"no"
,
"restart"
:
"yes"
,
"sqls"
:
[
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:01.000' "
,
"result"
:
"./subscribe_res2.txt"
}]
}
}
\ No newline at end of file
tests/pytest/tools/taosdemoAllTest/subResubjson/subSyncResubACMinus1endAfter0.json
0 → 100644
浏览文件 @
39604d77
{
"filetype"
:
"subscribe"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"databases"
:
"db"
,
"confirm_parameter_prompt"
:
"no"
,
"specified_table_query"
:
{
"concurrent"
:
2
,
"mode"
:
"sync"
,
"interval"
:
0
,
"resubAfterConsume"
:
-1
,
"endAfterConsume"
:
0
,
"keepProgress"
:
"no"
,
"restart"
:
"yes"
,
"sqls"
:
[
{
"sql"
:
"select * from stb00_0"
,
"result"
:
"./subscribe_res0.txt"
}]
},
"super_table_query"
:
{
"stblname"
:
"stb0"
,
"threads"
:
2
,
"mode"
:
"sync"
,
"interval"
:
0
,
"resubAfterConsume"
:
-1
,
"endAfterConsume"
:
0
,
"keepProgress"
:
"no"
,
"restart"
:
"yes"
,
"sqls"
:
[
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:01.000' "
,
"result"
:
"./subscribe_res2.txt"
}]
}
}
\ No newline at end of file
tests/pytest/tools/taosdemoAllTest/subResubjson/subSyncResubACMinus1endAfterNo0.json
0 → 100644
浏览文件 @
39604d77
{
"filetype"
:
"subscribe"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"databases"
:
"db"
,
"confirm_parameter_prompt"
:
"no"
,
"specified_table_query"
:
{
"concurrent"
:
2
,
"mode"
:
"sync"
,
"interval"
:
0
,
"resubAfterConsume"
:
-1
,
"endAfterConsume"
:
1
,
"keepProgress"
:
"no"
,
"restart"
:
"yes"
,
"sqls"
:
[
{
"sql"
:
"select * from stb00_0"
,
"result"
:
"./subscribe_res0.txt"
}]
},
"super_table_query"
:
{
"stblname"
:
"stb0"
,
"threads"
:
2
,
"mode"
:
"sync"
,
"interval"
:
1000
,
"resubAfterConsume"
:
-1
,
"endAfterConsume"
:
2
,
"keepProgress"
:
"no"
,
"restart"
:
"yes"
,
"sqls"
:
[
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:01.000' "
,
"result"
:
"./subscribe_res2.txt"
}]
}
}
\ No newline at end of file
tests/pytest/tools/taosdemoAllTest/subSyncSpecMaxsql100.json
浏览文件 @
39604d77
...
...
@@ -9,7 +9,7 @@
"confirm_parameter_prompt"
:
"no"
,
"specified_table_query"
:
{
"concurrent"
:
2
,
"concurrent"
:
1
,
"mode"
:
"sync"
,
"interval"
:
0
,
"restart"
:
"no"
,
...
...
tests/pytest/tools/taosdemoAllTest/subSyncSpecMaxsql100Async.json
0 → 100644
浏览文件 @
39604d77
{
"filetype"
:
"subscribe"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"127.0.0.1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"databases"
:
"db"
,
"confirm_parameter_prompt"
:
"no"
,
"specified_table_query"
:
{
"concurrent"
:
1
,
"mode"
:
"async"
,
"interval"
:
0
,
"restart"
:
"no"
,
"keepProgress"
:
"no"
,
"sqls"
:
[
{
"sql"
:
"select * from stb00_0"
,
"result"
:
"./subscribe_res1.txt"
},
{
"sql"
:
"select * from stb00_1"
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_2"
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_3"
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_4"
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_5"
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_6"
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_7"
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_8"
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_9"
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_10 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_11 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_12 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_13 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_14 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_15 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_16 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_17 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_18 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_19 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_20 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_21 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_22 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_23 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_24 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_25 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_26 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_27 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_28 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_29 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_30 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_31 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_32 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_33 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_34 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_35 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_36 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_37 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_38 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_39 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_40 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_41 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_42 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_43 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_44 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_45 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_46 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_47 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_48 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_49 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_50 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_51 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_52 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_53 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_54 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_55 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_56 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_57 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_58 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_59 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_60"
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_61"
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_62"
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_63"
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_64"
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_65"
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_66"
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_67"
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_68"
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_69"
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_70 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_71 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_72 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_73 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_74 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_75 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_76 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_77 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_78 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_79 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_80 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_81 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_82 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_83 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_84 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_85 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_86 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_87 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_88 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_89 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_90 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_91 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_92 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_93 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_94 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_95 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_96 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_97 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_98 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_99 "
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select * from stb00_99 "
,
"result"
:
"./subscribe_res0.txt"
}]
},
"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"
}]
}
}
\ No newline at end of file
tests/pytest/tools/taosdemoAllTest/subSyncSuperMaxsql100.json
浏览文件 @
39604d77
...
...
@@ -9,18 +9,415 @@
"confirm_parameter_prompt"
:
"no"
,
"super_table_query"
:
{
"stblname"
:
"stb
0
"
,
"stblname"
:
"stb
1
"
,
"threads"
:
4
,
"mode"
:
"sync"
,
"interval"
:
0
,
"restart"
:
"yes"
,
"resubAfterConsume"
:
0
,
"keepProgress"
:
"yes"
,
"restart"
:
"no"
,
"resubAfterConsume"
:
-1
,
"endAfterConsume"
:
1
,
"keepProgress"
:
"no"
,
"sqls"
:
[
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res2.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
...
...
tests/pytest/tools/taosdemoAllTest/subSyncSuperMaxsql100Async.json
0 → 100644
浏览文件 @
39604d77
{
"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"
:
"stb1"
,
"threads"
:
4
,
"mode"
:
"async"
,
"interval"
:
0
,
"restart"
:
"no"
,
"resubAfterConsume"
:
-1
,
"endAfterConsume"
:
1
,
"keepProgress"
:
"no"
,
"sqls"
:
[
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res2.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
},
{
"sql"
:
"select * from xxxx where ts >= '2021-02-25 10:00:00.000' "
,
"result"
:
"./subscribe_res3.txt"
}]
}
}
\ No newline at end of file
tests/pytest/tools/taosdemoAllTest/taosdemoTestSubWithJson.py
浏览文件 @
39604d77
...
...
@@ -43,14 +43,14 @@ class TDTestCase:
break
return
buildPath
#
获取订阅次数
#
get the number of subscriptions
def
subTimes
(
self
,
filename
):
self
.
filename
=
filename
command
=
'cat %s |wc -l'
%
filename
times
=
int
(
subprocess
.
getstatusoutput
(
command
)[
1
])
return
times
#
检查
#
assert results
def
assertCheck
(
self
,
filename
,
subResult
,
expectResult
):
self
.
filename
=
filename
self
.
subResult
=
subResult
...
...
@@ -72,7 +72,7 @@ class TDTestCase:
sleep
(
1
)
os
.
system
(
"rm -rf ./subscribe_res*"
)
os
.
system
(
"rm -rf ./all_subscribe_res*"
)
sleep
(
2
)
# subscribe: sync
os
.
system
(
"%staosdemo -f tools/taosdemoAllTest/subInsertdata.json"
%
binPath
)
os
.
system
(
"nohup %staosdemo -f tools/taosdemoAllTest/subSync.json &"
%
binPath
)
...
...
@@ -111,12 +111,51 @@ class TDTestCase:
os
.
system
(
"rm -rf ./subscribe_res*"
)
os
.
system
(
"rm -rf ./all_subscribe*"
)
# sql number lager 100
# # sql number lager 100
os
.
system
(
"%staosdemo -f tools/taosdemoAllTest/subInsertdataMaxsql100.json"
%
binPath
)
assert
os
.
system
(
"%staosdemo -f tools/taosdemoAllTest/subSyncSpecMaxsql100.json"
%
binPath
)
!=
0
assert
os
.
system
(
"%staosdemo -f tools/taosdemoAllTest/subSyncSuperMaxsql100.json"
%
binPath
)
!=
0
# resubAfterConsume= -1 endAfter=-1 ;
os
.
system
(
'kill -9 `ps aux|grep "subSyncResubACMinus1.json" |grep -v "grep"|awk
\'
{print $2}
\'
` '
)
os
.
system
(
"nohup %staosdemo -f tools/taosdemoAllTest/subResubjson/subSyncResubACMinus1.json & "
%
binPath
)
sleep
(
2
)
query_pid1
=
int
(
subprocess
.
getstatusoutput
(
'ps aux|grep "subSyncResubACMinus1.json" |grep -v "grep"|awk
\'
{print $2}
\'
'
)[
1
])
print
(
"get sub1 process'pid"
)
subres0Number1
=
int
(
subprocess
.
getstatusoutput
(
'grep "1614218412000" subscribe_res0* |wc -l'
)[
1
])
subres2Number1
=
int
(
subprocess
.
getstatusoutput
(
'grep "1614218412000" subscribe_res2* |wc -l'
)[
1
])
assert
0
==
subres0Number1
,
"subres0Number1 error"
assert
0
==
subres2Number1
,
"subres2Number1 error"
tdSql
.
execute
(
"insert into db.stb00_0 values(1614218412000,'R','bf3',8637,78.861045)(1614218413000,'R','bf3',8637,98.861045)"
)
sleep
(
4
)
subres2Number2
=
int
(
subprocess
.
getstatusoutput
(
'grep "1614218412000" subscribe_res0* |wc -l'
)[
1
])
subres0Number2
=
int
(
subprocess
.
getstatusoutput
(
'grep "1614218412000" subscribe_res0* |wc -l'
)[
1
])
assert
0
!=
subres2Number2
,
"subres2Number2 error"
assert
0
!=
subres0Number2
,
"subres0Number2 error"
os
.
system
(
"kill -9 %d"
%
query_pid1
)
os
.
system
(
"rm -rf ./subscribe_res*"
)
# # resubAfterConsume= -1 endAfter=0 ;
# os.system("%staosdemo -f tools/taosdemoAllTest/subInsertdataMaxsql100.json" % binPath)
# # assert os.system("%staosdemo -f tools/taosdemoAllTest/subSyncSpecMaxsql100.json" % binPath) != 0
# # assert os.system("%staosdemo -f tools/taosdemoAllTest/subSyncSuperMaxsql100.json" % binPath) != 0
# os.system("%staosdemo -f tools/taosdemoAllTest/subSyncKeepStart.json" % binPath)
# tdSql.execute("insert into db.stb00_1 values(1614218412000,'R','bf3',8637,78.861045)(1614218413000,'R','bf3',8637,98.861045)")
# os.system('kill -9 `ps aux|grep "subSyncResubACMinus1endAfter0.json" |grep -v "grep"|awk \'{print $2}\'` ')
# os.system("nohup %staosdemo -f tools/taosdemoAllTest/subResubjson/subSyncResubACMinus1endAfter0.json & " % binPath)
# sleep(2)
# query_pid1 = int(subprocess.getstatusoutput('ps aux|grep "subSyncResubACMinus1endAfter0.json" |grep -v "grep"|awk \'{print $2}\'')[1])
# print("get sub2 process'pid")
# subres0Number1 =int(subprocess.getstatusoutput('grep "1614218412000" subscribe_res0* |wc -l' )[1])
# subres2Number1 =int(subprocess.getstatusoutput('grep "1614218412000" subscribe_res2* |wc -l' )[1])
# assert 0==subres0Number1 , "subres0Number1 error"
# assert 0==subres2Number1 , "subres2Number1 error"
# tdSql.execute("insert into db.stb00_0 values(1614218412000,'R','bf3',8637,78.861045)(1614218413000,'R','bf3',8637,98.861045)")
# sleep(4)
# subres2Number2 =int(subprocess.getstatusoutput('grep "1614218412000" subscribe_res0* |wc -l' )[1])
# subres0Number2 =int(subprocess.getstatusoutput('grep "1614218412000" subscribe_res0* |wc -l' )[1])
# assert 0!=subres2Number2 , "subres2Number2 error"
# assert 0!=subres0Number2 , "subres0Number2 error"
# os.system("kill -9 %d" % query_pid1)
# os.system("rm -rf ./subscribe_res*")
# # # merge result files
...
...
tests/pytest/tools/taosdemoAllTest/taosdemoTestSubWithJsonAsync.py
浏览文件 @
39604d77
...
...
@@ -106,8 +106,9 @@ class TDTestCase:
os
.
system
(
"kill -9 %d"
%
query_pid
)
# # query times less than or equal to 100
# os.system("%staosdemo -f tools/taosdemoAllTest/QuerySpeciMutisql100.json" % binPath)
# os.system("%staosdemo -f tools/taosdemoAllTest/QuerySuperMutisql100.json" % binPath)
os
.
system
(
"%staosdemo -f tools/taosdemoAllTest/subInsertdataMaxsql100.json"
%
binPath
)
assert
os
.
system
(
"%staosdemo -f tools/taosdemoAllTest/subSyncSpecMaxsql100.json"
%
binPath
)
!=
0
assert
os
.
system
(
"%staosdemo -f tools/taosdemoAllTest/subSyncSuperMaxsql100.json"
%
binPath
)
!=
0
# delete useless files
os
.
system
(
"rm -rf ./insert_res.txt"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录