Skip to content

Commit 8a59815

Browse files
committed
Replicate file path change
1 parent 4d37aee commit 8a59815

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

lambdas/filenameprocessor/src/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# Currently only COVID extended attributes files are supported, might be extended in future for other vaccine types
2828
EXTENDED_ATTRIBUTES_VACC_TYPE = "COVID"
2929

30-
DPS_DESTINATION_PREFIX = "dps_destination"
30+
DPS_DESTINATION_PREFIX = "generic/EXTENDED_ATTRIBUTES_DAILY_1"
3131
EXTENDED_ATTRIBUTES_ARCHIVE_PREFIX = "extended-attributes-archive"
3232
VALID_EA_VERSIONS = ["V1_5"]
3333
ERROR_TYPE_TO_STATUS_CODE_MAP = {

lambdas/filenameprocessor/tests/test_lambda_handler.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ def test_lambda_handler_extended_attributes_success(self, mock_get_redis_client)
292292
archived_obj = s3_client.get_object(Bucket=BucketNames.SOURCE, Key=archived_key)
293293
self.assertIsNotNone(archived_obj)
294294

295-
# Also verify file copied to DPS destination bucket under dps_destination/<file_key>
296-
dps_key = f"dps_destination/{test_cases[0].file_key}"
295+
# Also verify file copied to DPS destination bucket under generic/EXTENDED_ATTRIBUTES_DAILY_1/<file_key>
296+
dps_key = f"generic/EXTENDED_ATTRIBUTES_DAILY_1/{test_cases[0].file_key}"
297297
copied_obj = s3_client.get_object(Bucket=BucketNames.DPS_DESTINATION, Key=dps_key)
298298
self.assertIsNotNone(copied_obj)
299299

@@ -467,7 +467,7 @@ def test_lambda_handler_extended_attributes_extension_checks(self, mock_get_redi
467467
# Ensure processed path hit by checking archive move in source bucket
468468
s3_client.get_object(Bucket=BucketNames.SOURCE, Key=f"extended-attributes-archive/{csv_key}")
469469
# And verify copy to DPS destination
470-
s3_client.get_object(Bucket=BucketNames.DPS_DESTINATION, Key=f"dps_destination/{csv_key}")
470+
s3_client.get_object(Bucket=BucketNames.DPS_DESTINATION, Key=f"generic/EXTENDED_ATTRIBUTES_DAILY_1/{csv_key}")
471471

472472
# .DAT accepted
473473
dat_key = MockFileDetails.extended_attributes_file.file_key[:-3] + "dat"
@@ -478,7 +478,7 @@ def test_lambda_handler_extended_attributes_extension_checks(self, mock_get_redi
478478
):
479479
lambda_handler(self.make_event([self.make_record(dat_key)]), None)
480480
s3_client.get_object(Bucket=BucketNames.SOURCE, Key=f"extended-attributes-archive/{dat_key}")
481-
s3_client.get_object(Bucket=BucketNames.DPS_DESTINATION, Key=f"dps_destination/{dat_key}")
481+
s3_client.get_object(Bucket=BucketNames.DPS_DESTINATION, Key=f"generic/EXTENDED_ATTRIBUTES_DAILY_1/{dat_key}")
482482

483483
# Invalid extension fails
484484
bad_ext_key = csv_key[:-3] + "txt"

0 commit comments

Comments
 (0)