mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Merge branch 'feature/RM-4195_CreateRMSite3' into 'feature/RM-4195_CreateRMSite2'
Feature/rm 4195 create rm site3 See merge request !4
This commit is contained in:
@@ -41,21 +41,21 @@ import org.testng.annotations.BeforeClass;
|
||||
* @since 1.0
|
||||
*/
|
||||
@Configuration
|
||||
@PropertySource("classpath:config.properties")
|
||||
@PropertySource("classpath:default.properties")
|
||||
@PropertySource(value = "classpath:local.properties", ignoreResourceNotFound = true)
|
||||
public class BaseRestTest extends RestTest
|
||||
{
|
||||
@Value ("${alfresco.rm.scheme}")
|
||||
@Value ("${alfresco.scheme}")
|
||||
private String scheme;
|
||||
|
||||
@Value ("${alfresco.rm.host}")
|
||||
private String host;
|
||||
@Value ("${alfresco.server}")
|
||||
private String server;
|
||||
|
||||
@Value ("${alfresco.rm.port}")
|
||||
@Value ("${alfresco.port}")
|
||||
private String port;
|
||||
|
||||
@Value ("${alfresco.rm.basePath}")
|
||||
private String basePath;
|
||||
@Value ("${rest.rmPath}")
|
||||
private String restRmPath;
|
||||
|
||||
@Autowired
|
||||
public RMSiteAPI rmSiteAPI;
|
||||
@@ -75,9 +75,9 @@ public class BaseRestTest extends RestTest
|
||||
@BeforeClass(alwaysRun = true)
|
||||
public void checkServerHealth() throws Exception
|
||||
{
|
||||
RestAssured.baseURI = scheme + "://" + host;
|
||||
RestAssured.baseURI = scheme + "://" + server;
|
||||
RestAssured.port = parseInt(port);
|
||||
RestAssured.basePath = basePath;
|
||||
RestAssured.basePath = restRmPath;
|
||||
|
||||
//create RM Site if not exist
|
||||
createRMSiteIfNotExists();
|
||||
|
@@ -9,7 +9,7 @@
|
||||
* agreement is prohibited.
|
||||
* #L%
|
||||
*/
|
||||
package org.alfresco.rest.fileplancomponents;
|
||||
package org.alfresco.rest.site;
|
||||
|
||||
import static org.alfresco.com.site.RMSiteCompliance.DOD5015;
|
||||
import static org.alfresco.com.site.RMSiteCompliance.STANDARD;
|
||||
@@ -33,6 +33,7 @@ import com.google.gson.JsonObject;
|
||||
import org.alfresco.dataprep.UserService;
|
||||
import org.alfresco.rest.BaseRestTest;
|
||||
import org.alfresco.rest.core.RestWrapper;
|
||||
import org.alfresco.rest.fileplancomponents.RecordCategoryTest;
|
||||
import org.alfresco.rest.model.site.RMSite;
|
||||
import org.alfresco.utility.model.UserModel;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
@@ -1,4 +0,0 @@
|
||||
alfresco.rm.scheme=http
|
||||
alfresco.rm.host=localhost
|
||||
alfresco.rm.port=8080
|
||||
alfresco.rm.basePath=alfresco/api/-default-/public/ig/versions/1
|
20
src/test/resources/default.properties
Normal file
20
src/test/resources/default.properties
Normal file
@@ -0,0 +1,20 @@
|
||||
#########################################################################
|
||||
# Original property values from default.properties #
|
||||
#########################################################################
|
||||
|
||||
# dataprep related
|
||||
alfresco.scheme=http
|
||||
alfresco.server=localhost
|
||||
alfresco.port=8080
|
||||
|
||||
# credentials
|
||||
admin.user=admin
|
||||
admin.password=admin
|
||||
|
||||
# rest related
|
||||
rest.basePath=alfresco/api/-default-/public/alfresco/versions/1
|
||||
rest.workflowPath=alfresco/api/-default-/public/workflow/versions/1
|
||||
|
||||
#########################################################################
|
||||
|
||||
rest.rmPath=alfresco/api/-default-/public/ig/versions/1
|
Reference in New Issue
Block a user