Skip to content

Commit ed375a4

Browse files
author
Julien Ruaux
committed
deps: Upgraded Lettucemod and Spring Batch Redis
1 parent 095151c commit ed375a4

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
<awaitility.version>4.2.0</awaitility.version>
2626
<jruby.version>9.2.17.0</jruby.version>
2727
<junit.version>5.8.1</junit.version>
28-
<lettucemod.version>2.19.3</lettucemod.version>
28+
<lettucemod.version>3.0.0</lettucemod.version>
2929
<mockito.version>4.6.1</mockito.version>
30-
<reactor.version>3.4.19</reactor.version>
31-
<spring-batch-redis.version>2.30.3</spring-batch-redis.version>
30+
<reactor.version>3.4.21</reactor.version>
31+
<spring-batch-redis.version>2.31.0</spring-batch-redis.version>
3232
<spring-batch.version>4.3.6</spring-batch.version>
3333
<slf4j.version>1.7.36</slf4j.version>
3434
<testcontainers-redis.version>1.6.0</testcontainers-redis.version>

src/test/integration/java/com/redis/kafka/connect/RedisSinkTaskIT.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ void putTimeSeries(RedisTestContext redis) {
320320
new SchemaAndValue(Schema.FLOAT64_SCHEMA, value)));
321321
}
322322
put(topic, RedisSinkConfig.DataType.TIMESERIES, redis, records);
323-
List<Sample> actualSamples = redis.sync().range(topic, TimeRange.unbounded());
323+
List<Sample> actualSamples = redis.sync().tsRange(topic, TimeRange.unbounded());
324324
assertEquals(expectedSamples.size(), actualSamples.size());
325325
for (int index = 0; index < expectedSamples.size(); index++) {
326326
Sample expectedSample = expectedSamples.get(index);
@@ -362,8 +362,8 @@ void putRpush(RedisTestContext redis) {
362362
records.add(SinkRecordHelper.write(topic, new SchemaAndValue(Schema.STRING_SCHEMA, member),
363363
new SchemaAndValue(Schema.STRING_SCHEMA, member)));
364364
}
365-
put(topic, RedisSinkConfig.DataType.LIST, redis, records,
366-
RedisSinkConfig.PUSH_DIRECTION_CONFIG, RedisSinkConfig.PushDirection.RIGHT.name());
365+
put(topic, RedisSinkConfig.DataType.LIST, redis, records, RedisSinkConfig.PUSH_DIRECTION_CONFIG,
366+
RedisSinkConfig.PushDirection.RIGHT.name());
367367
List<String> actual = redis.sync().lrange(topic, 0, -1);
368368
assertEquals(expected, actual);
369369
}
@@ -477,13 +477,13 @@ void putZset(RedisTestContext context) {
477477
assertEquals(expected, actual);
478478
}
479479

480-
public void put(String topic, RedisSinkConfig.DataType type, RedisTestContext context,
481-
List<SinkRecord> records, String... props) {
480+
public void put(String topic, RedisSinkConfig.DataType type, RedisTestContext context, List<SinkRecord> records,
481+
String... props) {
482482
SinkTaskContext taskContext = mock(SinkTaskContext.class);
483483
when(taskContext.assignment()).thenReturn(ImmutableSet.of(new TopicPartition(topic, 1)));
484484
task.initialize(taskContext);
485-
Map<String, String> propsMap = map(RedisSinkConfig.URI_CONFIG,
486-
context.getServer().getRedisURI(), RedisSinkConfig.TYPE_CONFIG, type.name());
485+
Map<String, String> propsMap = map(RedisSinkConfig.URI_CONFIG, context.getServer().getRedisURI(),
486+
RedisSinkConfig.TYPE_CONFIG, type.name());
487487
propsMap.putAll(map(props));
488488
task.start(propsMap);
489489
task.put(records);

0 commit comments

Comments
 (0)