Skip to content
Snippets Groups Projects
Commit f35b1613 authored by pkupczyk's avatar pkupczyk
Browse files

SP-830 / BIS-506: ZipArchiver should create notification if archiving fails

SVN: 29675
parent dcf246e9
No related branches found
No related tags found
No related merge requests found
...@@ -133,10 +133,12 @@ public class SecondCopyPostRegistrationTaskTest extends AbstractFileSystemTestCa ...@@ -133,10 +133,12 @@ public class SecondCopyPostRegistrationTaskTest extends AbstractFileSystemTestCa
}); });
OpenBISSessionHolder sessionHolder = new OpenBISSessionHolder(); OpenBISSessionHolder sessionHolder = new OpenBISSessionHolder();
sessionHolder.setDataStoreCode(DATA_STORE_CODE); sessionHolder.setDataStoreCode(DATA_STORE_CODE);
contentProviderRecordingWrapper = InvocationRecordingWrapper.<IHierarchicalContentProvider>wrap( contentProviderRecordingWrapper =
new HierarchicalContentProvider(service, shareIdManager, configProvider, InvocationRecordingWrapper.<IHierarchicalContentProvider> wrap(
contentCache, new DefaultFileBasedHierarchicalContentFactory(), new HierarchicalContentProvider(service, shareIdManager, configProvider,
dssServiceFactory, sessionHolder, null), IHierarchicalContentProvider.class, IHierarchicalContent.class, IHierarchicalContentNode.class); contentCache, new DefaultFileBasedHierarchicalContentFactory(),
dssServiceFactory, sessionHolder, null), IHierarchicalContentProvider.class, IHierarchicalContent.class,
IHierarchicalContentNode.class);
File exampleFile = new File(store, SHARE_ID + "/" + DATA_SET1_EXAMPLE_FILE_PATH); File exampleFile = new File(store, SHARE_ID + "/" + DATA_SET1_EXAMPLE_FILE_PATH);
exampleFile.getParentFile().mkdirs(); exampleFile.getParentFile().mkdirs();
FileUtilities.writeToFile(exampleFile, EXAMPLE_CONTENT); FileUtilities.writeToFile(exampleFile, EXAMPLE_CONTENT);
...@@ -259,7 +261,7 @@ public class SecondCopyPostRegistrationTaskTest extends AbstractFileSystemTestCa ...@@ -259,7 +261,7 @@ public class SecondCopyPostRegistrationTaskTest extends AbstractFileSystemTestCa
+ "/a/b/c\n" + "ERROR OPERATION.AbstractDatastorePlugin - Archiving failed :path '" + "/a/b/c\n" + "ERROR OPERATION.AbstractDatastorePlugin - Archiving failed :path '"
+ destination.getAbsolutePath() + "/a/b/c' does not exist\n" + destination.getAbsolutePath() + "/a/b/c' does not exist\n"
+ "java.io.IOException: path '" + destination.getAbsolutePath() + "java.io.IOException: path '" + destination.getAbsolutePath()
+ "/a/b/c' does not exist\n" + "ERROR OPERATION.AbstractDatastorePlugin - " + "/a/b/c' does not exist\n" + "ERROR NOTIFY.AbstractDatastorePlugin - "
+ "Archiving for dataset ds1 finished with the status: " + "Archiving for dataset ds1 finished with the status: "
+ "ERROR: \"Archiving failed :path '" + destination.getAbsolutePath() + "ERROR: \"Archiving failed :path '" + destination.getAbsolutePath()
+ "/a/b/c' does not exist\".\n" + "ERROR NOTIFY.SecondCopyPostRegistrationTask - " + "/a/b/c' does not exist\".\n" + "ERROR NOTIFY.SecondCopyPostRegistrationTask - "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment