Skip to content

Commit

Permalink
Added testcases for verification of passwords in log files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Soteria Kommathoty committed Apr 3, 2024
1 parent 478d6ec commit 0d0133d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,4 @@ threads.core.pool.size: 200
threads.queue.capacity: 7000
threads.max.pool.size: 250
scheduled.threadpool.size: 200

logging.file.path=/eiffel-intelligence/eiffel-intelligence.log
logging.file.name= eiffel-intelligence.log
logging.pattern.file='%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n'
logging.pattern.file='%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n'
4 changes: 2 additions & 2 deletions src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>eiffel-intelligence.log</file>
<file>/var/tmp/eiffel-intelligence.log</file>
<encoder>
<pattern>%date %level [%thread] %logger{10} [%file:%line] %msg%n</pattern>
</encoder>
Expand All @@ -11,4 +11,4 @@
<root level="DEBUG">
<appender-ref ref="FILE" />
</root>
</configuration>
</configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ public void testLogForPasswordAdd() throws Exception {
// deleting the test data
deleteSubscriptionsByName(expectedSubscriptionName);
Files.delete(logFilePath);
scanner.close();
}
catch(Exception e) {
LOGGER.error(e.getMessage(),e);
Expand Down Expand Up @@ -428,9 +429,12 @@ public void testLogForPasswordUpdate() throws Exception {
// deleting the test data
deleteSubscriptionsByName(expectedSubscriptionName);
Files.delete(logFilePath);
scanner.close();

}
catch(Exception e) {
LOGGER.error(e.getMessage(),e);
}

}
}

0 comments on commit 0d0133d

Please sign in to comment.