Adding more logs to cluster activation assertion

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

Branch: refs/heads/master
Commit: 2951d4033410211825d9cf7557845198d203ac96
Parents: bbfa6c5
Author: Akila Perera <[email protected]>
Authored: Fri Aug 28 09:59:44 2015 +0530
Committer: Akila Perera <[email protected]>
Committed: Fri Aug 28 09:59:44 2015 +0530

----------------------------------------------------------------------
 .../org/apache/stratos/integration/tests/TopologyHandler.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/2951d403/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/TopologyHandler.java
----------------------------------------------------------------------
diff --git 
a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/TopologyHandler.java
 
b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/TopologyHandler.java
index f579718..a0aea77 100644
--- 
a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/TopologyHandler.java
+++ 
b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/TopologyHandler.java
@@ -241,6 +241,8 @@ public class TopologyHandler {
                         }
                     }
                 }
+                log.info("Active instance count of " + activeInstances + " 
found for [cluster-instance] " + instance
+                        .getInstanceId() + " with [min-count] " + 
clusterDataHolder.getMinInstances());
                 clusterActive = (activeInstances >= 
clusterDataHolder.getMinInstances());
                 assertTrue(String.format("Cluster status did not change to 
active: [cluster-id] %s", clusterId),
                         clusterActive);
@@ -691,4 +693,4 @@ public class TopologyHandler {
     public void setActivateddMembers(Map<String, Long> activateddMembers) {
         this.activateddMembers = activateddMembers;
     }
-}
+}
\ No newline at end of file

Reply via email to