Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
dcf246e9
Commit
dcf246e9
authored
11 years ago
by
pkupczyk
Browse files
Options
Downloads
Patches
Plain Diff
SP-830 / BIS-506: ZipArchiver should create notification if archiving fails
SVN: 29674
parent
81c0c123
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/dss/generic/server/plugins/standard/AbstractArchiverProcessingPluginTest.java
+10
-10
10 additions, 10 deletions
...lugins/standard/AbstractArchiverProcessingPluginTest.java
with
10 additions
and
10 deletions
datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/dss/generic/server/plugins/standard/AbstractArchiverProcessingPluginTest.java
+
10
−
10
View file @
dcf246e9
...
@@ -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
())));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment