mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-24 14:31:29 +00:00
Search-2078: Added some logging for the failing tests to capture solr response
This commit is contained in:
@@ -317,7 +317,7 @@ public class SearchSpellCheckTest extends AbstractSearchServicesE2ETest
|
||||
Assert.assertTrue(isContentInSearchResponse(response, file2.getName()), "Expected file not returned in the search results: " + file.getName());
|
||||
testSearchSpellcheckResponse(response, "searchInsteadFor", "eklipse");
|
||||
|
||||
// TODO: Add 2 Solr Queries, one for each shard to check the suggestions on each shard
|
||||
// Add Solr Query, to check the suggestions on each shard
|
||||
restClient.authenticateUser(testUser).withParams("spellcheck.q=eclipses&spellcheck=on").withSolrAPI().getSelectQuery();
|
||||
|
||||
// Incorrect spelling with no field for file2
|
||||
@@ -466,6 +466,9 @@ public class SearchSpellCheckTest extends AbstractSearchServicesE2ETest
|
||||
Assert.assertTrue(isContentInSearchResponse(response, file2.getName()), "Expected file not returned in the search results: " + file2.getName());
|
||||
testSearchSpellcheckResponse(response, null, null);
|
||||
|
||||
// Add Solr Query, to check the suggestions on the shard
|
||||
restClient.authenticateUser(testUser).withParams("spellcheck.q=spaceber&spellcheck=on").withSolrAPI().getSelectQuery();
|
||||
|
||||
// Checks for User 2
|
||||
// Incorrect spelling for files created no field
|
||||
response = SearchSpellcheckQuery(testUser2, "spaceber", "spaceber");
|
||||
|
Reference in New Issue
Block a user