mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-17 14:21:20 +00:00
ACS-5068 Upgrade to use latest TAS libraries.
This commit is contained in:
@@ -10,9 +10,9 @@
|
|||||||
<name>Search Analytics E2E Tests</name>
|
<name>Search Analytics E2E Tests</name>
|
||||||
<description>Test Project to test Search Service and Analytics Features on a complete setup of Alfresco, Share</description>
|
<description>Test Project to test Search Service and Analytics Features on a complete setup of Alfresco, Share</description>
|
||||||
<properties>
|
<properties>
|
||||||
<tas.rest.api.version>1.73</tas.rest.api.version>
|
<tas.rest.api.version>20.146</tas.rest.api.version>
|
||||||
<tas.cmis.api.version>1.31</tas.cmis.api.version>
|
<tas.cmis.api.version>20.146</tas.cmis.api.version>
|
||||||
<tas.utility.version>3.0.48</tas.utility.version>
|
<tas.utility.version>20.146</tas.utility.version>
|
||||||
<rm.version>3.3.1</rm.version>
|
<rm.version>3.3.1</rm.version>
|
||||||
<suiteXmlFile>src/test/resources/SearchSuite.xml</suiteXmlFile>
|
<suiteXmlFile>src/test/resources/SearchSuite.xml</suiteXmlFile>
|
||||||
<test.exclude />
|
<test.exclude />
|
||||||
|
@@ -45,12 +45,12 @@ import org.testng.annotations.Test;
|
|||||||
public class SearchSolrAPITest extends AbstractE2EFunctionalTest
|
public class SearchSolrAPITest extends AbstractE2EFunctionalTest
|
||||||
{
|
{
|
||||||
@Test(priority = 1)
|
@Test(priority = 1)
|
||||||
public void testGetSolrConfig() throws Exception
|
public void testGetSolrConfig()
|
||||||
{
|
{
|
||||||
RestTextResponse response = restClient.authenticateUser(adminUserModel).withSolrAPI().getConfig();
|
RestTextResponse response = restClient.authenticateUser(adminUserModel).withSolrAPI().getConfig();
|
||||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||||
|
|
||||||
restClient.onResponse().assertThat().content(Matchers.containsString("config"));
|
restClient.onResponse().assertThat().body(Matchers.containsString("config"));
|
||||||
Assert.assertNotNull(response.getJsonValueByPath("config.requestHandler"));
|
Assert.assertNotNull(response.getJsonValueByPath("config.requestHandler"));
|
||||||
Assert.assertNotNull(response.getJsonObjectByPath("config.requestHandler"));
|
Assert.assertNotNull(response.getJsonObjectByPath("config.requestHandler"));
|
||||||
|
|
||||||
@@ -65,7 +65,7 @@ public class SearchSolrAPITest extends AbstractE2EFunctionalTest
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test(priority = 2)
|
@Test(priority = 2)
|
||||||
public void testEditSolrConfig() throws Exception
|
public void testEditSolrConfig()
|
||||||
{
|
{
|
||||||
String expectedError = "solrconfig editing is not enabled due to disable.configEdit";
|
String expectedError = "solrconfig editing is not enabled due to disable.configEdit";
|
||||||
|
|
||||||
@@ -85,7 +85,7 @@ public class SearchSolrAPITest extends AbstractE2EFunctionalTest
|
|||||||
restClient.authenticateUser(adminUserModel).withSolrAPI().postConfig(postBody);
|
restClient.authenticateUser(adminUserModel).withSolrAPI().postConfig(postBody);
|
||||||
restClient.assertStatusCodeIs(HttpStatus.FORBIDDEN);
|
restClient.assertStatusCodeIs(HttpStatus.FORBIDDEN);
|
||||||
|
|
||||||
restClient.onResponse().assertThat().content(Matchers.containsString(expectedError));
|
restClient.onResponse().assertThat().body(Matchers.containsString(expectedError));
|
||||||
|
|
||||||
// TODO: Following asserts fail with error:
|
// TODO: Following asserts fail with error:
|
||||||
/*
|
/*
|
||||||
@@ -97,21 +97,21 @@ public class SearchSolrAPITest extends AbstractE2EFunctionalTest
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test(priority = 3)
|
@Test(priority = 3)
|
||||||
public void testGetSolrConfigOverlay() throws Exception
|
public void testGetSolrConfigOverlay()
|
||||||
{
|
{
|
||||||
restClient.authenticateUser(adminUserModel).withSolrAPI().getConfigOverlay();
|
restClient.authenticateUser(adminUserModel).withSolrAPI().getConfigOverlay();
|
||||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||||
|
|
||||||
restClient.onResponse().assertThat().content(Matchers.containsString("overlay"));
|
restClient.onResponse().assertThat().body(Matchers.containsString("overlay"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(priority = 4)
|
@Test(priority = 4)
|
||||||
public void testGetSolrConfigParams() throws Exception
|
public void testGetSolrConfigParams()
|
||||||
{
|
{
|
||||||
restClient.authenticateUser(adminUserModel).withSolrAPI().getConfigParams();
|
restClient.authenticateUser(adminUserModel).withSolrAPI().getConfigParams();
|
||||||
restClient.assertStatusCodeIs(HttpStatus.OK);
|
restClient.assertStatusCodeIs(HttpStatus.OK);
|
||||||
|
|
||||||
restClient.onResponse().assertThat().content(Matchers.containsString("response"));
|
restClient.onResponse().assertThat().body(Matchers.containsString("response"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(priority = 5)
|
@Test(priority = 5)
|
||||||
|
Reference in New Issue
Block a user