mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Temp workaround to fix the failing integration tests
This commit is contained in:
@@ -106,6 +106,7 @@ public abstract class BaseRMTestCase extends RetryingTransactionHelperTestCase
|
|||||||
return new String[]
|
return new String[]
|
||||||
{
|
{
|
||||||
"classpath:alfresco/application-context.xml",
|
"classpath:alfresco/application-context.xml",
|
||||||
|
"classpath:alfresco/web-scripts-application-context.xml",
|
||||||
"classpath:test-context.xml"
|
"classpath:test-context.xml"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -424,7 +425,7 @@ public abstract class BaseRMTestCase extends RetryingTransactionHelperTestCase
|
|||||||
public Object execute() throws Throwable
|
public Object execute() throws Throwable
|
||||||
{
|
{
|
||||||
// Do the tear down
|
// Do the tear down
|
||||||
AuthenticationUtil.runAsSystem(() ->
|
AuthenticationUtil.runAsSystem(() ->
|
||||||
{
|
{
|
||||||
tearDownImpl();
|
tearDownImpl();
|
||||||
return null;
|
return null;
|
||||||
@@ -603,20 +604,20 @@ public abstract class BaseRMTestCase extends RetryingTransactionHelperTestCase
|
|||||||
|
|
||||||
protected void setupTestUsers(final NodeRef filePlan)
|
protected void setupTestUsers(final NodeRef filePlan)
|
||||||
{
|
{
|
||||||
AuthenticationUtil.runAs(() ->
|
AuthenticationUtil.runAs(() ->
|
||||||
{
|
{
|
||||||
retryingTransactionHelper.doInTransaction(new RetryingTransactionCallback<Object>()
|
retryingTransactionHelper.doInTransaction(new RetryingTransactionCallback<Object>()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public Object execute() throws Throwable
|
public Object execute() throws Throwable
|
||||||
{
|
{
|
||||||
setupTestUsersImpl(filePlan);
|
setupTestUsersImpl(filePlan);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
AuthenticationUtil.getAdminUserName());
|
AuthenticationUtil.getAdminUserName());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -703,7 +704,7 @@ public abstract class BaseRMTestCase extends RetryingTransactionHelperTestCase
|
|||||||
{
|
{
|
||||||
// Do setup
|
// Do setup
|
||||||
setupMultiHierarchyTestDataImpl();
|
setupMultiHierarchyTestDataImpl();
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -781,7 +782,7 @@ public abstract class BaseRMTestCase extends RetryingTransactionHelperTestCase
|
|||||||
dmConsumer = GUID.generate();
|
dmConsumer = GUID.generate();
|
||||||
dmConsumerNodeRef = createPerson(dmConsumer);
|
dmConsumerNodeRef = createPerson(dmConsumer);
|
||||||
siteService.setMembership(collabSiteId, dmConsumer, SiteModel.SITE_CONSUMER);
|
siteService.setMembership(collabSiteId, dmConsumer, SiteModel.SITE_CONSUMER);
|
||||||
|
|
||||||
dmContributor = GUID.generate();
|
dmContributor = GUID.generate();
|
||||||
dmContributorNodeRef = createPerson(dmContributor);
|
dmContributorNodeRef = createPerson(dmContributor);
|
||||||
siteService.setMembership(collabSiteId, dmContributor, SiteModel.SITE_CONTRIBUTOR);
|
siteService.setMembership(collabSiteId, dmContributor, SiteModel.SITE_CONTRIBUTOR);
|
||||||
|
Reference in New Issue
Block a user