pytest-nhsd-apim 3.3.13__tar.gz → 3.3.14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pytest-nhsd-apim might be problematic. Click here for more details.
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/PKG-INFO +1 -1
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/pyproject.toml +1 -1
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/secrets.py +14 -3
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim.egg-info/PKG-INFO +1 -1
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/README.md +0 -0
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/setup.cfg +0 -0
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/setup.py +0 -0
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/__init__.py +0 -0
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/apigee_apis.py +0 -0
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/apigee_edge.py +0 -0
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/auth_journey.py +0 -0
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/config.py +0 -0
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/identity_service.py +0 -0
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/log.py +0 -0
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/nhsd_apim_authorization.py +0 -0
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/pytest_nhsd_apim.py +0 -0
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/token_cache.py +0 -0
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim.egg-info/SOURCES.txt +0 -0
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim.egg-info/dependency_links.txt +0 -0
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim.egg-info/entry_points.txt +0 -0
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim.egg-info/requires.txt +0 -0
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim.egg-info/top_level.txt +0 -0
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/tests/test_apigee_apis.py +0 -0
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/tests/test_examples.py +0 -0
- {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/tests/test_nhsd_apim.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "pytest-nhsd-apim"
|
|
3
|
-
version = "3.3.
|
|
3
|
+
version = "3.3.14"
|
|
4
4
|
description = "Pytest plugin accessing NHSDigital's APIM proxies"
|
|
5
5
|
authors = ["Adrian Ciobanita <adrian.ciobanita1@nhs.net>", "Alex Carrie <alexander.carrie1@nhs.net>", "Lucas Fantini <lucas.fantini@nhs.net>"]
|
|
6
6
|
maintainers = ["Alex Carrie <alexander.carrie1@nhs.net>", "Alex Hawdon <alex.hawdon1@nhs.net"]
|
|
@@ -22,12 +22,23 @@ _SESSION = requests.session()
|
|
|
22
22
|
|
|
23
23
|
@pytest.fixture()
|
|
24
24
|
@log_method
|
|
25
|
-
def _mock_jwks_api_key(
|
|
25
|
+
def _mock_jwks_api_key(
|
|
26
|
+
_apigee_app_base_url,
|
|
27
|
+
_apigee_edge_session,
|
|
28
|
+
test_app,
|
|
29
|
+
apigee_environment,
|
|
30
|
+
_test_app_id,
|
|
31
|
+
):
|
|
26
32
|
# Apps in prod Apigee shouldn't rely on mock-jwks for their api key
|
|
27
|
-
if apigee_environment in ["int", "prod"]:
|
|
33
|
+
if apigee_environment in ["dev", "sandbox", "int", "prod"]:
|
|
34
|
+
return ""
|
|
28
35
|
|
|
29
36
|
creds = get_app_credentials_for_product(
|
|
30
|
-
_apigee_app_base_url,
|
|
37
|
+
_apigee_app_base_url,
|
|
38
|
+
_apigee_edge_session,
|
|
39
|
+
test_app(),
|
|
40
|
+
f"mock-jwks-{apigee_environment}",
|
|
41
|
+
_test_app_id,
|
|
31
42
|
)
|
|
32
43
|
return creds["consumerKey"]
|
|
33
44
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/identity_service.py
RENAMED
|
File without changes
|
|
File without changes
|
{pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/nhsd_apim_authorization.py
RENAMED
|
File without changes
|
{pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/pytest_nhsd_apim.py
RENAMED
|
File without changes
|
|
File without changes
|
{pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim.egg-info/requires.txt
RENAMED
|
File without changes
|
{pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|