You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2017/06/21 07:11:15 UTC
[49/50] [abbrv] lucene-solr:feature/autoscaling: SOLR-10923:
AutoScalingHandlerTest.testPolicyAndPreferences() failure: Adding a policy
with 'cores' attribute should not have succeeded
SOLR-10923: AutoScalingHandlerTest.testPolicyAndPreferences() failure: Adding a policy with 'cores' attribute should not have succeeded
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/2d26d7e8
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/2d26d7e8
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/2d26d7e8
Branch: refs/heads/feature/autoscaling
Commit: 2d26d7e8718960842125ba42e078612744ddaf90
Parents: 1a58412
Author: Cao Manh Dat <da...@apache.org>
Authored: Wed Jun 21 09:53:23 2017 +0700
Committer: Cao Manh Dat <da...@apache.org>
Committed: Wed Jun 21 09:53:23 2017 +0700
----------------------------------------------------------------------
.../org/apache/solr/cloud/autoscaling/AutoScalingHandlerTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/2d26d7e8/solr/core/src/test/org/apache/solr/cloud/autoscaling/AutoScalingHandlerTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/autoscaling/AutoScalingHandlerTest.java b/solr/core/src/test/org/apache/solr/cloud/autoscaling/AutoScalingHandlerTest.java
index 830bef2..d9f0388 100644
--- a/solr/core/src/test/org/apache/solr/cloud/autoscaling/AutoScalingHandlerTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/autoscaling/AutoScalingHandlerTest.java
@@ -80,7 +80,8 @@ public class AutoScalingHandlerTest extends SolrCloudTestCase {
NamedList<Object> response = null;
try {
response = solrClient.request(req);
- fail("Adding a policy with 'cores' attribute should not have succeeded.");
+ String errorMsg = (String) ((NamedList)response.get("error")).get("msg");
+ assertTrue(errorMsg.contains("cores is only allowed in 'cluster-policy'"));
} catch (SolrServerException e) {
// todo one of these catch blocks should not be needed after SOLR-10768
if (e.getRootCause() instanceof HttpSolrClient.RemoteSolrException) {