mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 05:58:44 +00:00
[Test] enable HTTP for rest tests
Original commit: elastic/x-pack-elasticsearch@4c631595b1
This commit is contained in:
parent
f2b493fa96
commit
1ff99994bc
@ -11,6 +11,7 @@ import org.apache.lucene.util.AbstractRandomizedTest;
|
|||||||
import org.elasticsearch.client.support.Headers;
|
import org.elasticsearch.client.support.Headers;
|
||||||
import org.elasticsearch.common.settings.ImmutableSettings;
|
import org.elasticsearch.common.settings.ImmutableSettings;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
|
import org.elasticsearch.node.internal.InternalNode;
|
||||||
import org.elasticsearch.shield.authc.support.SecuredString;
|
import org.elasticsearch.shield.authc.support.SecuredString;
|
||||||
import org.elasticsearch.shield.authc.support.UsernamePasswordToken;
|
import org.elasticsearch.shield.authc.support.UsernamePasswordToken;
|
||||||
import org.elasticsearch.test.rest.ElasticsearchRestTests;
|
import org.elasticsearch.test.rest.ElasticsearchRestTests;
|
||||||
@ -49,6 +50,14 @@ public class ShieldRestTests extends ShieldIntegrationTest {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected Settings nodeSettings(int nodeOrdinal) {
|
||||||
|
return ImmutableSettings.builder()
|
||||||
|
.put(super.nodeSettings(nodeOrdinal))
|
||||||
|
.put(InternalNode.HTTP_ENABLED, true)
|
||||||
|
.build();
|
||||||
|
}
|
||||||
|
|
||||||
@ParametersFactory
|
@ParametersFactory
|
||||||
public static Iterable<Object[]> parameters() throws IOException, RestTestParseException {
|
public static Iterable<Object[]> parameters() throws IOException, RestTestParseException {
|
||||||
return ElasticsearchRestTests.parameters();
|
return ElasticsearchRestTests.parameters();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user