Skip to content

/GPCAPIM 395 Local PDS INT Integration#191

Draft
DWolfsNHS wants to merge 25 commits intomainfrom
feature/GPCAPIM-395_Local_PDS_INT_Integration
Draft

/GPCAPIM 395 Local PDS INT Integration#191
DWolfsNHS wants to merge 25 commits intomainfrom
feature/GPCAPIM-395_Local_PDS_INT_Integration

Conversation

@DWolfsNHS
Copy link
Copy Markdown
Collaborator

@DWolfsNHS DWolfsNHS commented Apr 24, 2026

Description

Context

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming
  • Exceptions/Exclusions to coding standards (e.g. #noqa or #NOSONAR) are included within this Pull Request.

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@DWolfsNHS DWolfsNHS force-pushed the feature/GPCAPIM-395_Local_PDS_INT_Integration branch 2 times, most recently from 34f784a to c9b0c85 Compare April 27, 2026 08:51
@DWolfsNHS DWolfsNHS force-pushed the feature/GPCAPIM-395_Local_PDS_INT_Integration branch from c9b0c85 to 63b4f84 Compare April 27, 2026 08:55
…t variables

- Remove unused MTLS session manager tests
- Simplify session manager test by removing mock for secret retrieval
- Update environment variable assertions for consistency
- Replace APIM environment variables with PDS equivalents
- Remove default values for sensitive keys in Dockerfile
- Add new environment variables for APIM token URL, expiry threshold, and client timeout
- Update PDS API secret handling to decode from base64
- Modify PDS client to use environment variable for PDS URL
- Ensure environment variables are sourced in the app's environment script
- Consolidate environment variable handling for 'int' and 'PDS_int'
- Ensure correct API token and secret retrieval for both environments
- Add function to retrieve APIM token URL based on environment
- Update env.sh to source APIM_auth.sh and use get_apim_token_url
- Remove auth_token parameter from patient search tests
- Update mock requests to use _make_get_request method
- Ensure consistent client instantiation across tests
- Change mocked PDS client method to use _make_get_request
- Remove auth token parameter from _get_pds_details call
- Ensure controller uses the provided custom PDS URL
- Normalize line endings for PDS API secret in environment values
- Update test values to use base64 encoding for PDS API secret
- Adjust environment variable names for consistency with PDS integration
- Set CLIENT_TIMEOUT to a fixed value of 30s
- Set APIM_TOKEN_EXPIRY_THRESHOLD to a fixed value of 30s
- Introduced a new environment variable for PDS URL in the test setup
- Marked the addition with a TODO comment for further clarification
- Added SDS_URL to the test environment variables
… logic

- Introduced APIMAppAuthStub to simulate authentication requests
- Updated _make_session_post to handle stubbed responses
- Modified test cases to use the new stub for authentication
- Enhanced session management in the stub for better testing
- Adjusted contract tests to verify stub behaviour
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant