diff --git a/beekeeper-core/src/main/java/com/expediagroup/beekeeper/core/service/BeekeeperHistoryService.java b/beekeeper-core/src/main/java/com/expediagroup/beekeeper/core/service/BeekeeperHistoryService.java index dc4b7427..7c5ecccd 100644 --- a/beekeeper-core/src/main/java/com/expediagroup/beekeeper/core/service/BeekeeperHistoryService.java +++ b/beekeeper-core/src/main/java/com/expediagroup/beekeeper/core/service/BeekeeperHistoryService.java @@ -22,7 +22,6 @@ public BeekeeperHistoryService(BeekeeperHistoryRepository beekeeperHistoryReposi public void saveHistory(HousekeepingEntity housekeepingEntity, HousekeepingStatus status) { BeekeeperHistory event = BeekeeperHistory.builder() - .id(housekeepingEntity.getId()) .eventTimestamp(LocalDateTime.now()) .databaseName(housekeepingEntity.getDatabaseName()) .tableName(housekeepingEntity.getTableName()) diff --git a/beekeeper-core/src/test/java/com/expediagroup/beekeeper/core/service/BeekeeperHistoryServiceTest.java b/beekeeper-core/src/test/java/com/expediagroup/beekeeper/core/service/BeekeeperHistoryServiceTest.java index 4037bd36..2b9911ce 100644 --- a/beekeeper-core/src/test/java/com/expediagroup/beekeeper/core/service/BeekeeperHistoryServiceTest.java +++ b/beekeeper-core/src/test/java/com/expediagroup/beekeeper/core/service/BeekeeperHistoryServiceTest.java @@ -17,8 +17,6 @@ import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; -import com.fasterxml.jackson.core.JsonProcessingException; - import com.expediagroup.beekeeper.core.model.HousekeepingEntity; import com.expediagroup.beekeeper.core.model.HousekeepingMetadata; import com.expediagroup.beekeeper.core.model.HousekeepingPath; @@ -47,7 +45,7 @@ public void setup() { } @Test - void expiredHistory() throws JsonProcessingException { + void expiredHistory() { HousekeepingMetadata metadata = createHousekeepingMetadata(); String details = createEventDetails(metadata); BeekeeperHistory history = createHistoryEvent(metadata, details, "DELETED"); @@ -57,7 +55,7 @@ void expiredHistory() throws JsonProcessingException { } @Test - void unreferencedHistory() throws JsonProcessingException { + void unreferencedHistory() { HousekeepingPath path = createHousekeepingPath(); String details = createEventDetails(path); BeekeeperHistory history = createHistoryEvent(path, details, "SCHEDULED");