AMP-345 Enable WireMock HTTPS and add SSL callback test#220
Merged
vineetkapoor-hmcts merged 1 commit intomainfrom Apr 14, 2026
Merged
AMP-345 Enable WireMock HTTPS and add SSL callback test#220vineetkapoor-hmcts merged 1 commit intomainfrom
vineetkapoor-hmcts merged 1 commit intomainfrom
Conversation
- Expose port 8443 and pass --https-port=8443 to WireMock in docker-compose - Add mock_https_callback_client_should_respond_ok test using trustLocalhostRestClient - trustLocalhostRestClient uses SimpleClientHttpRequestFactory with a trust-all SSLContext and a localhost-only HostnameVerifier, making test-only intent explicit and safe Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
vineetkapoor-hmcts
approved these changes
Apr 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
JIRA
AMP-345
What changed
--https-port=8443to WireMock's docker-compose command and exposed port8443:8443mock_https_callback_client_should_respond_oktest hittinghttps://localhost:8443trustLocalhostRestClient()helper that installs a trust-allSSLContextviaSimpleClientHttpRequestFactorywith aHostnameVerifierrestricted tolocalhostonlyWhy it's needed
The callback endpoint must support HTTPS. WireMock needed SSL enabling in the test environment and the test client needed configuring to accept WireMock's self-signed certificate — but only for
localhost, making it impossible to accidentally use against real remote endpoints.🤖 Generated with Claude Code