Skip to content

Commit

Permalink
Add missing registration of MongoClientURI to whiteboard in failing t…
Browse files Browse the repository at this point in the history
…ests.
  • Loading branch information
nfsantos committed Apr 25, 2024
1 parent a074ea0 commit 5f58aa9
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -20,6 +20,7 @@
package org.apache.jackrabbit.oak.index;

import com.codahale.metrics.Counter;
import com.mongodb.MongoClientURI;
import com.mongodb.client.MongoDatabase;
import org.apache.jackrabbit.guava.common.collect.Iterators;
import org.apache.jackrabbit.oak.InitialContent;
Expand Down Expand Up @@ -318,6 +319,7 @@ public void bundling() throws Exception {
Whiteboard wb = new DefaultWhiteboard();
MongoDocumentStore ds = (MongoDocumentStore) docBuilder.getDocumentStore();
Registration r1 = wb.register(MongoDocumentStore.class, ds, emptyMap());
wb.register(MongoClientURI.class, c1.getMongoURI(), emptyMap());
wb.register(StatisticsProvider.class, StatisticsProvider.NOOP, emptyMap());
wb.register(IndexingReporter.class, IndexingReporter.NOOP, emptyMap());
Registration c1Registration = wb.register(MongoDatabase.class, c1.getDatabase(), emptyMap());
Expand Down Expand Up @@ -406,6 +408,7 @@ public void metrics() throws Exception {
wb.register(StatisticsProvider.class, metricsStatisticsProvider, emptyMap());
wb.register(IndexingReporter.class, new ConsoleIndexingReporter(), emptyMap());
Registration c1Registration = wb.register(MongoDatabase.class, mongoConnection.getDatabase(), emptyMap());
wb.register(MongoClientURI.class, mongoConnection.getMongoURI(), emptyMap());

configureIndex(store);

Expand Down

0 comments on commit 5f58aa9

Please sign in to comment.