Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
fef23f6e
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
fef23f6e
编写于
5月 19, 2021
作者:
haoranc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
testcase-modify sub
上级
e0a896ff
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
125 addition
and
4 deletion
+125
-4
tests/pytest/tools/taosdemoAllTest/subInsertdataMaxsql100.json
.../pytest/tools/taosdemoAllTest/subInsertdataMaxsql100.json
+1
-1
tests/pytest/tools/taosdemoAllTest/subLzInsert.json
tests/pytest/tools/taosdemoAllTest/subLzInsert.json
+44
-0
tests/pytest/tools/taosdemoAllTest/subStb2.json
tests/pytest/tools/taosdemoAllTest/subStb2.json
+24
-0
tests/pytest/tools/taosdemoAllTest/subSyncKeepStart.json
tests/pytest/tools/taosdemoAllTest/subSyncKeepStart.json
+47
-0
tests/pytest/tools/taosdemoAllTest/subSyncMaxsql100.json
tests/pytest/tools/taosdemoAllTest/subSyncMaxsql100.json
+1
-1
tests/pytest/tools/taosdemoAllTest/taosdemoTestSubWithJson.py
...s/pytest/tools/taosdemoAllTest/taosdemoTestSubWithJson.py
+8
-2
未找到文件。
tests/pytest/tools/taosdemoAllTest/subInsertdataMaxsql100.json
浏览文件 @
fef23f6e
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
"batch_create_tbl_num"
:
1000
,
"batch_create_tbl_num"
:
1000
,
"data_source"
:
"rand"
,
"data_source"
:
"rand"
,
"insert_mode"
:
"taosc"
,
"insert_mode"
:
"taosc"
,
"insert_rows"
:
1
0
,
"insert_rows"
:
2
0
,
"childtable_limit"
:
0
,
"childtable_limit"
:
0
,
"childtable_offset"
:
0
,
"childtable_offset"
:
0
,
"interlace_rows"
:
0
,
"interlace_rows"
:
0
,
...
...
tests/pytest/tools/taosdemoAllTest/subLzInsert.json
0 → 100644
浏览文件 @
fef23f6e
{
"filetype"
:
"insert"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"node1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"thread_count"
:
4
,
"thread_count_create_tbl"
:
4
,
"num_of_records_per_req"
:
10000
,
"result_file"
:
"insert_stb1.txt"
,
"confirm_parameter_prompt"
:
"no"
,
"databases"
:
[{
"dbinfo"
:
{
"name"
:
"dy"
,
"drop"
:
"yes"
},
"super_tables"
:
[{
"name"
:
"stb2"
,
"child_table_exists"
:
"no"
,
"childtable_count"
:
100
,
"childtable_prefix"
:
"t2_"
,
"auto_create_table"
:
"no"
,
"batch_create_tbl_num"
:
500
,
"data_source"
:
"rand"
,
"insert_mode"
:
"taosc"
,
"insert_interval"
:
0
,
"insert_rows"
:
20
,
"interlace_rows"
:
0
,
"childtable_limit"
:
10000
,
"childtable_offset"
:
1
,
"max_sql_len"
:
1048576
,
"disorder_ratio"
:
0
,
"disorder_range"
:
1000
,
"timestamp_step"
:
1000
,
"start_timestamp"
:
"now"
,
"sample_format"
:
""
,
"sample_file"
:
""
,
"tags_file"
:
""
,
"columns"
:
[{
"type"
:
"DOUBLE"
,
"count"
:
1
},{
"type"
:
"TIMESTAMP"
,
"count"
:
1
},{
"type"
:
"SMALLINT"
,
"count"
:
2
}],
"tags"
:
[{
"type"
:
"INT"
,
"count"
:
1
},{
"type"
:
"BINARY"
,
"len"
:
32
,
"count"
:
11
},{
"type"
:
"NCHAR"
,
"len"
:
64
,
"count"
:
4
}]
}]
}]
}
\ No newline at end of file
tests/pytest/tools/taosdemoAllTest/subStb2.json
0 → 100644
浏览文件 @
fef23f6e
{
"filetype"
:
"subscribe"
,
"cfgdir"
:
"/etc/taos"
,
"host"
:
"node1"
,
"port"
:
6030
,
"user"
:
"root"
,
"password"
:
"taosdata"
,
"databases"
:
"dy"
,
"confirm_parameter_prompt"
:
"no"
,
"specified_table_query"
:
{
"concurrent"
:
1
,
"mode"
:
"sync"
,
"interval"
:
0
,
"restart"
:
"no"
,
"keepProgress"
:
"no"
,
"sqls"
:
[
{
"sql"
:
"select * from stb2 where ts>'2021-01-01 09:35:00.000' ;"
,
"result"
:
"./sub_stb2.txt"
}]
}
}
\ No newline at end of file
tests/pytest/tools/taosdemoAllTest/subSyncKeepStart.json
0 → 100644
浏览文件 @
fef23f6e
{
"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
,
"restartAfterConsume"
:
0
,
"restart"
:
"yes"
,
"keepProgress"
:
"yes"
,
"sqls"
:
[
{
"sql"
:
"select * from stb00_0"
,
"result"
:
"./subscribe_res0.txt"
},
{
"sql"
:
"select ts from stb00_1"
,
"result"
:
"./subscribe_res1.txt"
}]
},
"super_table_query"
:
{
"stblname"
:
"stb0"
,
"threads"
:
2
,
"mode"
:
"sync"
,
"interval"
:
10000
,
"restartAfterConsume"
:
0
,
"restart"
:
"yes"
,
"keepProgress"
:
"yes"
,
"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
tests/pytest/tools/taosdemoAllTest/subSyncMaxsql100.json
浏览文件 @
fef23f6e
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
{
{
"concurrent"
:
2
,
"concurrent"
:
2
,
"mode"
:
"sync"
,
"mode"
:
"sync"
,
"interval"
:
1000
0
,
"interval"
:
0
,
"restart"
:
"no"
,
"restart"
:
"no"
,
"keepProgress"
:
"no"
,
"keepProgress"
:
"no"
,
"sqls"
:
[
"sqls"
:
[
...
...
tests/pytest/tools/taosdemoAllTest/taosdemoTestSubWithJson.py
浏览文件 @
fef23f6e
...
@@ -113,8 +113,14 @@ class TDTestCase:
...
@@ -113,8 +113,14 @@ 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
)
# os.system("%staosdemo -f tools/taosdemoAllTest/subSupermaxsql100.json" % binPath)
# os.system("%staosdemo -f tools/taosdemoAllTest/subSupermaxsql100.json" % binPath)
# os.system("%staosdemo -f tools/taosdemoAllTest/subLzInsert.json" % binPath)
# os.system("%staosdemo -f tools/taosdemoAllTest/subStb2.json" % binPath)
# delete useless files
# delete useless files
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录