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"))