Merged WEBAPP-API (5.2.1) to 5.2.N (5.2.1)

133185 jkaabimofrad: APPSREPO-61: As part of code review, renamed the quick share expiry date period flag.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133222 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jamal Kaabi-Mofrad
2016-11-28 16:54:32 +00:00
parent 3930d7051a
commit f15ab178da

View File

@@ -903,7 +903,7 @@ public class SharedLinkApiTest extends AbstractBaseApiTest
body.setExpiresAt(DateTime.now().minusSeconds(20).toDate()); body.setExpiresAt(DateTime.now().minusSeconds(20).toDate());
post(URL_SHARED_LINKS, RestApiUtil.toJsonAsString(body), 400); post(URL_SHARED_LINKS, RestApiUtil.toJsonAsString(body), 400);
// The default expiryDate period is DAYS (see: 'system.quickshare.expiry_date.enforce.period' property), // The default expiryDate period is DAYS (see: 'system.quickshare.expiry_date.enforce.minimum.period' property),
// so the expiry date must be at least 1 day from now // so the expiry date must be at least 1 day from now
body.setExpiresAt(DateTime.now().plusMinutes(5).toDate()); body.setExpiresAt(DateTime.now().plusMinutes(5).toDate());
post(URL_SHARED_LINKS, RestApiUtil.toJsonAsString(body), 400); post(URL_SHARED_LINKS, RestApiUtil.toJsonAsString(body), 400);