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
|
@Override
|
||||||
protected Settings externalClusterClientSettings() {
|
protected Settings externalClusterClientSettings() {
|
||||||
return Settings.builder()
|
return Settings.builder()
|
||||||
|
.put("plugin.types", ShieldPlugin.class.getName())
|
||||||
.put("shield.user", ShieldSettingsSource.DEFAULT_USER_NAME + ":" + ShieldSettingsSource.DEFAULT_PASSWORD)
|
.put("shield.user", ShieldSettingsSource.DEFAULT_USER_NAME + ":" + ShieldSettingsSource.DEFAULT_PASSWORD)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,7 +88,11 @@ public abstract class ShieldRestTestCase extends ShieldIntegrationTest {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Settings nodeSettings(int ordinal) {
|
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
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue