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.

Files changed (25) hide show
  1. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/PKG-INFO +1 -1
  2. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/pyproject.toml +1 -1
  3. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/secrets.py +14 -3
  4. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim.egg-info/PKG-INFO +1 -1
  5. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/README.md +0 -0
  6. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/setup.cfg +0 -0
  7. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/setup.py +0 -0
  8. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/__init__.py +0 -0
  9. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/apigee_apis.py +0 -0
  10. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/apigee_edge.py +0 -0
  11. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/auth_journey.py +0 -0
  12. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/config.py +0 -0
  13. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/identity_service.py +0 -0
  14. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/log.py +0 -0
  15. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/nhsd_apim_authorization.py +0 -0
  16. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/pytest_nhsd_apim.py +0 -0
  17. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim/token_cache.py +0 -0
  18. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim.egg-info/SOURCES.txt +0 -0
  19. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim.egg-info/dependency_links.txt +0 -0
  20. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim.egg-info/entry_points.txt +0 -0
  21. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim.egg-info/requires.txt +0 -0
  22. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/src/pytest_nhsd_apim.egg-info/top_level.txt +0 -0
  23. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/tests/test_apigee_apis.py +0 -0
  24. {pytest_nhsd_apim-3.3.13 → pytest_nhsd_apim-3.3.14}/tests/test_examples.py +0 -0
  25. {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
  Metadata-Version: 2.1
2
2
  Name: pytest-nhsd-apim
3
- Version: 3.3.13
3
+ Version: 3.3.14
4
4
  Summary: Pytest plugin accessing NHSDigital's APIM proxies
5
5
  Home-page: https://github.com/NHSDigital/pytest-nhsd-apim
6
6
  Author: Adrian Ciobanita
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pytest-nhsd-apim"
3
- version = "3.3.13"
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(_apigee_app_base_url, _apigee_edge_session, test_app, apigee_environment, _test_app_id):
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"]: return ""
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, _apigee_edge_session, test_app(), f"mock-jwks-{apigee_environment}", _test_app_id
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pytest-nhsd-apim
3
- Version: 3.3.13
3
+ Version: 3.3.14
4
4
  Summary: Pytest plugin accessing NHSDigital's APIM proxies
5
5
  Home-page: https://github.com/NHSDigital/pytest-nhsd-apim
6
6
  Author: Adrian Ciobanita