From d92697c71b12b3bb47bd1a019248ae1030ee59b7 Mon Sep 17 00:00:00 2001 From: mbhave Date: Wed, 4 Mar 2020 11:52:48 +0000 Subject: [PATCH] Search-2078: Added some logging for the failing tests to capture solr response --- .../searchServices/search/SearchSpellCheckTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e2e-test/src/test/java/org/alfresco/test/search/functional/searchServices/search/SearchSpellCheckTest.java b/e2e-test/src/test/java/org/alfresco/test/search/functional/searchServices/search/SearchSpellCheckTest.java index fb21ef6d7..1e404e9a3 100644 --- a/e2e-test/src/test/java/org/alfresco/test/search/functional/searchServices/search/SearchSpellCheckTest.java +++ b/e2e-test/src/test/java/org/alfresco/test/search/functional/searchServices/search/SearchSpellCheckTest.java @@ -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");