@@ -57,7 +57,6 @@ class KafkaSinkConfigurationTest {
5757
5858 @Test
5959 fun `should return configuration from map` () {
60- val pollingInterval = " 10"
6160 val topic = " topic-neo"
6261 val topicKey = " streams.sink.topic.cypher.$topic "
6362 val topicValue = " MERGE (n:Label{ id: event.id }) "
@@ -66,8 +65,7 @@ class KafkaSinkConfigurationTest {
6665 val group = " foo"
6766 val autoOffsetReset = " latest"
6867 val autoCommit = " false"
69- val config = mapOf (" streams.sink.polling.interval" to pollingInterval,
70- topicKey to topicValue,
68+ val config = mapOf (topicKey to topicValue,
7169 " kafka.zookeeper.connect" to zookeeper,
7270 " kafka.bootstrap.servers" to bootstrap,
7371 " kafka.auto.offset.reset" to autoOffsetReset,
@@ -84,7 +82,7 @@ class KafkaSinkConfigurationTest {
8482
8583 streamsConfig.config.putAll(config)
8684 val kafkaSinkConfiguration = KafkaSinkConfiguration .create(streamsConfig, defaultDbName)
87- StreamsSinkConfigurationTest .testFromConf(kafkaSinkConfiguration.streamsSinkConfiguration, pollingInterval, topic, topicValue)
85+ StreamsSinkConfigurationTest .testFromConf(kafkaSinkConfiguration.streamsSinkConfiguration, topic, topicValue)
8886 assertEquals(emptyMap(), kafkaSinkConfiguration.extraProperties)
8987 assertEquals(zookeeper, kafkaSinkConfiguration.zookeeperConnect)
9088 assertEquals(bootstrap, kafkaSinkConfiguration.bootstrapServers)
@@ -97,15 +95,13 @@ class KafkaSinkConfigurationTest {
9795 assertEquals(expectedMap, resultMap)
9896
9997 val streamsConfig = StreamsSinkConfiguration .from(streamsConfig, defaultDbName)
100- assertEquals(pollingInterval.toLong(), streamsConfig.sinkPollingInterval)
10198 assertTrue { streamsConfig.topics.cypherTopics.containsKey(topic) }
10299 assertEquals(topicValue, streamsConfig.topics.cypherTopics[topic])
103100 }
104101
105102 @Test
106103 fun `should return configuration from map for non default DB` () {
107104 val dbName = " foo"
108- val pollingInterval = " 10"
109105 val topic = " topic-neo"
110106 val topicKey = " streams.sink.topic.cypher.$topic "
111107 val topicValue = " MERGE (n:Label{ id: event.id })"
@@ -116,8 +112,7 @@ class KafkaSinkConfigurationTest {
116112 val group = " mygroup"
117113 val autoOffsetReset = " latest"
118114 val autoCommit = " false"
119- val config = mapOf (" streams.sink.polling.interval" to pollingInterval,
120- topicKey to topicValue,
115+ val config = mapOf (topicKey to topicValue,
121116 topicKeyFoo to topicValueFoo,
122117 " kafka.zookeeper.connect" to zookeeper,
123118 " kafka.bootstrap.servers" to bootstrap,
@@ -135,7 +130,7 @@ class KafkaSinkConfigurationTest {
135130
136131 streamsConfig.config.putAll(config)
137132 val kafkaSinkConfiguration = KafkaSinkConfiguration .create(streamsConfig, dbName)
138- StreamsSinkConfigurationTest .testFromConf(kafkaSinkConfiguration.streamsSinkConfiguration, pollingInterval, topic, topicValueFoo)
133+ StreamsSinkConfigurationTest .testFromConf(kafkaSinkConfiguration.streamsSinkConfiguration, topic, topicValueFoo)
139134 assertEquals(emptyMap(), kafkaSinkConfiguration.extraProperties)
140135 assertEquals(zookeeper, kafkaSinkConfiguration.zookeeperConnect)
141136 assertEquals(bootstrap, kafkaSinkConfiguration.bootstrapServers)
@@ -148,7 +143,6 @@ class KafkaSinkConfigurationTest {
148143 assertEquals(expectedMap, resultMap)
149144
150145 val streamsConfig = StreamsSinkConfiguration .from(streamsConfig, dbName)
151- assertEquals(pollingInterval.toLong(), streamsConfig.sinkPollingInterval)
152146 assertEquals(1 , streamsConfig.topics.cypherTopics.size)
153147 assertTrue { streamsConfig.topics.cypherTopics.containsKey(topic) }
154148 assertEquals(topicValueFoo, streamsConfig.topics.cypherTopics[topic])
@@ -160,15 +154,13 @@ class KafkaSinkConfigurationTest {
160154 val zookeeper = " zookeeper:2181"
161155 val bootstrap = " bootstrap:9092"
162156 try {
163- val pollingInterval = " 10"
164157 val topic = " topic-neo"
165158 val topicKey = " streams.sink.topic.cypher.$topic "
166159 val topicValue = " MERGE (n:Label{ id: event.id }) "
167160 val group = " foo"
168161 val autoOffsetReset = " latest"
169162 val autoCommit = " false"
170- val config = mapOf (" streams.sink.polling.interval" to pollingInterval,
171- topicKey to topicValue,
163+ val config = mapOf (topicKey to topicValue,
172164 " $topicKey .to.foo" to " $topicValue SET n += event.properties" ,
173165 " kafka.zookeeper.connect" to zookeeper,
174166 " kafka.bootstrap.servers" to bootstrap,
@@ -190,15 +182,13 @@ class KafkaSinkConfigurationTest {
190182 val zookeeper = " zookeeper:2181"
191183 val bootstrap = " "
192184 try {
193- val pollingInterval = " 10"
194185 val topic = " topic-neo"
195186 val topicKey = " streams.sink.topic.cypher.$topic "
196187 val topicValue = " MERGE (n:Label{ id: event.id }) "
197188 val group = " foo"
198189 val autoOffsetReset = " latest"
199190 val autoCommit = " false"
200- val config = mapOf (" streams.sink.polling.interval" to pollingInterval,
201- topicKey to topicValue,
191+ val config = mapOf (topicKey to topicValue,
202192 " kafka.zookeeper.connect" to zookeeper,
203193 " kafka.bootstrap.servers" to bootstrap,
204194 " kafka.auto.offset.reset" to autoOffsetReset,
0 commit comments