aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-main/src/test
diff options
context:
space:
mode:
authorJacek <jacek.poreda@sonarsource.com>2021-06-22 14:53:22 +0200
committersonartech <sonartech@sonarsource.com>2021-06-23 20:03:04 +0000
commitfda0ba7738a8d87d302d460cba6fd490552aca79 (patch)
treeb2ae3131809ae56ca98f713637b1772b0e24ac6b /server/sonar-main/src/test
parent6a472ec075f9cf5d0ae58e8ebb0dfe48b7f74f2a (diff)
downloadsonarqube-fda0ba7738a8d87d302d460cba6fd490552aca79.tar.gz
sonarqube-fda0ba7738a8d87d302d460cba6fd490552aca79.zip
SONAR-14854 Support TLSv1.3,TLSv1.2 for Elasticsearch transport connection encryption
Diffstat (limited to 'server/sonar-main/src/test')
-rw-r--r--server/sonar-main/src/test/java/org/sonar/application/es/EsSettingsTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-main/src/test/java/org/sonar/application/es/EsSettingsTest.java b/server/sonar-main/src/test/java/org/sonar/application/es/EsSettingsTest.java
index 23722f2624d..cdceb3b305f 100644
--- a/server/sonar-main/src/test/java/org/sonar/application/es/EsSettingsTest.java
+++ b/server/sonar-main/src/test/java/org/sonar/application/es/EsSettingsTest.java
@@ -390,7 +390,9 @@ public class EsSettingsTest {
Map<String, String> outputParams = settings.build();
- assertThat(outputParams).containsEntry("xpack.security.transport.ssl.enabled", "true")
+ assertThat(outputParams)
+ .containsEntry("xpack.security.transport.ssl.enabled", "true")
+ .containsEntry("xpack.security.transport.ssl.supported_protocols", "TLSv1.3,TLSv1.2")
.containsEntry("xpack.security.transport.ssl.keystore.path", keystore.getName())
.containsEntry("xpack.security.transport.ssl.truststore.path", truststore.getName());
}