[Test] enable HTTP for rest tests

Original commit: elastic/x-pack-elasticsearch@4c631595b1
This commit is contained in:
jaymode 2015-03-19 14:12:03 -04:00
parent f2b493fa96
commit 1ff99994bc

View File

@ -11,6 +11,7 @@ import org.apache.lucene.util.AbstractRandomizedTest;
import org.elasticsearch.client.support.Headers;
import org.elasticsearch.common.settings.ImmutableSettings;
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.UsernamePasswordToken;
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
public static Iterable<Object[]> parameters() throws IOException, RestTestParseException {
return ElasticsearchRestTests.parameters();