mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)
73022: Merge V4.2-BUG-FIX (4.2.3) to HEAD-BUG-FIX (4.3.0) 72991: Merged DEV to V4.2-BUG-FIX (4.2.3) 72988 : MNT-11584 : Failing test InviteServiceTest.testGetInvitationStatus() - Restore runAsUser after InviteByTicket webscript git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@73197 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -548,8 +548,15 @@ public class InviteServiceTest extends BaseWebScriptTest
|
||||
{
|
||||
String url = "/api/invite/" + inviteId + "/" + inviteTicket + "?inviteeUserName=" + inviteeUid;
|
||||
|
||||
String runAsUser = AuthenticationUtil.getRunAsUser();
|
||||
|
||||
Response response = sendRequest(new GetRequest(url), Status.STATUS_OK);
|
||||
|
||||
if (!runAsUser.equals(AuthenticationUtil.getRunAsUser()))
|
||||
{
|
||||
AuthenticationUtil.setRunAsUser(runAsUser);
|
||||
}
|
||||
|
||||
JSONObject result = new JSONObject(response.getContentAsString());
|
||||
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user