We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cc3f76 commit 502a119Copy full SHA for 502a119
src/test/java/com/arangodb/ArangoDatabaseTest.java
@@ -191,9 +191,12 @@ void createCollectionWithSmartJoinAttribute(ArangoDatabase db) {
191
assumeTrue(isEnterprise());
192
assumeTrue(isCluster());
193
194
+ String fooName = "collection-" + rnd();
195
+ db.collection(fooName).create();
196
+
197
String name = "collection-" + rnd();
198
final CollectionEntity result = db.createCollection(name,
- new CollectionCreateOptions().smartJoinAttribute("test123").shardKeys("_key:"));
199
+ new CollectionCreateOptions().smartJoinAttribute("test123").distributeShardsLike(fooName).shardKeys("_key:"));
200
assertThat(result).isNotNull();
201
assertThat(result.getId()).isNotNull();
202
assertThat(db.collection(name).getProperties().getSmartJoinAttribute()).isEqualTo("test123");
0 commit comments