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();