directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smckin...@apache.org
Subject [15/23] directory-fortress-core git commit: FC-54 - Benchmark activities - fix accelmgr console add/drop role
Date Tue, 27 Jan 2015 12:54:42 GMT
FC-54 - Benchmark activities - fix accelmgr console add/drop role


Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/commit/976fe55b
Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/tree/976fe55b
Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/diff/976fe55b

Branch: refs/heads/master
Commit: 976fe55b7e0bf25dc4c1a0747651658f93a3935f
Parents: 7cc9859
Author: Shawn McKinney <smckinney@apache.org>
Authored: Tue Jan 6 10:13:40 2015 -0600
Committer: Shawn McKinney <smckinney@apache.org>
Committed: Tue Jan 6 10:13:40 2015 -0600

----------------------------------------------------------------------
 .../apache/directory/fortress/core/AccelMgrConsole.java   | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/976fe55b/src/test/java/org/apache/directory/fortress/core/AccelMgrConsole.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/directory/fortress/core/AccelMgrConsole.java b/src/test/java/org/apache/directory/fortress/core/AccelMgrConsole.java
index d1e79b9..bf0f79e 100644
--- a/src/test/java/org/apache/directory/fortress/core/AccelMgrConsole.java
+++ b/src/test/java/org/apache/directory/fortress/core/AccelMgrConsole.java
@@ -159,9 +159,12 @@ class AccelMgrConsole
         {
             VUtil.assertNotNull(session, GlobalErrIds.USER_SESS_NULL, "AccelMgrConsole.addActiveRole");
             ReaderUtil.clearScreen();
+            System.out.println("Enter userId");
+            String userId = ReaderUtil.readLn();
+            ReaderUtil.clearScreen();
             System.out.println("Enter role name");
             String role = ReaderUtil.readLn();
-            am.addActiveRole(session, new UserRole(role));
+            am.addActiveRole(session, new UserRole(userId, role));
             System.out.println("addActiveRole successful");
             System.out.println("ENTER to continue");
         }
@@ -178,9 +181,12 @@ class AccelMgrConsole
         {
             VUtil.assertNotNull(session, GlobalErrIds.USER_SESS_NULL, "AccelMgrConsole.dropActiveRole");
             ReaderUtil.clearScreen();
+            System.out.println("Enter userId");
+            String userId = ReaderUtil.readLn();
+            ReaderUtil.clearScreen();
             System.out.println("Enter role name");
             String role = ReaderUtil.readLn();
-            am.dropActiveRole( session, new UserRole( role ) );
+            am.dropActiveRole( session, new UserRole( userId, role ) );
             System.out.println("dropActiveRole successful");
             System.out.println("ENTER to continue");
         }


Mime
View raw message