Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ junit-jupiter = "5.11.4"
licenser = "0.6.1"
log4j = "2.24.3"
mockito = "5.18.0"
pulsar = "4.1.2"
pulsar = "4.2.4"
rat-gradle = "0.8.0"
reactor = "3.7.14"
slf4j = "2.0.17"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ void keySharedPolicy() throws Exception {
expectedConsumerConf.setSubscriptionName("my-sub");
expectedConsumerConf.setSubscriptionType(SubscriptionType.Key_Shared);
expectedConsumerConf.setKeySharedPolicy(keySharedPolicy);
// ConsumerBuilderImpl applies this default at subscribe time when neither
// cryptoFailureAction nor decryptFailListener is configured
expectedConsumerConf.setCryptoFailureAction(ConsumerCryptoFailureAction.FAIL);

CompletableFuture<String> failedConsumer = new CompletableFuture<>();
failedConsumer.completeExceptionally(new RuntimeException("didn't match expected consumer conf"));
Expand Down Expand Up @@ -229,6 +232,9 @@ void topicsPattern() throws Exception {
expectedConsumerConf.setTopicsPattern(topicsPattern);
expectedConsumerConf.setRegexSubscriptionMode(RegexSubscriptionMode.AllTopics);
expectedConsumerConf.setPatternAutoDiscoveryPeriod(1);
// ConsumerBuilderImpl applies this default at subscribe time when neither
// cryptoFailureAction nor decryptFailListener is configured
expectedConsumerConf.setCryptoFailureAction(ConsumerCryptoFailureAction.FAIL);

CompletableFuture<String> failedConsumer = new CompletableFuture<>();
failedConsumer.completeExceptionally(new RuntimeException("didn't match expected consumer conf"));
Expand Down
Loading