You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/08/02 02:50:03 UTC
[GitHub] [inlong] haifxu commented on a diff in pull request #5320: [INLONG-4929][Manager] Add stream source API in Manager client
haifxu commented on code in PR #5320:
URL: https://github.com/apache/inlong/pull/5320#discussion_r935066834
##########
inlong-manager/manager-client/src/test/java/org/apache/inlong/manager/client/api/inner/ClientFactoryTest.java:
##########
@@ -907,4 +910,32 @@ void testGetNode() {
ClusterNodeResponse clientNode = clusterClient.getNode(1);
Assertions.assertEquals(1, clientNode.getId());
}
+
+ @Test
+ void testGetStreamSourceById() {
+ StreamSource streamSource = MySQLBinlogSource.builder()
+ .id(1)
+ .inlongGroupId("test_group")
+ .inlongStreamId("test_stream")
+ .sourceType(SourceType.MYSQL_BINLOG)
+ .sourceName("test_source")
+ .agentIp("127.0.0.1")
+ .inlongClusterName("test_cluster")
+ .user("root")
Review Comment:
Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org