load shield for external cluster client
Original commit: elastic/x-pack-elasticsearch@96e8df2ac3
This commit is contained in:
parent
2dbeb1273d
commit
d7d8ca125a
|
@ -171,6 +171,7 @@ public abstract class ShieldIntegrationTest extends ElasticsearchIntegrationTest
|
|||
@Override
|
||||
protected Settings externalClusterClientSettings() {
|
||||
return Settings.builder()
|
||||
.put("plugin.types", ShieldPlugin.class.getName())
|
||||
.put("shield.user", ShieldSettingsSource.DEFAULT_USER_NAME + ":" + ShieldSettingsSource.DEFAULT_PASSWORD)
|
||||
.build();
|
||||
}
|
||||
|
|
|
@ -88,7 +88,11 @@ public abstract class ShieldRestTestCase extends ShieldIntegrationTest {
|
|||
|
||||
@Override
|
||||
public Settings nodeSettings(int ordinal) {
|
||||
return super.nodeSettings(ordinal);
|
||||
return Settings.builder()
|
||||
.put(super.nodeSettings(ordinal))
|
||||
.put(ShieldRestTestCase.super.nodeSettings(ordinal))
|
||||
.put(Node.HTTP_ENABLED, true)
|
||||
.build();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue