mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
tests fixed for master slave config
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@
|
||||
<properties>
|
||||
<tas.rest.api.version>6.0.0.3</tas.rest.api.version>
|
||||
<tas.cmis.api.version>6.0.0.0</tas.cmis.api.version>
|
||||
<tas.utility.version>2.0.9</tas.utility.version>
|
||||
<tas.utility.version>2.0.9-SNAPSHOT</tas.utility.version>
|
||||
<rm.version>2.6.0</rm.version>
|
||||
<suiteXmlFile>src/test/resources/SearchSuite.xml</suiteXmlFile>
|
||||
<test.exclude></test.exclude>
|
||||
|
||||
-2
@@ -57,9 +57,7 @@ public class SearchHighLightTest extends AbstractSearchServicesE2ETest
|
||||
highlight.setFields(fields);
|
||||
SearchResponse nodes = query(queryReq, highlight);
|
||||
nodes.assertThat().entriesListIsNotEmpty();
|
||||
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(), "ResponseHighLightModel: is not null");
|
||||
hl.assertThat().field("snippets").contains( "The landrover discovery is not a sports ¿car?");
|
||||
}
|
||||
|
||||
|
||||
+2
-7
@@ -102,7 +102,6 @@ public class ShardInfoTest extends AbstractSearchServicesE2ETest
|
||||
{
|
||||
RestShardInfoModel model = shardInfoModel.getModel();
|
||||
assertEquals(model.getTemplate(), "rerank");
|
||||
assertEquals(model.getMode(), "MIXED");
|
||||
assertEquals(model.getShardMethod(), "DB_ID");
|
||||
assertTrue(model.getHasContent());
|
||||
|
||||
@@ -118,15 +117,11 @@ public class ShardInfoTest extends AbstractSearchServicesE2ETest
|
||||
AssertJUnit.assertNotNull(instance);
|
||||
|
||||
AssertJUnit.assertTrue(baseUrls.contains(instance.getBaseUrl()));
|
||||
|
||||
AssertJUnit.assertEquals(instance.getHost(), "search");
|
||||
AssertJUnit.assertEquals(instance.getState(), "ACTIVE");
|
||||
AssertJUnit.assertEquals(instance.getMode(), "MIXED");
|
||||
|
||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Test(groups={TestGroup.SEARCH, TestGroup.REST_API, TestGroup.ACS_60n})
|
||||
public void getShardInfoWithoutAdminAuthority() throws Exception
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Alfresco HTTP Server Settings
|
||||
alfresco.scheme=http
|
||||
alfresco.server=localhost
|
||||
alfresco.port=8081
|
||||
alfresco.port=8080
|
||||
|
||||
# sync service related
|
||||
sync.scheme=http
|
||||
|
||||
Reference in New Issue
Block a user