Skip to content
Snippets Groups Projects
Commit d78a1d8b authored by anttil's avatar anttil
Browse files

SWE-22 / SP-940: Try to stabilize datastore_server tests

SVN: 29992
parent c277d90c
No related branches found
No related tags found
No related merge requests found
...@@ -119,20 +119,19 @@ public class DataSetAndPathInfoDBConsistencyCheckTaskTest extends AssertJUnit ...@@ -119,20 +119,19 @@ public class DataSetAndPathInfoDBConsistencyCheckTaskTest extends AssertJUnit
task.execute(); task.execute();
assertEquals("INFO OPERATION.DataSetAndPathInfoDBConsistencyCheckTask - " assertThat(logRecorder.getLogLines(), hasItem("INFO OPERATION.DataSetAndPathInfoDBConsistencyCheckTask - "
+ "Check 1 data sets registered since 1970-01-01 01:00:00\n" + "Check 1 data sets registered since 1970-01-01 01:00:00"));
+ "ERROR OPERATION.DataSetAndPathInfoDBConsistencyChecker - " assertThat(logRecorder.getLogLines(), hasItem("ERROR OPERATION.DataSetAndPathInfoDBConsistencyChecker - "
+ "Couldn't check consistency of the file system and " + "Couldn't check consistency of the file system and "
+ "the path info database for a data set: ds1\n" + "the path info database for a data set: ds1"));
+ "java.lang.RuntimeException: Oohps!\n" assertThat(logRecorder.getLogLines(), hasItem("java.lang.RuntimeException: Oohps!"));
+ "ERROR NOTIFY.DataSetAndPathInfoDBConsistencyCheckTask - " assertThat(logRecorder.getLogLines(), hasItem("ERROR NOTIFY.DataSetAndPathInfoDBConsistencyCheckTask - "
+ "File system and path info DB consistency check report " + "File system and path info DB consistency check report "
+ "for all data sets since 1970-01-01 01:00:00\n\n" + "for all data sets since 1970-01-01 01:00:00"));
+ "Error when checking datasets:\n\n" assertThat(logRecorder.getLogLines(), hasItem("Error when checking datasets:"));
+ "ERROR: \"Couldn't check consistency of the file system and " assertThat(logRecorder.getLogLines(), hasItem("ERROR: \"Couldn't check consistency of the file system and "
+ "the path info database for a data set: ds1 " + "the path info database for a data set: ds1 because of the following exception: Oohps!\""));
+ "because of the following exception: Oohps!\"",
LogUtils.removeEmbeddedStackTrace(logRecorder.getLogContent()));
assertEquals(true, fileContent.isClosed()); assertEquals(true, fileContent.isClosed());
context.assertIsSatisfied(); context.assertIsSatisfied();
} }
......
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