mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
comments added as discussed with Meenal
This commit is contained in:
+2
-2
@@ -57,9 +57,9 @@ public class SearchHighLightTest extends AbstractSearchServicesE2ETest
|
||||
highlight.setFields(fields);
|
||||
SearchResponse nodes = query(queryReq, highlight);
|
||||
nodes.assertThat().entriesListIsNotEmpty();
|
||||
Assert.assertNotNull(nodes.getEntryByIndex(0).getSearch());
|
||||
Assert.assertNotNull(nodes.getEntryByIndex(0).getSearch(), "SearchResponse: is not null");
|
||||
ResponseHighLightModel hl = nodes.getEntryByIndex(0).getSearch().getHighlight().get(0);
|
||||
Assert.assertNotNull(nodes.getEntryByIndex(0).getSearch());
|
||||
Assert.assertNotNull(nodes.getEntryByIndex(0).getSearch(), "ResponseHighLightModel: is not null");
|
||||
hl.assertThat().field("snippets").contains( "The landrover discovery is not a sports ¿car?");
|
||||
}
|
||||
|
||||
|
||||
+3
-1
@@ -43,7 +43,8 @@ import org.springframework.http.HttpStatus;
|
||||
*/
|
||||
public class ShardInfoTest extends AbstractSearchServicesE2ETest
|
||||
{
|
||||
@Test(groups={TestGroup.SEARCH, TestGroup.REST_API, TestGroup.ACS_60n, TestGroup.ASS_MASTER})
|
||||
// The test that will be excluded when running master slave setup, excluding the ASS_MASTER test group.
|
||||
@Test(groups={TestGroup.SEARCH, TestGroup.REST_API, TestGroup.ACS_60n, TestGroup.ASS_MASTER})
|
||||
public void getShardInfoWithAdminAuthority() throws JsonProcessingException
|
||||
{
|
||||
RestShardInfoModelCollection info = restClient.authenticateUser(dataUser.getAdminUser()).withShardInfoAPI().getInfo();
|
||||
@@ -84,6 +85,7 @@ public class ShardInfoTest extends AbstractSearchServicesE2ETest
|
||||
}
|
||||
}
|
||||
|
||||
//The test that will be run when in master slave setup by including the ASS_MASTER_SLAVE test group.
|
||||
@Test(groups={TestGroup.SEARCH, TestGroup.REST_API, TestGroup.ACS_60n, TestGroup.ASS_MASTER_SLAVE})
|
||||
public void getShardInfoWithAdminAuthorityMasterSlaveConfig() throws JsonProcessingException
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user