mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged DEV to HEAD
51998: Deleting a store is now functionally the same as deleting a node but without any option of archival - ALF-19153: CLOUD-1685, CLOUD-1827 and CLOUD-1828 - While cleaning Cloud test data tenants are deleted, which leads to their stores being deleted. - NodeService.deleteStore was not firing policies for every node in the store; several bits of pre- and post-delete code were therefore not being called, which lead to secondary data (caches, attributes, etc) being left lying around. - A side effect of this fix was that the sys:undeletable aspect has to be disabled during account deletion git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@52007 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -485,6 +485,10 @@ public abstract class BaseNodeServiceTest extends BaseSpringTest
|
||||
List<StoreRef> storeRefs = nodeService.getStores();
|
||||
// check that the store ref is present
|
||||
assertTrue("New store not present in list of stores", storeRefs.contains(storeRef));
|
||||
// Get the root node
|
||||
NodeRef rootNodeRef = nodeService.getRootNode(storeRef);
|
||||
assertTrue("Store should still exist", nodeService.exists(storeRef));
|
||||
assertTrue("Node should still exist", nodeService.exists(rootNodeRef));
|
||||
// Delete it
|
||||
nodeService.deleteStore(storeRef);
|
||||
storeRefs = nodeService.getStores();
|
||||
@@ -497,6 +501,9 @@ public abstract class BaseNodeServiceTest extends BaseSpringTest
|
||||
fail("NodeService should not have returned 'deleted' stores." + storeRefs);
|
||||
}
|
||||
}
|
||||
// They should not exist as far as external code is concerned
|
||||
assertFalse("Store should still exist", nodeService.exists(storeRef));
|
||||
assertFalse("Node should still exist", nodeService.exists(rootNodeRef));
|
||||
|
||||
// Commit to ensure all is well
|
||||
setComplete();
|
||||
|
Reference in New Issue
Block a user