From 0394b207166d485802599a680f86a5674a99cddd Mon Sep 17 00:00:00 2001 From: Keerat Date: Wed, 4 Mar 2020 09:20:21 +0000 Subject: [PATCH 1/3] SEARCH-2078 adding solr call to get response for failing test --- .../functional/searchServices/search/SearchSpellCheckTest.java | 3 +++ 1 file changed, 3 insertions(+) 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 5afb9fce9..fb21ef6d7 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 @@ -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"); From d92697c71b12b3bb47bd1a019248ae1030ee59b7 Mon Sep 17 00:00:00 2001 From: mbhave Date: Wed, 4 Mar 2020 11:52:48 +0000 Subject: [PATCH 2/3] 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"); From abc8eef3a63c003984d245d082f2e0268095f3dc Mon Sep 17 00:00:00 2001 From: mbhave Date: Wed, 4 Mar 2020 11:54:39 +0000 Subject: [PATCH 3/3] Search-2078: Added new version of TAS Rest API required for fixing the solr-search api port configuration issue --- e2e-test/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e-test/pom.xml b/e2e-test/pom.xml index 197a51181..586b8f9ae 100644 --- a/e2e-test/pom.xml +++ b/e2e-test/pom.xml @@ -11,7 +11,7 @@ Search Analytics E2E Tests Test Project to test Search Service and Analytics Features on a complete setup of Alfresco, Share - 1.33 + 1.35 1.13 3.0.19 3.3.0.1