SEARCH-2078 adding solr call to get response for failing test

This commit is contained in:
Keerat
2020-03-04 09:20:21 +00:00
parent 844a9f3a66
commit 0394b20716
@@ -316,6 +316,9 @@ public class SearchSpellCheckTest extends AbstractSearchServicesE2ETest
Assert.assertTrue(isContentInSearchResponse(response, file.getName()), "Expected file not returned in the search results: " + file.getName());
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
restClient.authenticateUser(testUser).withParams("spellcheck.q=eclipses&spellcheck=on").withSolrAPI().getSelectQuery();
// Incorrect spelling with no field for file2
response = SearchSpellcheckQuery(testUser, "eclipses", "eclipses");