Allow Couchbase SSL to be enabled without custom trust material
Closes gh-35147
This commit is contained in:
@@ -180,6 +180,15 @@ class CouchbaseAutoConfigurationTests {
|
||||
"spring.couchbase.env.timeouts.analytics=6s", "spring.couchbase.env.timeouts.management=7s");
|
||||
}
|
||||
|
||||
@Test
|
||||
void enableSsl() {
|
||||
testClusterEnvironment((env) -> {
|
||||
SecurityConfig securityConfig = env.securityConfig();
|
||||
assertThat(securityConfig.tlsEnabled()).isTrue();
|
||||
assertThat(securityConfig.trustManagerFactory()).isNull();
|
||||
}, "spring.couchbase.env.ssl.enabled=true");
|
||||
}
|
||||
|
||||
@Test
|
||||
void enableSslWithKeyStore() {
|
||||
testClusterEnvironment((env) -> {
|
||||
|
||||
Reference in New Issue
Block a user