[Carbon-dev] svn commit r43239 - in trunk/carbon/org.wso2.carbon.user.core: . src/test/java/org/wso2/carbon/user/core/jdbc

dimuthul at wso2.com dimuthul at wso2.com
Wed Aug 12 02:35:02 PDT 2009


Author: dimuthul
Date: Wed Aug 12 02:35:01 2009
New Revision: 43239
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=43239

Log:
Adding the test cases.



Added:
   trunk/carbon/org.wso2.carbon.user.core/test-cases.txt
Modified:
   trunk/carbon/org.wso2.carbon.user.core/src/test/java/org/wso2/carbon/user/core/jdbc/JDBCRealmTest.java

Modified: trunk/carbon/org.wso2.carbon.user.core/src/test/java/org/wso2/carbon/user/core/jdbc/JDBCRealmTest.java
URL: http://wso2.org/svn/browse/wso2/trunk/carbon/org.wso2.carbon.user.core/src/test/java/org/wso2/carbon/user/core/jdbc/JDBCRealmTest.java?rev=43239&r1=43238&r2=43239&view=diff
==============================================================================
--- trunk/carbon/org.wso2.carbon.user.core/src/test/java/org/wso2/carbon/user/core/jdbc/JDBCRealmTest.java	(original)
+++ trunk/carbon/org.wso2.carbon.user.core/src/test/java/org/wso2/carbon/user/core/jdbc/JDBCRealmTest.java	Wed Aug 12 02:35:01 2009
@@ -87,8 +87,9 @@
         assertFalse(admin.isExistingUser("muhaha"));
 
         // update
-        admin.updateCredential("dimuthu", "password", "topsecret");
+        admin.updateCredential("dimuthu", "password", "topsecret"); 
         assertFalse(admin.authenticate("dimuthu", "credential"));
+        //assertTrue(admin.authenticate("dimuthu", "password")); bug TODO 
 
         String[] names = admin.listUsers("*", 100);
         assertEquals(4, names.length);
@@ -162,6 +163,8 @@
         assertTrue(authMan.isRoleAuthorized("roley", "table", "write"));
         assertFalse(authMan.isUserAuthorized("saman", "wall", "read"));
         assertFalse(authMan.isUserAuthorized("sunil", "wall", "write"));
+        
+       // System.out.println(Arrays.toString(authMan.getAllowedUsersForResource("wall", "write"))); TODO bug
 
         authMan.clearUserAuthorization("sunil", "wall", "read");
         authMan.clearRoleAuthorization("roley", "table", "write");

Added: trunk/carbon/org.wso2.carbon.user.core/test-cases.txt
URL: http://wso2.org/svn/browse/wso2/trunk/carbon/org.wso2.carbon.user.core/test-cases.txt?pathrev=43239
==============================================================================
--- (empty file)
+++ trunk/carbon/org.wso2.carbon.user.core/test-cases.txt	Wed Aug 12 02:35:01 2009
@@ -0,0 +1,24 @@
+
+Test Cases
+==========
+1) Start the server.
+	- Add/edit/delete users and roles.
+
+2) Check login to the console by giving the following.
+	- Authorized user entering correct user name/password
+	- Unauthorized user trying to login
+	- Wrong password correct username
+	- Wrong username correct password
+
+3) Configure the Active directory user store and perform the above 2nd step. This is a read only mode.
+In addition perform the below.
+	- Restart the server
+	- Check hybrid roles
+	- Edit hybrid roles
+	- Edit permission of hybrid roles
+	- 
+
+4) Configure the LDAP and perform the above 2nd step. Test for two flavours of LDAP. Apache DS and OpenLDAP. This is a read only mode.
+
+5) Configure a MySQL user store and test the above scenario
+	



More information about the Carbon-dev mailing list