Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
87c0d49b
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,发现更多精彩内容 >>
未验证
提交
87c0d49b
编写于
9月 01, 2022
作者:
H
Hui Li
提交者:
GitHub
9月 01, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #16533 from taosdata/test3.0/lihui
Test3.0/lihui
上级
1521a92b
9407f049
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
6 deletion
+16
-6
tests/system-test/7-tmq/tmqShow.py
tests/system-test/7-tmq/tmqShow.py
+13
-4
tests/system-test/fulltest.sh
tests/system-test/fulltest.sh
+3
-2
未找到文件。
tests/system-test/7-tmq/tmqShow.py
浏览文件 @
87c0d49b
...
...
@@ -19,6 +19,11 @@ class TDTestCase:
tdLog
.
debug
(
f
"start to excute
{
__file__
}
"
)
tdSql
.
init
(
conn
.
cursor
())
#tdSql.init(conn.cursor(), logSql) # output sql.txt file
def
insertConsumerInfo
(
self
,
consumerId
,
expectrowcnt
,
topicList
,
keyList
,
ifcheckdata
,
ifmanualcommit
,
offset
=
1
,
cdbName
=
'cdb'
):
sql
=
"insert into %s.consumeinfo values "
%
cdbName
sql
+=
"(now+%ds, %d, '%s', '%s', %d, %d, %d)"
%
(
offset
,
consumerId
,
topicList
,
keyList
,
expectrowcnt
,
ifcheckdata
,
ifmanualcommit
)
tdLog
.
info
(
"consume info sql: %s"
%
sql
)
tdSql
.
query
(
sql
)
def
tmqCase1
(
self
):
tdLog
.
printNoPrefix
(
"======== test case 1: "
)
...
...
@@ -95,19 +100,23 @@ class TDTestCase:
ifcheckdata
=
0
ifManualCommit
=
0
keyList
=
'group.id:%s, enable.auto.commit:false, auto.commit.interval.ms:6000, auto.offset.reset:earliest'
%
consumeGroupIdList
[
0
]
tmqCom
.
insertConsumerInfo
(
consumerIdList
[
0
],
expectrowcnt
,
topicList
,
keyList
,
ifcheckdata
,
ifManualCommit
)
tsOffset
=
1
self
.
insertConsumerInfo
(
consumerIdList
[
0
],
expectrowcnt
,
topicList
,
keyList
,
ifcheckdata
,
ifManualCommit
,
tsOffset
)
topicList
=
topicNameList
[
1
]
keyList
=
'group.id:%s, enable.auto.commit:false, auto.commit.interval.ms:6000, auto.offset.reset:earliest'
%
consumeGroupIdList
[
1
]
tmqCom
.
insertConsumerInfo
(
consumerIdList
[
1
],
expectrowcnt
,
topicList
,
keyList
,
ifcheckdata
,
ifManualCommit
)
tsOffset
=
2
self
.
insertConsumerInfo
(
consumerIdList
[
1
],
expectrowcnt
,
topicList
,
keyList
,
ifcheckdata
,
ifManualCommit
,
tsOffset
)
topicList
=
topicNameList
[
2
]
keyList
=
'group.id:%s, enable.auto.commit:false, auto.commit.interval.ms:6000, auto.offset.reset:earliest'
%
consumeGroupIdList
[
2
]
tmqCom
.
insertConsumerInfo
(
consumerIdList
[
2
],
expectrowcnt
,
topicList
,
keyList
,
ifcheckdata
,
ifManualCommit
)
tsOffset
=
3
self
.
insertConsumerInfo
(
consumerIdList
[
2
],
expectrowcnt
,
topicList
,
keyList
,
ifcheckdata
,
ifManualCommit
,
tsOffset
)
topicList
=
topicNameList
[
3
]
keyList
=
'group.id:%s, enable.auto.commit:false, auto.commit.interval.ms:6000, auto.offset.reset:earliest'
%
consumeGroupIdList
[
3
]
tmqCom
.
insertConsumerInfo
(
consumerIdList
[
3
],
expectrowcnt
,
topicList
,
keyList
,
ifcheckdata
,
ifManualCommit
)
tsOffset
=
4
self
.
insertConsumerInfo
(
consumerIdList
[
3
],
expectrowcnt
,
topicList
,
keyList
,
ifcheckdata
,
ifManualCommit
,
tsOffset
)
tdLog
.
info
(
"start consume processor"
)
tmqCom
.
startTmqSimProcess
(
paraDict
[
'pollDelay'
],
paraDict
[
"dbName"
],
paraDict
[
'showMsg'
],
paraDict
[
'showRow'
])
...
...
tests/system-test/fulltest.sh
浏览文件 @
87c0d49b
...
...
@@ -314,8 +314,8 @@ python3 ./test.py -f 7-tmq/tmqConsFromTsdb-mutilVg-mutilCtb.py
python3 ./test.py
-f
7-tmq/tmqConsFromTsdb1-1ctb-funcNFilter.py
python3 ./test.py
-f
7-tmq/tmqConsFromTsdb1-mutilVg-mutilCtb-funcNFilter.py
python3 ./test.py
-f
7-tmq/tmqConsFromTsdb1-mutilVg-mutilCtb.py
#
python3 ./test.py -f 7-tmq/tmqAutoCreateTbl.py
#
python3 ./test.py -f 7-tmq/tmqDnodeRestart.py
python3 ./test.py
-f
7-tmq/tmqAutoCreateTbl.py
python3 ./test.py
-f
7-tmq/tmqDnodeRestart.py
python3 ./test.py
-f
7-tmq/tmqUpdate-1ctb.py
python3 ./test.py
-f
7-tmq/tmqUpdateWithConsume.py
python3 ./test.py
-f
7-tmq/tmqUpdate-multiCtb-snapshot0.py
...
...
@@ -514,3 +514,4 @@ python3 ./test.py -f 2-query/last_row.py -Q 3
python3 ./test.py
-f
2-query/tsbsQuery.py
-Q
3
python3 ./test.py
-f
2-query/sml.py
-Q
3
python3 ./test.py
-f
2-query/interp.py
-Q
3
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录