comments added as discussed with Meenal

This commit is contained in:
unknown
2019-05-02 10:37:31 +01:00
parent 525f722422
commit 2c770f626f
2 changed files with 5 additions and 3 deletions
@@ -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?");
}
@@ -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
{