mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-01 14:41:46 +00:00
[MNT-24127] Added Endpoint to Calculate Size of the folder with Integration Test Cases [ags][tas]
This commit is contained in:
@@ -183,7 +183,6 @@ public class NodeFolderSizeApiTest extends AbstractBaseApiTest
|
|||||||
@Test
|
@Test
|
||||||
public void testPerformance() throws Exception
|
public void testPerformance() throws Exception
|
||||||
{
|
{
|
||||||
setRequestContext(user1);
|
|
||||||
Node parentNodes;
|
Node parentNodes;
|
||||||
|
|
||||||
// Logging initial time.
|
// Logging initial time.
|
||||||
@@ -191,9 +190,6 @@ public class NodeFolderSizeApiTest extends AbstractBaseApiTest
|
|||||||
String formattedTimestamp = eventTimestamp.format(DateTimeFormatter.ofPattern("yyyy:MM:dd HH:mm:ss"));
|
String formattedTimestamp = eventTimestamp.format(DateTimeFormatter.ofPattern("yyyy:MM:dd HH:mm:ss"));
|
||||||
LOG.info(" ********** In NodeFolderSizeApiTest:testPerformance Initial Time :{}", formattedTimestamp);
|
LOG.info(" ********** In NodeFolderSizeApiTest:testPerformance Initial Time :{}", formattedTimestamp);
|
||||||
|
|
||||||
String siteTitle = "RandomSite" + System.currentTimeMillis();
|
|
||||||
userOneN1Site = createSite("RN"+RUNID, siteTitle, siteTitle, SiteVisibility.PRIVATE, 201);
|
|
||||||
|
|
||||||
// Create a folder within the site document's library.
|
// Create a folder within the site document's library.
|
||||||
String folderName = "folder" + System.currentTimeMillis();
|
String folderName = "folder" + System.currentTimeMillis();
|
||||||
String folderId = addToDocumentLibrary(userOneN1Site, folderName, TYPE_CM_FOLDER);
|
String folderId = addToDocumentLibrary(userOneN1Site, folderName, TYPE_CM_FOLDER);
|
||||||
@@ -247,15 +243,6 @@ public class NodeFolderSizeApiTest extends AbstractBaseApiTest
|
|||||||
@Test
|
@Test
|
||||||
public void testHTTPStatus() throws Exception
|
public void testHTTPStatus() throws Exception
|
||||||
{
|
{
|
||||||
|
|
||||||
setRequestContext(user1);
|
|
||||||
String siteTitle = "RandomSite" + System.currentTimeMillis();
|
|
||||||
userOneN1Site = createSite("RN"+RUNID, siteTitle, siteTitle, SiteVisibility.PRIVATE, 201);
|
|
||||||
|
|
||||||
// Create a folder within the site document's library.
|
|
||||||
String folderName = "folder" + System.currentTimeMillis();
|
|
||||||
String folderId = addToDocumentLibrary(userOneN1Site, folderName, TYPE_CM_FOLDER);
|
|
||||||
|
|
||||||
setRequestContext(null);
|
setRequestContext(null);
|
||||||
delete(getFolderSizeUrl(folderId), folderId, null, 401);
|
delete(getFolderSizeUrl(folderId), folderId, null, 401);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user