knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dillido...@apache.org
Subject [1/3] git commit: KNOX-372: add unit tests to check default values for userSearchAttributeName, userObjectClass
Date Thu, 15 May 2014 02:21:32 GMT
Repository: knox
Updated Branches:
  refs/heads/master a0efb4b4c -> 0d82b5727


KNOX-372: add unit tests to check default values for userSearchAttributeName, userObjectClass


Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/b1179de9
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/b1179de9
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/b1179de9

Branch: refs/heads/master
Commit: b1179de9b6e7f775919829627e44c5cc975aa6a5
Parents: a0efb4b
Author: Dilli Dorai Arumugam <darumugam@hortonworks.com>
Authored: Wed May 14 17:42:14 2014 -0700
Committer: Dilli Dorai Arumugam <darumugam@hortonworks.com>
Committed: Wed May 14 17:42:14 2014 -0700

----------------------------------------------------------------------
 .../hadoop/gateway/shirorealm/KnoxLdapRealmTest.java    | 12 ++++++++++++
 1 file changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/b1179de9/gateway-provider-security-shiro/src/test/java/org/apache/hadoop/gateway/shirorealm/KnoxLdapRealmTest.java
----------------------------------------------------------------------
diff --git a/gateway-provider-security-shiro/src/test/java/org/apache/hadoop/gateway/shirorealm/KnoxLdapRealmTest.java
b/gateway-provider-security-shiro/src/test/java/org/apache/hadoop/gateway/shirorealm/KnoxLdapRealmTest.java
index 2e2eb9d..f9e69a8 100644
--- a/gateway-provider-security-shiro/src/test/java/org/apache/hadoop/gateway/shirorealm/KnoxLdapRealmTest.java
+++ b/gateway-provider-security-shiro/src/test/java/org/apache/hadoop/gateway/shirorealm/KnoxLdapRealmTest.java
@@ -73,5 +73,17 @@ public class KnoxLdapRealmTest {
     assertEquals(realm.getGroupSearchBase(), "dc=knox,dc=example,dc=com");
   }
   
+  @Test
+  public void verifyDefaultUserSearchAttributeName() {
+    KnoxLdapRealm realm = new KnoxLdapRealm();
+    assertNull(realm.getUserSearchAttributeName());
+  }
+  
+  @Test
+  public void verifyDefaultGetUserObjectClass() {
+    KnoxLdapRealm realm = new KnoxLdapRealm();
+    assertEquals(realm.getUserObjectClass(), "person");
+  }
+  
   
 }


Mime
View raw message