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:
Rodica Sutu
2016-10-28 08:05:57 +01:00
4 changed files with 31 additions and 14 deletions

View File

@@ -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();

View File

@@ -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;

View File

@@ -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

View 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