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

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

SVN: 29674
parent 81c0c123
No related branches found
No related tags found
No related merge requests found
...@@ -417,10 +417,10 @@ public class AbstractArchiverProcessingPluginTest extends AbstractFileSystemTest ...@@ -417,10 +417,10 @@ public class AbstractArchiverProcessingPluginTest extends AbstractFileSystemTest
+ "ERROR OPERATION.AbstractDatastorePlugin - " + "ERROR OPERATION.AbstractDatastorePlugin - "
+ "Archiving failed :Data set ds1 throws exception.\n" + "Archiving failed :Data set ds1 throws exception.\n"
+ "java.lang.RuntimeException: Data set ds1 throws exception.\n" + "java.lang.RuntimeException: Data set ds1 throws exception.\n"
+ "ERROR OPERATION.AbstractDatastorePlugin - " + "ERROR NOTIFY.AbstractDatastorePlugin - "
+ "Archiving for dataset ds1 finished with the status: " + "Archiving for dataset ds1 finished with the status: "
+ "ERROR: \"Archiving failed :Data set ds1 throws exception.\".\n" + "ERROR: \"Archiving failed :Data set ds1 throws exception.\".\n"
+ "ERROR OPERATION.AbstractDatastorePlugin - " + "ERROR NOTIFY.AbstractDatastorePlugin - "
+ "Archiving for dataset ds2 finished with the status: " + "Archiving for dataset ds2 finished with the status: "
+ "ERROR: \"Archiving failed :Data set ds1 throws exception.\".", + "ERROR: \"Archiving failed :Data set ds1 throws exception.\".",
LogUtils.removeEmbeddedStackTrace(logRecorder.getLogContent())); LogUtils.removeEmbeddedStackTrace(logRecorder.getLogContent()));
...@@ -461,9 +461,9 @@ public class AbstractArchiverProcessingPluginTest extends AbstractFileSystemTest ...@@ -461,9 +461,9 @@ public class AbstractArchiverProcessingPluginTest extends AbstractFileSystemTest
assertEquals( assertEquals(
"INFO OPERATION.AbstractDatastorePlugin - " "INFO OPERATION.AbstractDatastorePlugin - "
+ "Archiving of the following datasets has been requested: [Dataset 'ds1', Dataset 'ds2']\n" + "Archiving of the following datasets has been requested: [Dataset 'ds1', Dataset 'ds2']\n"
+ "ERROR OPERATION.AbstractDatastorePlugin - " + "ERROR NOTIFY.AbstractDatastorePlugin - "
+ "Archiving for dataset ds1 finished with the status: ERROR.\n" + "Archiving for dataset ds1 finished with the status: ERROR.\n"
+ "ERROR OPERATION.AbstractDatastorePlugin - " + "ERROR NOTIFY.AbstractDatastorePlugin - "
+ "Archiving for dataset ds2 finished with the status: ERROR.", + "Archiving for dataset ds2 finished with the status: ERROR.",
logRecorder.getLogContent()); logRecorder.getLogContent());
context.assertIsSatisfied(); context.assertIsSatisfied();
...@@ -614,7 +614,7 @@ public class AbstractArchiverProcessingPluginTest extends AbstractFileSystemTest ...@@ -614,7 +614,7 @@ public class AbstractArchiverProcessingPluginTest extends AbstractFileSystemTest
assertEquals( assertEquals(
"INFO OPERATION.AbstractDatastorePlugin - " "INFO OPERATION.AbstractDatastorePlugin - "
+ "Archiving of the following datasets has been requested: [Dataset 'ds1', Dataset 'ds2']\n" + "Archiving of the following datasets has been requested: [Dataset 'ds1', Dataset 'ds2']\n"
+ "ERROR OPERATION.AbstractDatastorePlugin - " + "ERROR NOTIFY.AbstractDatastorePlugin - "
+ "Archiving for dataset ds2 finished with the status: ERROR.", + "Archiving for dataset ds2 finished with the status: ERROR.",
logRecorder.getLogContent()); logRecorder.getLogContent());
context.assertIsSatisfied(); context.assertIsSatisfied();
...@@ -645,7 +645,7 @@ public class AbstractArchiverProcessingPluginTest extends AbstractFileSystemTest ...@@ -645,7 +645,7 @@ public class AbstractArchiverProcessingPluginTest extends AbstractFileSystemTest
assertEquals("[ERROR]", status.getErrorStatuses().toString()); assertEquals("[ERROR]", status.getErrorStatuses().toString());
assertEquals("INFO OPERATION.AbstractDatastorePlugin - " assertEquals("INFO OPERATION.AbstractDatastorePlugin - "
+ "Archiving of the following datasets has been requested: [Dataset 'ds1']\n" + "Archiving of the following datasets has been requested: [Dataset 'ds1']\n"
+ "ERROR OPERATION.AbstractDatastorePlugin - " + "ERROR NOTIFY.AbstractDatastorePlugin - "
+ "Archiving for dataset ds1 finished with the status: ERROR.", + "Archiving for dataset ds1 finished with the status: ERROR.",
logRecorder.getLogContent()); logRecorder.getLogContent());
context.assertIsSatisfied(); context.assertIsSatisfied();
...@@ -681,7 +681,7 @@ public class AbstractArchiverProcessingPluginTest extends AbstractFileSystemTest ...@@ -681,7 +681,7 @@ public class AbstractArchiverProcessingPluginTest extends AbstractFileSystemTest
assertEquals("[ds1]", status.getDatasetsByStatus(Status.createError()).toString()); assertEquals("[ds1]", status.getDatasetsByStatus(Status.createError()).toString());
assertEquals("INFO OPERATION.AbstractDatastorePlugin - " assertEquals("INFO OPERATION.AbstractDatastorePlugin - "
+ "Archiving of the following datasets has been requested: [Dataset 'ds1']\n" + "Archiving of the following datasets has been requested: [Dataset 'ds1']\n"
+ "ERROR OPERATION.AbstractDatastorePlugin - " + "ERROR NOTIFY.AbstractDatastorePlugin - "
+ "Archiving for dataset ds1 finished with the status: ERROR.", + "Archiving for dataset ds1 finished with the status: ERROR.",
logRecorder.getLogContent()); logRecorder.getLogContent());
context.assertIsSatisfied(); context.assertIsSatisfied();
...@@ -752,7 +752,7 @@ public class AbstractArchiverProcessingPluginTest extends AbstractFileSystemTest ...@@ -752,7 +752,7 @@ public class AbstractArchiverProcessingPluginTest extends AbstractFileSystemTest
assertEquals("[ERROR]", status.getErrorStatuses().toString()); assertEquals("[ERROR]", status.getErrorStatuses().toString());
assertEquals("INFO OPERATION.AbstractDatastorePlugin - " assertEquals("INFO OPERATION.AbstractDatastorePlugin - "
+ "Unarchiving of the following datasets has been requested: [Dataset 'ds1']\n" + "Unarchiving of the following datasets has been requested: [Dataset 'ds1']\n"
+ "ERROR OPERATION.AbstractDatastorePlugin - " + "ERROR NOTIFY.AbstractDatastorePlugin - "
+ "Unarchiving for dataset ds1 finished with the status: ERROR.", + "Unarchiving for dataset ds1 finished with the status: ERROR.",
replaceTimeInfo(LogUtils.removeEmbeddedStackTrace(logRecorder.getLogContent()))); replaceTimeInfo(LogUtils.removeEmbeddedStackTrace(logRecorder.getLogContent())));
context.assertIsSatisfied(); context.assertIsSatisfied();
...@@ -795,7 +795,7 @@ public class AbstractArchiverProcessingPluginTest extends AbstractFileSystemTest ...@@ -795,7 +795,7 @@ public class AbstractArchiverProcessingPluginTest extends AbstractFileSystemTest
+ "Unarchiving of the following datasets has been requested: [Dataset 'ds1', Dataset 'ds2']\n" + "Unarchiving of the following datasets has been requested: [Dataset 'ds1', Dataset 'ds2']\n"
+ "INFO OPERATION.AbstractDatastorePlugin - " + "INFO OPERATION.AbstractDatastorePlugin - "
+ "Obtained the list of all datasets in all shares in ?.?? s.\n" + "Obtained the list of all datasets in all shares in ?.?? s.\n"
+ "ERROR OPERATION.AbstractDatastorePlugin - " + "ERROR NOTIFY.AbstractDatastorePlugin - "
+ "Unarchiving for dataset ds1 finished with the status: ERROR.", + "Unarchiving for dataset ds1 finished with the status: ERROR.",
replaceTimeInfo(LogUtils.removeEmbeddedStackTrace(logRecorder.getLogContent()))); replaceTimeInfo(LogUtils.removeEmbeddedStackTrace(logRecorder.getLogContent())));
context.assertIsSatisfied(); context.assertIsSatisfied();
...@@ -837,7 +837,7 @@ public class AbstractArchiverProcessingPluginTest extends AbstractFileSystemTest ...@@ -837,7 +837,7 @@ public class AbstractArchiverProcessingPluginTest extends AbstractFileSystemTest
+ "ERROR OPERATION.AbstractDatastorePlugin - " + "ERROR OPERATION.AbstractDatastorePlugin - "
+ "Unarchiving failed: Data set ds1 throws exception.\n" + "Unarchiving failed: Data set ds1 throws exception.\n"
+ "java.lang.RuntimeException: Data set ds1 throws exception.\n" + "java.lang.RuntimeException: Data set ds1 throws exception.\n"
+ "ERROR OPERATION.AbstractDatastorePlugin - " + "ERROR NOTIFY.AbstractDatastorePlugin - "
+ "Unarchiving for dataset ds1 finished with the status: " + "Unarchiving for dataset ds1 finished with the status: "
+ "ERROR: \"Unarchiving failed: Data set ds1 throws exception.\".", + "ERROR: \"Unarchiving failed: Data set ds1 throws exception.\".",
replaceTimeInfo(LogUtils.removeEmbeddedStackTrace(logRecorder.getLogContent()))); replaceTimeInfo(LogUtils.removeEmbeddedStackTrace(logRecorder.getLogContent())));
......
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