You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ma...@apache.org on 2022/11/10 05:34:22 UTC

[atlas] branch branch-2.0 updated: ATLAS-2388: enabled InMemoryJAASConfigurationTest

This is an automated email from the ASF dual-hosted git repository.

madhan pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 8ca041c98 ATLAS-2388: enabled InMemoryJAASConfigurationTest
8ca041c98 is described below

commit 8ca041c982968fb1e769cd7ba20f9d342adebba3
Author: Peter Gergo Barna <pb...@hortonworks.com>
AuthorDate: Fri Mar 23 13:46:38 2018 +0100

    ATLAS-2388: enabled InMemoryJAASConfigurationTest
    
    Signed-off-by: Madhan Neethiraj <ma...@apache.org>
    (cherry picked from commit d7a6242442085032a17bc60fd0b13bf62c3ebc1c)
---
 .../apache/atlas/security/InMemoryJAASConfigurationTest.java   | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/intg/src/test/java/org/apache/atlas/security/InMemoryJAASConfigurationTest.java b/intg/src/test/java/org/apache/atlas/security/InMemoryJAASConfigurationTest.java
index b0f24de52..71e00fe5f 100644
--- a/intg/src/test/java/org/apache/atlas/security/InMemoryJAASConfigurationTest.java
+++ b/intg/src/test/java/org/apache/atlas/security/InMemoryJAASConfigurationTest.java
@@ -27,8 +27,7 @@ import javax.security.auth.login.AppConfigurationEntry;
 import javax.security.auth.login.Configuration;
 
 
-//Unstable test. Disabling
-@Test(enabled=false)
+@Test(enabled=true)
 public class InMemoryJAASConfigurationTest {
 
     private static final String ATLAS_JAAS_PROP_FILE = "atlas-jaas.properties";
@@ -38,7 +37,7 @@ public class InMemoryJAASConfigurationTest {
             InMemoryJAASConfiguration.init(ATLAS_JAAS_PROP_FILE);
     }
 
-    @Test(enabled=false)
+    @Test(enabled=true)
     public void testGetAppConfigurationEntryStringForKafkaClient() {
         AppConfigurationEntry[] entries =
                 Configuration.getConfiguration().getAppConfigurationEntry("KafkaClient");
@@ -49,10 +48,9 @@ public class InMemoryJAASConfigurationTest {
         String[] components = principal.split("[/@]");
         Assert.assertEquals(3, components.length);
         Assert.assertEquals(false, StringUtils.equalsIgnoreCase(components[1], "_HOST"));
-
     }
 
-    @Test(enabled=false)
+    @Test(enabled=true)
     public void testGetAppConfigurationEntryStringForMyClient() {
         AppConfigurationEntry[] entries =
                 Configuration.getConfiguration().getAppConfigurationEntry("myClient");
@@ -70,7 +68,7 @@ public class InMemoryJAASConfigurationTest {
         Assert.assertEquals(2, components.length);
     }
 
-    @Test(enabled=false)
+    @Test(enabled=true)
     public void testGetAppConfigurationEntryStringForUnknownClient() {
         AppConfigurationEntry[] entries =
                 Configuration.getConfiguration().getAppConfigurationEntry("UnknownClient");