diff --git a/proxies/live/apiproxy/targets/target.xml b/proxies/live/apiproxy/targets/target.xml index 5463491..657c497 100644 --- a/proxies/live/apiproxy/targets/target.xml +++ b/proxies/live/apiproxy/targets/target.xml @@ -1,43 +1,10 @@ - - - - OauthV2.VerifyAccessTokenAppLevel3OrCis2Aal3 - - - FlowCallout.ApplyRateLimiting - - - - - - - ExtractVariables.OAuthErrorFaultString - - - AssignMessage.OAuthPolicyErrorResponse - - oauthV2.OauthV2.VerifyAccessToken.failed - - - - http://mocktarget.apigee.net - - true - User-Agent,Referer,Accept-Language - apikey - + + true + + + + diff --git a/tests/test_endpoints.py b/tests/test_endpoints.py index be0d6a8..9cdea41 100644 --- a/tests/test_endpoints.py +++ b/tests/test_endpoints.py @@ -66,27 +66,3 @@ def test_wait_for_status(nhsd_apim_proxy_url, status_endpoint_auth_headers): pytest.fail("version not found") assert deployed_commitId == getenv('SOURCE_COMMIT_ID') - - -@pytest.mark.nhsd_apim_authorization({"access": "application", "level": "level0"}) -def test_app_level0(nhsd_apim_proxy_url, nhsd_apim_auth_headers): - resp = requests.get(f"{nhsd_apim_proxy_url}", headers=nhsd_apim_auth_headers) - assert resp.status_code == 401 # unauthorized - - -@pytest.mark.nhsd_apim_authorization({"access": "application", "level": "level3"}) -def test_app_level3(nhsd_apim_proxy_url, nhsd_apim_auth_headers): - resp = requests.get(f"{nhsd_apim_proxy_url}", headers=nhsd_apim_auth_headers) - assert resp.status_code == 200 - - -@pytest.mark.nhsd_apim_authorization( - { - "access": "healthcare_worker", - "level": "aal3", - "login_form": {"username": "656005750104"}, - } -) -def test_cis2_aal3(nhsd_apim_proxy_url, nhsd_apim_auth_headers): - resp = requests.get(f"{nhsd_apim_proxy_url}", headers=nhsd_apim_auth_headers) - assert resp.status_code == 200