Search-2078: Added some logging for the failing tests to capture solr response

This commit is contained in:
mbhave
2020-03-04 11:52:48 +00:00
parent 0394b20716
commit d92697c71b

View File

@@ -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");