From 938cbf3aefd611823772e2ac253e28e433fd9b40 Mon Sep 17 00:00:00 2001 From: Hendrik Saly Date: Tue, 16 Feb 2016 16:16:17 -0800 Subject: [PATCH] fixe unittest by adding roles to mock_principal --- .../plugin/kerberosrealm/KerberosRealmEmbeddedTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/de/codecentric/elasticsearch/plugin/kerberosrealm/KerberosRealmEmbeddedTests.java b/src/test/java/de/codecentric/elasticsearch/plugin/kerberosrealm/KerberosRealmEmbeddedTests.java index ac55811..8008c64 100644 --- a/src/test/java/de/codecentric/elasticsearch/plugin/kerberosrealm/KerberosRealmEmbeddedTests.java +++ b/src/test/java/de/codecentric/elasticsearch/plugin/kerberosrealm/KerberosRealmEmbeddedTests.java @@ -119,7 +119,7 @@ public void testTransportClientMultiRound() throws Exception { final Settings esServerSettings = Settings.builder().put(PREFIX + SettingConstants.ACCEPTOR_KEYTAB_PATH, "mock") .put(PREFIX + SettingConstants.ACCEPTOR_PRINCIPAL, "mock").put(PREFIX + "mock_mode", true) - .putArray(PREFIX + SettingConstants.ROLES+".cc_kerberos_realm_role", "spock/admin@CCK.COM") + .putArray(PREFIX + SettingConstants.ROLES+".cc_kerberos_realm_role", "spock/admin@CCK.COM","mock_principal") .build(); this.startES(esServerSettings);