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,11 +155,13 @@ public class SecurityTribeIT extends NativeRealmIntegTestCase {
|
||||||
MockSecureSettings secureSettingsTemplate =
|
MockSecureSettings secureSettingsTemplate =
|
||||||
(MockSecureSettings) Settings.builder().put(cluster2SettingsSource.nodeSettings(0)).getSecureSettings();
|
(MockSecureSettings) Settings.builder().put(cluster2SettingsSource.nodeSettings(0)).getSecureSettings();
|
||||||
MockSecureSettings secureSettings = new MockSecureSettings();
|
MockSecureSettings secureSettings = new MockSecureSettings();
|
||||||
for (String settingName : secureSettingsTemplate.getSettingNames()) {
|
if (secureSettingsTemplate != null) {
|
||||||
String settingValue = secureSettingsTemplate.getString(settingName).toString();
|
for (String settingName : secureSettingsTemplate.getSettingNames()) {
|
||||||
secureSettings.setString(settingName, settingValue);
|
String settingValue = secureSettingsTemplate.getString(settingName).toString();
|
||||||
secureSettings.setString("tribe.t1." + settingName, settingValue);
|
secureSettings.setString(settingName, settingValue);
|
||||||
secureSettings.setString("tribe.t2." + settingName, settingValue);
|
secureSettings.setString("tribe.t1." + settingName, settingValue);
|
||||||
|
secureSettings.setString("tribe.t2." + settingName, settingValue);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Settings merged = Settings.builder()
|
Settings merged = Settings.builder()
|
||||||
|
|
Loading…
Reference in New Issue