From f80d49e19c4f58de1d79b9f08338db1523d3ebce Mon Sep 17 00:00:00 2001 From: jaymode Date: Tue, 31 Mar 2015 11:45:29 -0400 Subject: [PATCH] Test: fix realm ordering so that node transport clients still work Original commit: elastic/x-pack-elasticsearch@24b660ac4514f16e10e75983ee7ab69f05378865 --- .../shield/authc/pki/PkiAuthenticationTests.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/elasticsearch/shield/authc/pki/PkiAuthenticationTests.java b/src/test/java/org/elasticsearch/shield/authc/pki/PkiAuthenticationTests.java index 01d3cfbdb8f..7fcc24a85d8 100644 --- a/src/test/java/org/elasticsearch/shield/authc/pki/PkiAuthenticationTests.java +++ b/src/test/java/org/elasticsearch/shield/authc/pki/PkiAuthenticationTests.java @@ -53,8 +53,10 @@ public class PkiAuthenticationTests extends ShieldIntegrationTest { .put(InternalNode.HTTP_ENABLED, true) .put(ShieldNettyHttpServerTransport.HTTP_SSL_SETTING, true) .put(ShieldNettyHttpServerTransport.HTTP_CLIENT_AUTH_SETTING, true) + .put("shield.authc.realms.esusers.type", "esusers") + .put("shield.authc.realms.esusers.order", "0") .put("shield.authc.realms.pki1.type", "pki") - .put("shield.authc.realms.pki1.order", "0") + .put("shield.authc.realms.pki1.order", "1") .put("shield.authc.realms.pki1.truststore.path", getResource("/org/elasticsearch/shield/transport/ssl/certs/simple/truststore-testnode-only.jks")) .put("shield.authc.realms.pki1.truststore.password", "truststore-testnode-only") .put("shield.authc.realms.pki1.files.role_mapping", getResource("role_mapping.yml"))