Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
0526051e
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
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看板
提交
0526051e
编写于
1月 04, 2022
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
minor changes
上级
821b9ea4
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
48 addition
and
47 deletion
+48
-47
source/dnode/mgmt/impl/test/CMakeLists.txt
source/dnode/mgmt/impl/test/CMakeLists.txt
+0
-3
source/dnode/mnode/impl/test/CMakeLists.txt
source/dnode/mnode/impl/test/CMakeLists.txt
+5
-1
source/dnode/mnode/impl/test/acct/acct.cpp
source/dnode/mnode/impl/test/acct/acct.cpp
+1
-1
source/dnode/mnode/impl/test/bnode/CMakeLists.txt
source/dnode/mnode/impl/test/bnode/CMakeLists.txt
+0
-0
source/dnode/mnode/impl/test/bnode/bnode.cpp
source/dnode/mnode/impl/test/bnode/bnode.cpp
+13
-13
source/dnode/mnode/impl/test/qnode/CMakeLists.txt
source/dnode/mnode/impl/test/qnode/CMakeLists.txt
+0
-0
source/dnode/mnode/impl/test/qnode/qnode.cpp
source/dnode/mnode/impl/test/qnode/qnode.cpp
+13
-13
source/dnode/mnode/impl/test/snode/CMakeLists.txt
source/dnode/mnode/impl/test/snode/CMakeLists.txt
+0
-0
source/dnode/mnode/impl/test/snode/snode.cpp
source/dnode/mnode/impl/test/snode/snode.cpp
+13
-13
source/dnode/mnode/impl/test/trans/trans.cpp
source/dnode/mnode/impl/test/trans/trans.cpp
+1
-1
source/dnode/mnode/impl/test/user/user.cpp
source/dnode/mnode/impl/test/user/user.cpp
+2
-2
未找到文件。
source/dnode/mgmt/impl/test/CMakeLists.txt
浏览文件 @
0526051e
...
...
@@ -7,9 +7,6 @@ add_subdirectory(db)
add_subdirectory
(
dnode
)
# add_subdirectory(func)
add_subdirectory
(
mnode
)
add_subdirectory
(
qnode
)
add_subdirectory
(
snode
)
add_subdirectory
(
bnode
)
add_subdirectory
(
profile
)
add_subdirectory
(
show
)
add_subdirectory
(
stb
)
...
...
source/dnode/mnode/impl/test/CMakeLists.txt
浏览文件 @
0526051e
enable_testing
()
add_subdirectory
(
acct
)
add_subdirectory
(
user
)
add_subdirectory
(
acct
)
add_subdirectory
(
trans
)
add_subdirectory
(
qnode
)
add_subdirectory
(
snode
)
add_subdirectory
(
bnode
)
source/dnode/mnode/impl/test/acct/acct.cpp
浏览文件 @
0526051e
...
...
@@ -3,7 +3,7 @@
* @author slguan (slguan@taosdata.com)
* @brief MNODE module acct tests
* @version 1.0
* @date 202
1-12-15
* @date 202
2-01-04
*
* @copyright Copyright (c) 2022
*
...
...
source/dnode/m
gmt
/impl/test/bnode/CMakeLists.txt
→
source/dnode/m
node
/impl/test/bnode/CMakeLists.txt
浏览文件 @
0526051e
文件已移动
source/dnode/m
gmt
/impl/test/bnode/bnode.cpp
→
source/dnode/m
node
/impl/test/bnode/bnode.cpp
浏览文件 @
0526051e
/**
* @file
d
node.cpp
* @file
b
node.cpp
* @author slguan (slguan@taosdata.com)
* @brief
DNODE module dnode-msg
tests
* @version
0.1
* @date 202
1-12-1
5
* @brief
MNODE module bnode
tests
* @version
1.0
* @date 202
2-01-0
5
*
* @copyright Copyright (c) 202
1
* @copyright Copyright (c) 202
2
*
*/
...
...
@@ -18,11 +18,11 @@ class DndTestBnode : public ::testing::Test {
public:
static
void
SetUpTestSuite
()
{
test
.
Init
(
"/tmp/
dnode_test_bnode1"
,
906
8
);
test
.
Init
(
"/tmp/
mnode_test_bnode1"
,
901
8
);
const
char
*
fqdn
=
"localhost"
;
const
char
*
firstEp
=
"localhost:90
6
8"
;
const
char
*
firstEp
=
"localhost:90
1
8"
;
server2
.
Start
(
"/tmp/
dnode_test_bnode2"
,
fqdn
,
906
9
,
firstEp
);
server2
.
Start
(
"/tmp/
mnode_test_bnode2"
,
fqdn
,
901
9
,
firstEp
);
taosMsleep
(
300
);
}
...
...
@@ -72,7 +72,7 @@ TEST_F(DndTestBnode, 02_Create_Bnode_Invalid_Id) {
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
CheckInt16
(
1
);
CheckBinary
(
"localhost:90
6
8"
,
TSDB_EP_LEN
);
CheckBinary
(
"localhost:90
1
8"
,
TSDB_EP_LEN
);
CheckTimestamp
();
}
}
...
...
@@ -97,7 +97,7 @@ TEST_F(DndTestBnode, 04_Create_Bnode) {
SCreateDnodeMsg
*
pReq
=
(
SCreateDnodeMsg
*
)
rpcMallocCont
(
contLen
);
strcpy
(
pReq
->
fqdn
,
"localhost"
);
pReq
->
port
=
htonl
(
90
6
9
);
pReq
->
port
=
htonl
(
90
1
9
);
SRpcMsg
*
pMsg
=
test
.
SendMsg
(
TDMT_MND_CREATE_DNODE
,
pReq
,
contLen
);
ASSERT_NE
(
pMsg
,
nullptr
);
...
...
@@ -126,8 +126,8 @@ TEST_F(DndTestBnode, 04_Create_Bnode) {
CheckInt16
(
1
);
CheckInt16
(
2
);
CheckBinary
(
"localhost:90
6
8"
,
TSDB_EP_LEN
);
CheckBinary
(
"localhost:90
6
9"
,
TSDB_EP_LEN
);
CheckBinary
(
"localhost:90
1
8"
,
TSDB_EP_LEN
);
CheckBinary
(
"localhost:90
1
9"
,
TSDB_EP_LEN
);
CheckTimestamp
();
CheckTimestamp
();
}
...
...
@@ -148,7 +148,7 @@ TEST_F(DndTestBnode, 04_Create_Bnode) {
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
CheckInt16
(
1
);
CheckBinary
(
"localhost:90
6
8"
,
TSDB_EP_LEN
);
CheckBinary
(
"localhost:90
1
8"
,
TSDB_EP_LEN
);
CheckTimestamp
();
}
}
\ No newline at end of file
source/dnode/m
gmt
/impl/test/qnode/CMakeLists.txt
→
source/dnode/m
node
/impl/test/qnode/CMakeLists.txt
浏览文件 @
0526051e
文件已移动
source/dnode/m
gmt
/impl/test/qnode/qnode.cpp
→
source/dnode/m
node
/impl/test/qnode/qnode.cpp
浏览文件 @
0526051e
/**
* @file
d
node.cpp
* @file
q
node.cpp
* @author slguan (slguan@taosdata.com)
* @brief
DNODE module dnode-msg
tests
* @version
0.1
* @date 202
1-12-1
5
* @brief
MNODE module qnode
tests
* @version
1.0
* @date 202
2-01-0
5
*
* @copyright Copyright (c) 202
1
* @copyright Copyright (c) 202
2
*
*/
...
...
@@ -18,11 +18,11 @@ class DndTestQnode : public ::testing::Test {
public:
static
void
SetUpTestSuite
()
{
test
.
Init
(
"/tmp/
dnode_test_qnode1"
,
906
4
);
test
.
Init
(
"/tmp/
mnode_test_qnode1"
,
901
4
);
const
char
*
fqdn
=
"localhost"
;
const
char
*
firstEp
=
"localhost:90
6
4"
;
const
char
*
firstEp
=
"localhost:90
1
4"
;
server2
.
Start
(
"/tmp/
dnode_test_qnode2"
,
fqdn
,
906
5
,
firstEp
);
server2
.
Start
(
"/tmp/
mnode_test_qnode2"
,
fqdn
,
901
5
,
firstEp
);
taosMsleep
(
300
);
}
...
...
@@ -72,7 +72,7 @@ TEST_F(DndTestQnode, 02_Create_Qnode_Invalid_Id) {
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
CheckInt16
(
1
);
CheckBinary
(
"localhost:90
6
4"
,
TSDB_EP_LEN
);
CheckBinary
(
"localhost:90
1
4"
,
TSDB_EP_LEN
);
CheckTimestamp
();
}
}
...
...
@@ -97,7 +97,7 @@ TEST_F(DndTestQnode, 04_Create_Qnode) {
SCreateDnodeMsg
*
pReq
=
(
SCreateDnodeMsg
*
)
rpcMallocCont
(
contLen
);
strcpy
(
pReq
->
fqdn
,
"localhost"
);
pReq
->
port
=
htonl
(
90
6
5
);
pReq
->
port
=
htonl
(
90
1
5
);
SRpcMsg
*
pMsg
=
test
.
SendMsg
(
TDMT_MND_CREATE_DNODE
,
pReq
,
contLen
);
ASSERT_NE
(
pMsg
,
nullptr
);
...
...
@@ -126,8 +126,8 @@ TEST_F(DndTestQnode, 04_Create_Qnode) {
CheckInt16
(
1
);
CheckInt16
(
2
);
CheckBinary
(
"localhost:90
6
4"
,
TSDB_EP_LEN
);
CheckBinary
(
"localhost:90
6
5"
,
TSDB_EP_LEN
);
CheckBinary
(
"localhost:90
1
4"
,
TSDB_EP_LEN
);
CheckBinary
(
"localhost:90
1
5"
,
TSDB_EP_LEN
);
CheckTimestamp
();
CheckTimestamp
();
}
...
...
@@ -148,7 +148,7 @@ TEST_F(DndTestQnode, 04_Create_Qnode) {
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
CheckInt16
(
1
);
CheckBinary
(
"localhost:90
6
4"
,
TSDB_EP_LEN
);
CheckBinary
(
"localhost:90
1
4"
,
TSDB_EP_LEN
);
CheckTimestamp
();
}
}
\ No newline at end of file
source/dnode/m
gmt
/impl/test/snode/CMakeLists.txt
→
source/dnode/m
node
/impl/test/snode/CMakeLists.txt
浏览文件 @
0526051e
文件已移动
source/dnode/m
gmt
/impl/test/snode/snode.cpp
→
source/dnode/m
node
/impl/test/snode/snode.cpp
浏览文件 @
0526051e
/**
* @file
d
node.cpp
* @file
s
node.cpp
* @author slguan (slguan@taosdata.com)
* @brief
DNODE module dnode-msg
tests
* @version
0.1
* @date 202
1-12-1
5
* @brief
MNODE module snode
tests
* @version
1.0
* @date 202
2-01-0
5
*
* @copyright Copyright (c) 202
1
* @copyright Copyright (c) 202
2
*
*/
...
...
@@ -18,11 +18,11 @@ class DndTestSnode : public ::testing::Test {
public:
static
void
SetUpTestSuite
()
{
test
.
Init
(
"/tmp/
dnode_test_snode1"
,
906
6
);
test
.
Init
(
"/tmp/
mnode_test_snode1"
,
901
6
);
const
char
*
fqdn
=
"localhost"
;
const
char
*
firstEp
=
"localhost:90
6
6"
;
const
char
*
firstEp
=
"localhost:90
1
6"
;
server2
.
Start
(
"/tmp/
dnode_test_snode2"
,
fqdn
,
906
7
,
firstEp
);
server2
.
Start
(
"/tmp/
mnode_test_snode2"
,
fqdn
,
901
7
,
firstEp
);
taosMsleep
(
300
);
}
...
...
@@ -72,7 +72,7 @@ TEST_F(DndTestSnode, 02_Create_Snode_Invalid_Id) {
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
CheckInt16
(
1
);
CheckBinary
(
"localhost:90
6
6"
,
TSDB_EP_LEN
);
CheckBinary
(
"localhost:90
1
6"
,
TSDB_EP_LEN
);
CheckTimestamp
();
}
}
...
...
@@ -97,7 +97,7 @@ TEST_F(DndTestSnode, 04_Create_Snode) {
SCreateDnodeMsg
*
pReq
=
(
SCreateDnodeMsg
*
)
rpcMallocCont
(
contLen
);
strcpy
(
pReq
->
fqdn
,
"localhost"
);
pReq
->
port
=
htonl
(
90
6
7
);
pReq
->
port
=
htonl
(
90
1
7
);
SRpcMsg
*
pMsg
=
test
.
SendMsg
(
TDMT_MND_CREATE_DNODE
,
pReq
,
contLen
);
ASSERT_NE
(
pMsg
,
nullptr
);
...
...
@@ -126,8 +126,8 @@ TEST_F(DndTestSnode, 04_Create_Snode) {
CheckInt16
(
1
);
CheckInt16
(
2
);
CheckBinary
(
"localhost:90
6
6"
,
TSDB_EP_LEN
);
CheckBinary
(
"localhost:90
6
7"
,
TSDB_EP_LEN
);
CheckBinary
(
"localhost:90
1
6"
,
TSDB_EP_LEN
);
CheckBinary
(
"localhost:90
1
7"
,
TSDB_EP_LEN
);
CheckTimestamp
();
CheckTimestamp
();
}
...
...
@@ -148,7 +148,7 @@ TEST_F(DndTestSnode, 04_Create_Snode) {
EXPECT_EQ
(
test
.
GetShowRows
(),
1
);
CheckInt16
(
1
);
CheckBinary
(
"localhost:90
6
6"
,
TSDB_EP_LEN
);
CheckBinary
(
"localhost:90
1
6"
,
TSDB_EP_LEN
);
CheckTimestamp
();
}
}
\ No newline at end of file
source/dnode/mnode/impl/test/trans/trans.cpp
浏览文件 @
0526051e
...
...
@@ -2,7 +2,7 @@
* @file trans.cpp
* @author slguan (slguan@taosdata.com)
* @brief MNODE module trans tests
* @version
0.1
* @version
1.0
* @date 2022-01-04
*
* @copyright Copyright (c) 2022
...
...
source/dnode/mnode/impl/test/user/user.cpp
浏览文件 @
0526051e
...
...
@@ -3,9 +3,9 @@
* @author slguan (slguan@taosdata.com)
* @brief MNODE module user tests
* @version 1.0
* @date 202
1-12-15
* @date 202
2-01-04
*
* @copyright Copyright (c) 202
1
* @copyright Copyright (c) 202
2
*
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录