File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
driver-async/src/test/functional/com/mongodb/async/client
driver-sync/src/test/functional/com/mongodb/client Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 50
50
51
51
import static com .mongodb .ClusterFixture .getSslSettings ;
52
52
import static com .mongodb .ClusterFixture .isDiscoverableReplicaSet ;
53
- import static com .mongodb .ClusterFixture .serverVersionAtLeast ;
54
53
import static org .junit .Assert .assertEquals ;
55
54
import static org .junit .Assert .assertTrue ;
56
55
import static org .junit .Assert .fail ;
@@ -122,7 +121,6 @@ public void shouldDiscover() throws InterruptedException {
122
121
final SslSettings sslSettings = getSslSettings (connectionString );
123
122
124
123
assumeTrue ("It's not a replica set" , isDiscoverableReplicaSet ());
125
- assumeTrue ("Server version is >= 4.0" , !serverVersionAtLeast (4 , 0 ));
126
124
assumeTrue ("SSL settings don't match" , getSslSettings ().isEnabled () == sslSettings .isEnabled ());
127
125
128
126
com .mongodb .MongoClientSettings settings = com .mongodb .MongoClientSettings .builder ()
@@ -159,6 +157,7 @@ public void clusterDescriptionChanged(final ClusterDescriptionChangedEvent event
159
157
@ Override
160
158
public void apply (final SslSettings .Builder builder ) {
161
159
builder .applySettings (sslSettings );
160
+ builder .invalidHostNameAllowed (true );
162
161
}
163
162
})
164
163
.build ();
Original file line number Diff line number Diff line change 50
50
51
51
import static com .mongodb .ClusterFixture .getSslSettings ;
52
52
import static com .mongodb .ClusterFixture .isDiscoverableReplicaSet ;
53
- import static com .mongodb .ClusterFixture .serverVersionAtLeast ;
54
53
import static org .junit .Assert .assertEquals ;
55
54
import static org .junit .Assert .assertTrue ;
56
55
import static org .junit .Assert .fail ;
@@ -122,7 +121,6 @@ public void shouldDiscover() throws InterruptedException {
122
121
final SslSettings sslSettings = getSslSettings (connectionString );
123
122
124
123
assumeTrue ("It's not a replica set" , isDiscoverableReplicaSet ());
125
- assumeTrue ("Server version is >= 4.0" , !serverVersionAtLeast (4 , 0 ));
126
124
assumeTrue ("SSL settings don't match" , getSslSettings ().isEnabled () == sslSettings .isEnabled ());
127
125
128
126
MongoClientSettings settings = MongoClientSettings .builder ()
@@ -159,6 +157,7 @@ public void clusterDescriptionChanged(final ClusterDescriptionChangedEvent event
159
157
@ Override
160
158
public void apply (final SslSettings .Builder builder ) {
161
159
builder .applySettings (sslSettings );
160
+ builder .invalidHostNameAllowed (true );
162
161
}
163
162
})
164
163
.build ();
You can’t perform that action at this time.
0 commit comments