File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff 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" )
6766def 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" )
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments