Skip to content

Commit

Permalink
made index unique in IndexInitializerIT ti run with Mongo 6
Browse files Browse the repository at this point in the history
  • Loading branch information
thjaeckle committed Feb 24, 2024
1 parent 39f2821 commit 179eccc
Showing 1 changed file with 8 additions and 9 deletions.
Expand Up @@ -25,6 +25,13 @@
import java.util.concurrent.CompletionException;
import java.util.concurrent.CompletionStage;

import org.apache.pekko.Done;
import org.apache.pekko.actor.ActorSystem;
import org.apache.pekko.stream.Materializer;
import org.apache.pekko.stream.SystemMaterializer;
import org.apache.pekko.stream.javadsl.Sink;
import org.apache.pekko.stream.javadsl.Source;
import org.apache.pekko.testkit.javadsl.TestKit;
import org.eclipse.ditto.internal.utils.persistence.mongo.DittoMongoClient;
import org.eclipse.ditto.internal.utils.persistence.mongo.MongoClientWrapper;
import org.eclipse.ditto.internal.utils.persistence.mongo.assertions.MongoIndexAssertions;
Expand All @@ -36,14 +43,6 @@

import com.mongodb.MongoCommandException;

import org.apache.pekko.Done;
import org.apache.pekko.actor.ActorSystem;
import org.apache.pekko.stream.Materializer;
import org.apache.pekko.stream.SystemMaterializer;
import org.apache.pekko.stream.javadsl.Sink;
import org.apache.pekko.stream.javadsl.Source;
import org.apache.pekko.testkit.javadsl.TestKit;

/**
* MongoDB integration test for {@link IndexInitializer}.
*/
Expand All @@ -63,7 +62,7 @@ public final class IndexInitializerIT {

private static final String FOO_KEY = "foo_key";
private static final Index INDEX_FOO = IndexFactory.newInstanceWithCustomKeys(FOO_KEY,
Collections.singletonList(DefaultIndexKey.of(FOO_FIELD, IndexDirection.ASCENDING)), false);
Collections.singletonList(DefaultIndexKey.of(FOO_FIELD, IndexDirection.ASCENDING)), true);
private static final String FOO_DESCENDING_KEY = "foo_descending_key";
private static final Index INDEX_FOO_DESCENDING =
IndexFactory.newInstanceWithCustomKeys(FOO_DESCENDING_KEY,
Expand Down

0 comments on commit 179eccc

Please sign in to comment.