Skip to content

Commit 2294e58

Browse files
committed
Update end-to-end tests
1 parent d9d93cf commit 2294e58

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

tests/e2e_batch/constants.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
CONFIG_BUCKET = "imms-internal-dev-supplier-config"
1818
PERMISSIONS_CONFIG_FILE_KEY = "permissions_config.json"
1919
RAVS_URI = "https://www.ravs.england.nhs.uk/"
20+
TPP_V5_SUPPLIER_IDENTIFIER_SYSTEM = "https://tpp-uk.com/Id/ve/vacc"
21+
EMIS_V5_SUPPLIER_IDENTIFIER_SYSTEM = "https://emishealth.com/identifiers/vacc"
2022
batch_fifo_queue_name = f"imms-{environment}-batch-file-created-queue.fifo"
2123
ack_metadata_queue_name = f"imms-{environment}-ack-metadata-queue.fifo"
2224
audit_table_name = f"immunisation-batch-{environment}-audit-table"

tests/e2e_batch/scenarios.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import pandas as pd
66
from clients import logger
77
from errors import DynamoDBMismatchError
8+
from tests.e2e_batch.constants import EMIS_V5_SUPPLIER_IDENTIFIER_SYSTEM, TPP_V5_SUPPLIER_IDENTIFIER_SYSTEM
89
from vax_suppliers import OdsVax, TestPair
910

1011
from constants import (
@@ -93,6 +94,14 @@ def check_final_success_action(self):
9394
def get_identifier_pk(self):
9495
if not self.identifier:
9596
raise Exception("Identifier not set. Generate the CSV file first.")
97+
98+
# Identifier PK will be different to Identifier in the resource due to data uplift as part of VED-893. This
99+
# only affects TPP and EMIS
100+
if self.ods == "YGA":
101+
return f"{TPP_V5_SUPPLIER_IDENTIFIER_SYSTEM}#{self.identifier}"
102+
if self.ods == "YGJ":
103+
return f"{EMIS_V5_SUPPLIER_IDENTIFIER_SYSTEM}#{self.identifier}"
104+
96105
return f"{RAVS_URI}#{self.identifier}"
97106

98107
def check_bus_file_content(self):

0 commit comments

Comments
 (0)