You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2017/08/03 16:01:32 UTC

[16/50] [abbrv] airavata git commit: AIRAVATA-2405 getUsersWithRole test

AIRAVATA-2405 getUsersWithRole test


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

Branch: refs/heads/master
Commit: 86713eecadd740de8c28a14923f77763b00fc9a5
Parents: 226cd3f
Author: Marcus Christie <ma...@apache.org>
Authored: Sun Jul 9 00:08:52 2017 -0500
Committer: Marcus Christie <ma...@apache.org>
Committed: Sun Jul 9 00:08:52 2017 -0500

----------------------------------------------------------------------
 .../admin/services/core/impl/TenantManagementKeycloakImpl.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/86713eec/airavata-services/profile-service/iam-admin-services-core/src/main/java/org/apache/airavata/service/profile/iam/admin/services/core/impl/TenantManagementKeycloakImpl.java
----------------------------------------------------------------------
diff --git a/airavata-services/profile-service/iam-admin-services-core/src/main/java/org/apache/airavata/service/profile/iam/admin/services/core/impl/TenantManagementKeycloakImpl.java b/airavata-services/profile-service/iam-admin-services-core/src/main/java/org/apache/airavata/service/profile/iam/admin/services/core/impl/TenantManagementKeycloakImpl.java
index fc6af61..97039ed 100644
--- a/airavata-services/profile-service/iam-admin-services-core/src/main/java/org/apache/airavata/service/profile/iam/admin/services/core/impl/TenantManagementKeycloakImpl.java
+++ b/airavata-services/profile-service/iam-admin-services-core/src/main/java/org/apache/airavata/service/profile/iam/admin/services/core/impl/TenantManagementKeycloakImpl.java
@@ -540,7 +540,7 @@ public class TenantManagementKeycloakImpl implements TenantManagementInterface {
                     null,
                     null,
                     null,
-                    0, 10000);
+                    0, 100);
             logger.debug("getUsersWithRole: all users count=" + allUsers.size());
             allUsers.sort((a, b) -> a.getCreatedTimestamp() - b.getCreatedTimestamp() > 0 ? -1 : 1);
             // The 100 most recently created users
@@ -568,7 +568,9 @@ public class TenantManagementKeycloakImpl implements TenantManagementInterface {
             throw exception;
         } finally {
             if (client != null) {
+                logger.debug("getUsersWithRole: closing client...");
                 client.close();
+                logger.debug("getUsersWithRole: client closed");
             }
         }
     }