Skip to content

Commit

Permalink
DMP-4813 Change update metadata from OffsetDateTime to String so date…
Browse files Browse the repository at this point in the history
… is in expected format

Changed the update metadata request from OffsetDateTime to a formatted string so the output is in the expected format
  • Loading branch information
karen-hedges committed Feb 25, 2025
1 parent b5f400e commit efa73f7
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@ void calculateEventDates_WithMediaSuccessfulUpdate() {

// then
var persistedEod = dartsDatabase.getExternalObjectDirectoryRepository().findById(armEod.getId()).orElseThrow();
log.info("EOD event date time {}", persistedEod.getEventDateTs().truncatedTo(MILLIS));
log.info("Retention date time {}", RETENTION_DATE_TIME.truncatedTo(MILLIS));
assertFalse(persistedEod.isUpdateRetention());
assertEquals(0, persistedEod.getEventDateTs().truncatedTo(MILLIS).compareTo(RETENTION_DATE_TIME.truncatedTo(MILLIS)));

Expand Down Expand Up @@ -222,8 +220,6 @@ void calculateEventDates_NoEodsToProcess() {

// then
var persistedEod = dartsDatabase.getExternalObjectDirectoryRepository().findById(armEod.getId()).orElseThrow();
log.info("EOD event date time {}", persistedEod.getEventDateTs().truncatedTo(MILLIS));
log.info("Retention date time {}", RETENTION_DATE_TIME.truncatedTo(MILLIS));
assertFalse(persistedEod.isUpdateRetention());
assertEquals(0, persistedEod.getEventDateTs().truncatedTo(MILLIS).compareTo(RETENTION_DATE_TIME.truncatedTo(MILLIS)));

Expand Down Expand Up @@ -285,8 +281,6 @@ void calculateEventDates_WithTranscriptionSuccessfulUpdate() {

// then
var persistedEod = dartsDatabase.getExternalObjectDirectoryRepository().findById(armEod.getId()).orElseThrow();
log.info("EOD event date time {}", armEod.getEventDateTs().truncatedTo(MILLIS));
log.info("Retention date time {}", RETENTION_DATE_TIME.truncatedTo(MILLIS));
assertFalse(persistedEod.isUpdateRetention());
assertEquals(0, persistedEod.getEventDateTs().truncatedTo(MILLIS).compareTo(RETENTION_DATE_TIME.truncatedTo(MILLIS)));

Expand Down Expand Up @@ -358,8 +352,6 @@ void calculateEventDates_WithAnnotationSuccessfulUpdate() {

// then
var persistedEod = dartsDatabase.getExternalObjectDirectoryRepository().findById(armEod.getId()).orElseThrow();
log.info("EOD event date time {}", persistedEod.getEventDateTs().truncatedTo(MILLIS));
log.info("Retention date time {}", RETENTION_DATE_TIME.truncatedTo(MILLIS));
assertFalse(persistedEod.isUpdateRetention());
assertEquals(0, persistedEod.getEventDateTs().truncatedTo(MILLIS).compareTo(RETENTION_DATE_TIME.truncatedTo(MILLIS)));

Expand Down Expand Up @@ -413,8 +405,6 @@ void calculateEventDates_WithCaseDocumentSuccessfulUpdate() {

// then
var persistedEod = dartsDatabase.getExternalObjectDirectoryRepository().findById(armEod.getId()).orElseThrow();
log.info("EOD event date time {}", persistedEod.getEventDateTs());
log.info("Retention date time {}", RETENTION_DATE_TIME);
assertFalse(persistedEod.isUpdateRetention());
assertEquals(0, persistedEod.getEventDateTs().truncatedTo(MILLIS).compareTo(RETENTION_DATE_TIME.truncatedTo(MILLIS)));

Expand Down Expand Up @@ -470,8 +460,6 @@ void calculateEventDates_NoConfidenceScore() {

// then
var persistedEod = dartsDatabase.getExternalObjectDirectoryRepository().findById(armEod.getId()).orElseThrow();
log.info("EOD event date time {}", persistedEod.getEventDateTs().truncatedTo(MILLIS));
log.info("Retention date time {}", RETENTION_DATE_TIME.truncatedTo(MILLIS));
assertTrue(persistedEod.isUpdateRetention());

verify(armApiClient, times(0)).updateMetadata(notNull(), notNull());
Expand Down Expand Up @@ -513,8 +501,6 @@ void calculateEventDates_ConfidenceScoreOfZero() {

// then
var persistedEod = dartsDatabase.getExternalObjectDirectoryRepository().findById(armEod.getId()).orElseThrow();
log.info("EOD event date time {}", persistedEod.getEventDateTs().truncatedTo(MILLIS));
log.info("Retention date time {}", RETENTION_DATE_TIME.truncatedTo(MILLIS));
assertTrue(persistedEod.isUpdateRetention());

verify(armApiClient, times(0)).updateMetadata(notNull(), notNull());
Expand Down

0 comments on commit efa73f7

Please sign in to comment.