From 7b545da348462f059576ae663e812d73115dd874 Mon Sep 17 00:00:00 2001 From: Bella Luz Quintero Date: Thu, 19 Dec 2024 17:34:11 -0700 Subject: [PATCH] add notes on next steps --- .../trustedintermediary/rse2e/AzureBlobOrganizer.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rs-e2e/src/main/java/gov/hhs/cdc/trustedintermediary/rse2e/AzureBlobOrganizer.java b/rs-e2e/src/main/java/gov/hhs/cdc/trustedintermediary/rse2e/AzureBlobOrganizer.java index 4f61997e0..3a7345216 100644 --- a/rs-e2e/src/main/java/gov/hhs/cdc/trustedintermediary/rse2e/AzureBlobOrganizer.java +++ b/rs-e2e/src/main/java/gov/hhs/cdc/trustedintermediary/rse2e/AzureBlobOrganizer.java @@ -46,13 +46,20 @@ public void organizeAndCleanupBlobsByDate(int retentionDays, ZoneId timeZone) { continue; } + // TODO - separate the content by golden or automated so it can be distinguished + // when its pulled down + // modify destinationName to be test folder specific + // possibly read blob and modify parseAndMapMessageByControlId or use its parts to + // get a different MSH header like getIdentifier + // possibly use a different receiver and filter on that + String destinationName = AzureBlobHelper.createDateBasedPath(sourceCreationDate, sourceName); + BlobClient destinationBlob = blobContainerClient.getBlobClient(destinationName); destinationBlob .beginCopy(sourceBlob.getBlobUrl(), null) .waitForCompletion(Duration.ofSeconds(30)); - CopyStatusType copyStatus = destinationBlob.getProperties().getCopyStatus(); if (copyStatus == CopyStatusType.SUCCESS) { sourceBlob.delete();