From 1fa77f65c3d2f8a4d8ded051f310350495b0ec32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Wede=C5=82?= Date: Tue, 25 Jun 2019 11:32:43 +0200 Subject: [PATCH] OLMIS-6374 Add new profile for audit logging. --- .../openlmis/template/AuditLogInitializerIntegrationTest.java | 2 +- src/main/java/org/openlmis/template/AuditLogInitializer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/integration-test/java/org/openlmis/template/AuditLogInitializerIntegrationTest.java b/src/integration-test/java/org/openlmis/template/AuditLogInitializerIntegrationTest.java index 7479c5b..e7f908e 100644 --- a/src/integration-test/java/org/openlmis/template/AuditLogInitializerIntegrationTest.java +++ b/src/integration-test/java/org/openlmis/template/AuditLogInitializerIntegrationTest.java @@ -43,7 +43,7 @@ import org.springframework.transaction.annotation.Transactional; @Transactional -@ActiveProfiles({"test", "refresh-db"}) +@ActiveProfiles({"test", "init-audit-log"}) @RunWith(SpringRunner.class) @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT) public class AuditLogInitializerIntegrationTest { diff --git a/src/main/java/org/openlmis/template/AuditLogInitializer.java b/src/main/java/org/openlmis/template/AuditLogInitializer.java index d0438b5..3de06fc 100644 --- a/src/main/java/org/openlmis/template/AuditLogInitializer.java +++ b/src/main/java/org/openlmis/template/AuditLogInitializer.java @@ -46,7 +46,7 @@ */ @Component -@Profile("refresh-db") +@Profile("init-audit-log") @Transactional public class AuditLogInitializer implements CommandLineRunner { private static final Logger LOGGER = LoggerFactory.getLogger(AuditLogInitializer.class);