Another fix for security tribe tests when ssl is disabled
Original commit: elastic/x-pack-elasticsearch@db2eca3522
This commit is contained in:
parent
e8472908c1
commit
84574c0367
|
@ -155,12 +155,14 @@ public class SecurityTribeIT extends NativeRealmIntegTestCase {
|
|||
MockSecureSettings secureSettingsTemplate =
|
||||
(MockSecureSettings) Settings.builder().put(cluster2SettingsSource.nodeSettings(0)).getSecureSettings();
|
||||
MockSecureSettings secureSettings = new MockSecureSettings();
|
||||
if (secureSettingsTemplate != null) {
|
||||
for (String settingName : secureSettingsTemplate.getSettingNames()) {
|
||||
String settingValue = secureSettingsTemplate.getString(settingName).toString();
|
||||
secureSettings.setString(settingName, settingValue);
|
||||
secureSettings.setString("tribe.t1." + settingName, settingValue);
|
||||
secureSettings.setString("tribe.t2." + settingName, settingValue);
|
||||
}
|
||||
}
|
||||
|
||||
Settings merged = Settings.builder()
|
||||
.put(internalCluster().getDefaultSettings())
|
||||
|
|
Loading…
Reference in New Issue