From 9be6c6146b2891527f947de9b831c4e762d35cb3 Mon Sep 17 00:00:00 2001 From: Adam Waller <176666249+adam-wallernhs1@users.noreply.github.com> Date: Thu, 26 Mar 2026 14:35:18 +0000 Subject: [PATCH 1/2] test_upload_current_configs amended to use the integration test version of the mapping file to avoid issues with consumers in preprod --- tests/test_config.py | 3 +++ tests/test_upload_consumer_configs.py | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/test_config.py b/tests/test_config.py index c74f9d51..ccdf00ff 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -32,6 +32,9 @@ # Consumer Mapping file - this is a single one for all environments but this may change CONSUMER_MAPPING_FILE = "data/configs/consumerMappings/consumer_mapping_config.json" +PREPROD_CONSUMER_MAPPING_FILE = ( + "data/configs/consumerMappings/preprod/consumer_mapping_config.json" +) # Location of Integration Test Configs INT_TEST_CONFIG_PATHS: list[str] = [ diff --git a/tests/test_upload_consumer_configs.py b/tests/test_upload_consumer_configs.py index aa55f413..4d26ed92 100644 --- a/tests/test_upload_consumer_configs.py +++ b/tests/test_upload_consumer_configs.py @@ -1,7 +1,11 @@ from tests import test_config -from utils.s3_config_manager import upload_configs_to_s3 +from utils.s3_config_manager import ( + upload_configs_to_s3, + upload_consumer_mapping_file_to_s3, +) def test_upload_current_configs(): configs = test_config.INT_TEST_CONFIG_PATHS upload_configs_to_s3(configs) + upload_consumer_mapping_file_to_s3(test_config.PREPROD_CONSUMER_MAPPING_FILE) From 3bf0e568ddd7e2d6b1b995e6f571cf87bb573f13 Mon Sep 17 00:00:00 2001 From: Adam Waller <176666249+adam-wallernhs1@users.noreply.github.com> Date: Thu, 26 Mar 2026 14:38:09 +0000 Subject: [PATCH 2/2] forgot the mapping file --- .../preprod/consumer_mapping_config.json | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 data/configs/consumerMappings/preprod/consumer_mapping_config.json diff --git a/data/configs/consumerMappings/preprod/consumer_mapping_config.json b/data/configs/consumerMappings/preprod/consumer_mapping_config.json new file mode 100644 index 00000000..a51fa56d --- /dev/null +++ b/data/configs/consumerMappings/preprod/consumer_mapping_config.json @@ -0,0 +1,46 @@ +{ + "P.WTJ-FJT": [ + { + "CampaignConfigID": "VITA_Campaign_Config_ID_RSV", + "Description": "RSV Ongoing for My Vaccines" + }, + { + "CampaignConfigID": "VITA_Campaign_Config_ID_COVID", + "Description": "RSV Ongoing for My Vaccines" + }, + { + "CampaignConfigID": "VITA_Campaign_Config_ID_FLU", + "Description": "RSV Ongoing for My Vaccines" + }, + { + "CampaignConfigID": "VITA_NBS_Campaign_Config_ID_COVID", + "Description": "Shared Config for My Vaccines and NBS" + } + ], + "P.XWA-VFF": [ + { + "CampaignConfigID": "7fcb742b-45fa-4w0d-8f2f-9c2efb1f46d1", + "Description": "RSV Ongoing for NBS" + }, + { + "CampaignConfigID": "NBS_Campaign_Config_ID_RSV", + "Description": "RSV Ongoing for NBS" + }, + { + "CampaignConfigID": "NBS_Campaign_Config_ID_COVID", + "Description": "COVID Ongoing for NBS" + }, + { + "CampaignConfigID": "NBS_Campaign_Config_ID_COVID_ACTIVE", + "Description": "COVID Ongoing for NBS" + }, + { + "CampaignConfigID": "NBS_Campaign_Config_ID_FLU", + "Description": "FLU Ongoing for NBS" + }, + { + "CampaignConfigID": "VITA_NBS_Campaign_Config_ID_COVID", + "Description": "Shared Config for My Vaccines and NBS" + } + ] +}