diff options
| author | BMatajsz <90217645+BMatajsz@users.noreply.github.com> | 2024-12-03 09:39:46 -0500 |
|---|---|---|
| committer | BMatajsz <90217645+BMatajsz@users.noreply.github.com> | 2024-12-03 09:39:46 -0500 |
| commit | 4a4144cabda83c02eed0917eed884f3ec5641ba9 (patch) | |
| tree | 1e579c1d3e0784db9fb3fb3b9209f1841e24fdb0 | |
| parent | 44df5df0b65df279aaf471fa8258da218ed7c522 (diff) | |
| download | soen423-4a4144cabda83c02eed0917eed884f3ec5641ba9.zip | |
Uncommented tests
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | SystemTest.log | 12 | ||||
| -rw-r--r-- | TestExpected.log | 2 | ||||
| -rw-r--r-- | src/test/java/derms/test/SystemTest.java | 12 |
4 files changed, 11 insertions, 16 deletions
@@ -7,6 +7,7 @@ QUEServer.log MTLServer.log SHEServer.log server.log +SystemTest.log *.run.xml *.toc javadoc diff --git a/SystemTest.log b/SystemTest.log index 42385cd..a7e7939 100644 --- a/SystemTest.log +++ b/SystemTest.log @@ -1,9 +1,3 @@ -[2024-12-03 09:30:31] REPLICA 1: {BYZANTINE: TRUE} -[2024-12-03 09:30:31] REPLICA 1: {CRASH: FALSE} -[2024-12-03 09:30:31] REPLICA 3: {BYZANTINE: FALSE} -[2024-12-03 09:30:31] REPLICA 3: {CRASH: TRUE} -[2024-12-03 09:30:31] REPLICA 3: {CRASH: DETECTED} -[2024-12-03 09:30:31] [FAILED TO INFORM FE (RM IS DOWN)] -[2024-12-03 09:30:31] REPLICA 3: {RESTARTED} -[2024-12-03 09:30:51] [FAILED: Fail: No response from any server] -[2024-12-03 09:31:11] [FAILED: Fail: No response from any server] +[2024-12-03 09:37:37] REPLICA 1: {BYZANTINE: FALSE} +[2024-12-03 09:37:37] REPLICA 1: {CRASH: FALSE} +[2024-12-03 09:37:57] [FAILED: Fail: No response from any server] diff --git a/TestExpected.log b/TestExpected.log index 805775e..1cea96b 100644 --- a/TestExpected.log +++ b/TestExpected.log @@ -1,3 +1,3 @@ [2024-12-03 07:48:36] REPLICA 1: {BYZANTINE: FALSE} [2024-12-03 07:48:36] REPLICA 1: {CRASH: FALSE} -[2024-12-03 08:53:10] [SUCCESS: Something Something]
\ No newline at end of file +[2024-12-03 08:53:10] [SUCCESS: OK]
\ No newline at end of file diff --git a/src/test/java/derms/test/SystemTest.java b/src/test/java/derms/test/SystemTest.java index 6ee1f35..2112ce9 100644 --- a/src/test/java/derms/test/SystemTest.java +++ b/src/test/java/derms/test/SystemTest.java @@ -64,7 +64,7 @@ class SystemTest { DERMSServerPublisher.stop(); } - /* @Test + @Test void testNormal() throws IOException { // Replica 1 String[] argsRM = {"1", "MTL", IP, "0", "0"}; @@ -80,9 +80,9 @@ class SystemTest { // Compare the number of lines in the log files, to determine if they match or not assertTrue(LogComparator.compareFiles(TEST_LOG_PATH, EXPECTED_LOG_PATH_NORM)); - } */ + } - /* @Test + @Test void testByzantine() throws IOException { // Replica 1 String[] argsRM = {"1", "MTL", IP, "1", "0"}; @@ -98,9 +98,9 @@ class SystemTest { // Compare the number of lines in the log files, to determine if they match or not assertTrue(LogComparator.compareFiles(TEST_LOG_PATH, EXPECTED_LOG_PATH_BYZ)); - } */ + } - /* @Test + @Test void testCrash() throws IOException { // Replica 1 String[] argsRM = {"1", "MTL", IP, "0", "1"}; @@ -116,7 +116,7 @@ class SystemTest { // Compare the number of lines in the log files, to determine if they match or not assertTrue(LogComparator.compareFiles(TEST_LOG_PATH, EXPECTED_LOG_PATH_CRASH)); - } */ + } @Test void testCombined() throws IOException { |