mirror of https://github.com/apache/lucene.git
SOLR-10272: More detailed error message, explaining what to do
This commit is contained in:
parent
9c75c8082d
commit
e6f48ca6bc
|
@ -24,7 +24,7 @@
|
||||||
<luceneMatchVersion>${tests.luceneMatchVersion:LATEST}</luceneMatchVersion>
|
<luceneMatchVersion>${tests.luceneMatchVersion:LATEST}</luceneMatchVersion>
|
||||||
|
|
||||||
<requestHandler name="my_error_handler" class="solr.ThrowErrorOnInitRequestHandler">
|
<requestHandler name="my_error_handler" class="solr.ThrowErrorOnInitRequestHandler">
|
||||||
<str name="error">This is the _default configset, which is designed to throw error upon collection creation.</str>
|
<str name="error">This is the _default configset, which is designed to throw error upon collection creation from unit tests. If you see this error while running a unit test, you might want to explicitly specify the configset (when creating a collection) you intend to use (usually named "conf1" or "conf" etc.).</str>
|
||||||
</requestHandler>
|
</requestHandler>
|
||||||
|
|
||||||
<schemaFactory class="ClassicIndexSchemaFactory"/>
|
<schemaFactory class="ClassicIndexSchemaFactory"/>
|
||||||
|
|
|
@ -71,7 +71,7 @@ public class CollectionsAPISolrJTest extends SolrCloudTestCase {
|
||||||
System.out.println("Errors are: "+response.getErrorMessages());
|
System.out.println("Errors are: "+response.getErrorMessages());
|
||||||
assertTrue(response.getErrorMessages() != null && response.getErrorMessages().size() > 0);
|
assertTrue(response.getErrorMessages() != null && response.getErrorMessages().size() > 0);
|
||||||
assertTrue(response.getErrorMessages().getVal(0).contains("This is the _default configset, which is designed"
|
assertTrue(response.getErrorMessages().getVal(0).contains("This is the _default configset, which is designed"
|
||||||
+ " to throw error upon collection creation."));
|
+ " to throw error upon collection creation"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue