You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by no...@apache.org on 2017/05/29 05:36:54 UTC

lucene-solr:feature/autoscaling: added testcase for ip_1 to ip_4

Repository: lucene-solr
Updated Branches:
  refs/heads/feature/autoscaling 4638488ff -> 5b066e091


added testcase for ip_1 to ip_4


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/5b066e09
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/5b066e09
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/5b066e09

Branch: refs/heads/feature/autoscaling
Commit: 5b066e091c9982617a06d6857715b075ab8c5fa6
Parents: 4638488
Author: Noble Paul <no...@apache.org>
Authored: Mon May 29 15:06:46 2017 +0930
Committer: Noble Paul <no...@apache.org>
Committed: Mon May 29 15:06:46 2017 +0930

----------------------------------------------------------------------
 .../org/apache/solr/cloud/autoscaling/TestPolicyCloud.java  | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/5b066e09/solr/core/src/test/org/apache/solr/cloud/autoscaling/TestPolicyCloud.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/autoscaling/TestPolicyCloud.java b/solr/core/src/test/org/apache/solr/cloud/autoscaling/TestPolicyCloud.java
index 7520d9a..5097f30 100644
--- a/solr/core/src/test/org/apache/solr/cloud/autoscaling/TestPolicyCloud.java
+++ b/solr/core/src/test/org/apache/solr/cloud/autoscaling/TestPolicyCloud.java
@@ -82,7 +82,12 @@ public class TestPolicyCloud extends SolrCloudTestCase {
       }
       Thread.sleep(100);
     }
-    val = provider.getNodeValues(overseerNode, Arrays.asList("nodeRole"));
-    assertEquals("overseer",val.get("nodeRole"));
+    val = provider.getNodeValues(overseerNode, Arrays.asList("nodeRole", "ip_1","ip_2","ip_3", "ip_4", "sysprop.java.version"));
+    assertEquals("overseer", val.get("nodeRole"));
+    assertNotNull( val.get("ip_1"));
+    assertNotNull( val.get("ip_2"));
+    assertNotNull( val.get("ip_3"));
+    assertNotNull( val.get("ip_4"));
+//    assertNotNull( val.get("sysprop.java.version"));
   }
 }