|
|
|
|
@ -112,6 +112,14 @@ public class ReactiveMongoClientFactoryTests {
@@ -112,6 +112,14 @@ public class ReactiveMongoClientFactoryTests {
|
|
|
|
|
assertMongoCredential(credential, "user", "secret", "test"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
public void retryWritesIsPropagatedFromUri() { |
|
|
|
|
MongoProperties properties = new MongoProperties(); |
|
|
|
|
properties.setUri("mongodb://localhost/test?retryWrites=true"); |
|
|
|
|
MongoClient client = createMongoClient(properties); |
|
|
|
|
assertThat(client.getSettings().getRetryWrites()).isTrue(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
public void uriCannotBeSetWithCredentials() { |
|
|
|
|
MongoProperties properties = new MongoProperties(); |
|
|
|
|
|