File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
driver/src/main/java/org/neo4j/driver
testkit-backend/src/main/java/neo4j/org/testkit/backend/messages/requests Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -790,12 +790,14 @@ public static TrustStrategy trustSystemCertificates() {
790
790
791
791
/**
792
792
* Trust strategy for certificates that trust all certificates blindly. Suggested to only use this in tests.
793
+ * <p>
794
+ * This trust strategy comes with hostname verification turned off by default since driver version 5.0.
793
795
*
794
796
* @return an authentication config
795
797
* @since 1.1
796
798
*/
797
799
public static TrustStrategy trustAllCertificates () {
798
- return new TrustStrategy (Strategy .TRUST_ALL_CERTIFICATES );
800
+ return new TrustStrategy (Strategy .TRUST_ALL_CERTIFICATES ). withoutHostnameVerification () ;
799
801
}
800
802
801
803
/**
Original file line number Diff line number Diff line change @@ -62,13 +62,7 @@ public class StartTest implements TestkitRequest {
62
62
COMMON_SKIP_PATTERN_TO_REASON .put (
63
63
"^.*\\ .test_partial_summary_contains_updates$" , "Does not contain updates because value is zero" );
64
64
COMMON_SKIP_PATTERN_TO_REASON .put ("^.*\\ .test_supports_multi_db$" , "Database is None" );
65
- String skipMessage =
66
- "This test expects hostname verification to be turned off when all certificates are trusted" ;
67
- COMMON_SKIP_PATTERN_TO_REASON .put (
68
- "^.*\\ .TestTrustAllCertsConfig\\ .test_trusted_ca_wrong_hostname$" , skipMessage );
69
- COMMON_SKIP_PATTERN_TO_REASON .put (
70
- "^.*\\ .TestTrustAllCertsConfig\\ .test_untrusted_ca_wrong_hostname$" , skipMessage );
71
- skipMessage = "Driver handles connection acquisition timeout differently" ;
65
+ var skipMessage = "Driver handles connection acquisition timeout differently" ;
72
66
COMMON_SKIP_PATTERN_TO_REASON .put (
73
67
"^.*\\ .TestConnectionAcquisitionTimeoutMs\\ .test_should_encompass_the_handshake_time.*$" , skipMessage );
74
68
COMMON_SKIP_PATTERN_TO_REASON .put (
You can’t perform that action at this time.
0 commit comments