Skip to content

Commit 4e7d2a2

Browse files
committed
(ELI-623) fixing escaping error
1 parent 8a7215b commit 4e7d2a2

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

tests/integration/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
AWS_CURRENT_SECRET = "test_value" # noqa: S105
5151
AWS_PREVIOUS_SECRET = "test_value_old" # noqa: S105
5252

53-
UNIQUE_CONSUMER_HEADER = "nhsd-application-id"
53+
UNIQUE_CONSUMER_HEADER = "nhse-product-id"
5454

5555

5656
@pytest.fixture(scope="session")

tests/integration/lambda/test_app_running_as_lambda.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ def test_given_nhs_number_in_path_matches_with_nhs_number_in_headers_and_check_i
207207
"x_request_id": "x_request_id",
208208
"x_correlation_id": "x_correlation_id",
209209
"nhsd_end_user_organisation_ods": "nhsd_end_user_organisation_ods",
210-
"nhsd-application-id": consumer_id,
210+
"nhsd-application-id": "nhsd-application-id",
211+
"nhse-product-id": consumer_id,
211212
},
212213
params={"includeActions": "Y"},
213214
timeout=10,
@@ -229,7 +230,7 @@ def test_given_nhs_number_in_path_matches_with_nhs_number_in_headers_and_check_i
229230
"xRequestId": "x_request_id",
230231
"xCorrelationId": "x_correlation_id",
231232
"nhsdEndUserOrganisationOds": "nhsd_end_user_organisation_ods",
232-
"nhsdApplicationId": consumer_id,
233+
"nhsdApplicationId": "nhsd-application-id",
233234
}
234235
expected_query_params = {"category": None, "conditions": None, "includeActions": "Y"}
235236

@@ -455,7 +456,8 @@ def test_given_person_has_unique_status_for_different_conditions_with_audit( #
455456
"x_request_id": "x_request_id",
456457
"x_correlation_id": "x_correlation_id",
457458
"nhsd_end_user_organisation_ods": "nhsd_end_user_organisation_ods",
458-
"nhsd_application_id": consumer_id,
459+
"nhsd-application-id": "nhsd-application-id",
460+
"nhse-product-id": consumer_id,
459461
},
460462
params={"includeActions": "Y", "category": "VACCINATIONS", "conditions": "COVID,FLU,RSV"},
461463
timeout=10,
@@ -475,7 +477,7 @@ def test_given_person_has_unique_status_for_different_conditions_with_audit( #
475477
"xRequestId": "x_request_id",
476478
"xCorrelationId": "x_correlation_id",
477479
"nhsdEndUserOrganisationOds": "nhsd_end_user_organisation_ods",
478-
"nhsdApplicationId": consumer_id,
480+
"nhsdApplicationId": "nhsd-application-id",
479481
}
480482
expected_query_params = {"category": "VACCINATIONS", "conditions": "COVID,FLU,RSV", "includeActions": "Y"}
481483

@@ -597,7 +599,8 @@ def test_no_active_iteration_returns_empty_processed_suggestions(
597599
"x_request_id": "x_request_id",
598600
"x_correlation_id": "x_correlation_id",
599601
"nhsd_end_user_organisation_ods": "nhsd_end_user_organisation_ods",
600-
"nhsd_application_id": consumer_id,
602+
"nhsd-application-id": "nhsd-application-id",
603+
"nhse-product-id": consumer_id,
601604
},
602605
params={"includeActions": "Y", "category": "VACCINATIONS", "conditions": "COVID,FLU,RSV"},
603606
timeout=10,

0 commit comments

Comments
 (0)