mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
revert unnecessary changes
This commit is contained in:
@@ -73,6 +73,7 @@ public class AuditLoginEventsTests extends BaseRMRestTest
|
||||
assertTrue("The list of events is not filtered by " + LOGIN_UNSUCCESSFUL.event,
|
||||
auditEntries.stream().allMatch(auditEntry -> auditEntry.getEvent().equals(LOGIN_UNSUCCESSFUL.eventDisplayName)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Given I have tried to login using valid credentials
|
||||
* When I view the RM audit filtered by Login successful event
|
||||
@@ -81,15 +82,14 @@ public class AuditLoginEventsTests extends BaseRMRestTest
|
||||
@Test
|
||||
public void filterByLoginSuccessful() throws Exception
|
||||
{
|
||||
//rmAuditService.clearAuditLog();
|
||||
restClient.authenticateUser(getAdminUser());
|
||||
restClient.withCoreAPI().getSites();
|
||||
|
||||
STEP("Get the list of audit entries for the login unsuccessful event.");
|
||||
STEP("Get the list of audit entries for the login successful event.");
|
||||
List<AuditEntry> auditEntries = rmAuditService.getAuditEntriesFilteredByEvent(getAdminUser(),
|
||||
LOGIN_SUCCESSFUL);
|
||||
|
||||
STEP("Check the audit log contains only the entries for the login unsuccessful event.");
|
||||
STEP("Check the audit log contains only the entries for the login successful event.");
|
||||
assertTrue("The list of events is not filtered by " + LOGIN_SUCCESSFUL.event,
|
||||
auditEntries.stream().allMatch(auditEntry -> auditEntry.getEvent().equals(LOGIN_SUCCESSFUL.eventDisplayName)));
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
# Root logger option
|
||||
log4j.rootLogger=INFO, file, stdout
|
||||
log4j.rootLogger=INFO, file
|
||||
|
||||
# Direct log messages to a log file
|
||||
log4j.appender.file=org.apache.log4j.RollingFileAppender
|
||||
@@ -9,8 +9,3 @@ log4j.appender.file.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.file.layout.ConversionPattern=[%t] %d{HH:mm:ss} %-5p %c{1}:%L - %m%n
|
||||
|
||||
log4j.logger.com.example=debug
|
||||
##Direct log messages to stdout
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.Target=System.out
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=[%t] %d{HH:mm:ss} %-5p %c{1}:%L - %m%n
|
||||
|
Reference in New Issue
Block a user