xinyuiscool commented on a change in pull request #1165: SAMZA-2326 : Add
interface to support specific configs
URL: https://github.com/apache/samza/pull/1165#discussion_r327268253
##########
File path:
samza-core/src/test/scala/org/apache/samza/util/TestCoordinatorStreamUtil.scala
##########
@@ -40,6 +41,23 @@ class TestCoordinatorStreamUtil {
Mockito.verify(systemAdmin).createStream(any(classOf[StreamSpec]))
}
+ @Test
+ def testBuildCoordinatorStreamConfig: Unit = {
+ val addConfig = new util.HashMap[String, String]
+ addConfig.put("job.name", "test-job-name")
+ addConfig.put("job.id", "i001")
+ addConfig.put("job.coordinator.system", "samzatest")
+ addConfig.put("systems.samzatest.test","test")
+ addConfig.put("test.only","nothing")
+ val config = new MapConfig(addConfig)
+
+ var configMap = CoordinatorStreamUtil.buildCoordinatorStreamConfig(config)
+
+
Review comment:
extra line?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services