Skip to content

Commit d23009b

Browse files
[SA]-[changed access_code]-[BS]
1 parent 6227c2b commit d23009b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

tests/conftest.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,13 @@ def service_url(environment, service_base_path):
5858
base_url = "https://api.service.nhs.uk"
5959
else:
6060
http_base = "https://"
61-
# commented this out for testing base_url = f"{http_base}{environment}.api.service.nhs.uk"
62-
base_url = f"{http_base}.internal-qa.api.service.nhs.uk"
61+
base_url = f"{http_base}{environment}.api.service.nhs.uk"
6362
return f"{base_url}/{service_base_path}"
6463

6564

6665
@pytest.fixture(scope="session")
6766
def is_mocked_environment(environment, service_base_path):
68-
return environment == "internal-qa" and "ft" in service_base_path
67+
return environment == "internal-dev" and "ft" in service_base_path
6968
# changed the environment variable to internal-qa from internal-dev
7069

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

tests/integration/test_app_restricted.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,15 @@ async def test_authorised_application_not_supported_for_user_restricted(
8484
assert issue_details["code"] == "NO_ACCESS"
8585

8686
def test_authorised_application_supported_for_app_restricted(
87-
self, app_restricted_access_code, service_url
87+
self, access_code, service_url
8888
):
8989
client_request_headers = {
90-
_HEADER_AUTHORIZATION: "Bearer " + app_restricted_access_code,
90+
_HEADER_AUTHORIZATION: "Bearer " + access_code,
9191
RenamedHeader.CORRELATION_ID.original: _EXPECTED_CORRELATION_ID,
9292
_HEADER_REQUEST_ID: "DUMMY", # this must be less than 10 characters
9393
}
94+
95+
# changed to access_code from app_restricted_access_code
9496

9597
# Make the API call
9698
response = requests.get(

0 commit comments

Comments
 (0)