Skip to content

Commit

Permalink
[DSC-1505] fixed broken ITs after make enable audit by default
Browse files Browse the repository at this point in the history
  • Loading branch information
eskander committed Feb 15, 2024
1 parent e1545c7 commit 1ecb8f9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ public class AuditEventRestRepositoryIT extends AbstractControllerIntegrationTes
private BitstreamService bitstreamService;

private void loadSomeObjects(boolean enabled) throws Exception {
if (enabled) {
auditService.deleteEvents(context, null, null);

if (!enabled) {
// enable the audit system for this test
configurationService.setProperty("audit.enabled", true);
configurationService.setProperty("audit.enabled", false);
}
// We turn off the authorization system in order to create the structure as
// defined below
Expand All @@ -80,8 +82,6 @@ private void loadSomeObjects(boolean enabled) throws Exception {
public void cleanAuditCore() {
auditService.deleteEvents(context, null, null);
auditService.commit();
// this is required if the configuration is not present in the files
configurationService.setProperty("audit.enabled", false);
}

@Test
Expand Down

0 comments on commit 1ecb8f9

Please sign in to comment.