Skip to content

Commit 443de8a

Browse files
AMB-000 revery NHS Login ID token claims and update test markers
1 parent a8ccb44 commit 443de8a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tests/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ async def get_token_nhs_login_token_exchange(test_app_and_product):
192192
"id_status": "verified",
193193
"token_use": "id",
194194
"auth_time": 1616600683,
195-
"iss": "https://identity.ptl.api.platform.nhs.uk/auth/realms/NHS-Login-mock-internal-dev",
195+
"iss": "https://internal-dev.api.service.nhs.uk",
196196
"vot": "P9.Cp.Cd",
197197
"exp": int(time()) + 600,
198198
"iat": int(time()) - 10,
@@ -204,8 +204,8 @@ async def get_token_nhs_login_token_exchange(test_app_and_product):
204204
id_token_headers = {
205205
"sub": "49f470a1-cc52-49b7-beba-0f9cec937c46",
206206
"aud": "APIM-1",
207-
"kid": "B86zGrfcoloO13rnjKYDyAJcqj2iZAMrS49jyleL0Fo",
208-
"iss": "https://identity.ptl.api.platform.nhs.uk/auth/realms/NHS-Login-mock-internal-dev",
207+
"kid": "nhs-login",
208+
"iss": "https://internal-dev.api.service.nhs.uk",
209209
"typ": "JWT",
210210
"exp": 1616604574,
211211
"iat": 1616600974,

tests/test_endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ async def test_user_role_unhappy_path(self, test_app_and_product,
100100
assert response.status_code == status_code
101101
assert response.json()["issue"][0]["diagnostics"] == error_description
102102

103-
@pytest.mark.mock_auth
103+
@pytest.mark.simulated_auth
104104
@pytest.mark.asyncio
105105
@pytest.mark.parametrize("additional_headers,error_description", [
106106
(

tests/test_splunk_logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ async def test_splunk_auth_with_cis2_token_exchange(self, get_token_cis2_token_e
116116
auth_user = auth["user"]
117117
assert auth_user["user_id"] == "lala"
118118

119-
@pytest.mark.mock_auth
119+
@pytest.mark.simulated_auth
120120
@pytest.mark.splunk
121121
@pytest.mark.asyncio
122122
async def test_splunk_auth_with_nhs_login_token_exchange(self, get_token_nhs_login_token_exchange, debug):

0 commit comments

Comments
 (0)