SEARCH-2078 fix for the spellcheck ACL test in a sharded mode

This commit is contained in:
Keerat
2020-03-06 12:44:55 +00:00
parent 1630852006
commit d5eefa5d94
@@ -471,14 +471,14 @@ public class SearchSpellCheckTest extends AbstractSearchServicesE2ETest
// Checks for User 2
// Incorrect spelling for files created no field
response = SearchSpellcheckQuery(testUser2, "spacefur", "spacefur");
response = SearchSpellcheckQuery(testUser2, "spacebur", "spacebur");
// Matching Result, Spellcheck = searchInsteadFor: spacecar
Assert.assertTrue(isContentInSearchResponse(response, file2.getName()), "Expected file not returned in the search results: " + file2.getName());
testSearchSpellcheckResponse(response, "searchInsteadFor", "spacecar");
// correct spelling no field
response = SearchSpellcheckQuery(testUser2, "spacebur", "spacebur");
response = SearchSpellcheckQuery(testUser2, "spacebar", "spacebar");
// Matching Result, Spellcheck = searchInsteadFor: spacecar
Assert.assertFalse(isContentInSearchResponse(response, file1.getName()), "Expected file not returned in the search results: " + file1.getName());