-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTPS pact broker not supported #37
Comments
Awaiting a response from maintainer, as I'm not sure how to proceed; whether to go for a more high level client like e.g. reqwest instead of hyper. |
If reqwest works, we can go with that. There were no other options when this project was started than hyper. It is also still using the older blocking version, so an upgrade of hyper would require a rewrite. |
Ok, I can try first to upgrade to async hyper, and see what needs to be changed first. Not yet familiar with the code base and what will be implicated, but I'll surely find out. |
Have a look at https://github.com/uglyog/pact-stub-server, I went through the upgrade there. |
Thanks, but just out of curiosity, what's the relation between that project and this project's pact_mock_server(_cli)? |
The stub server uses the pact-rust matching libraries, but is just a convenience for people who want to have a server running off a set of pact files. The matching is a lot looser than the pact_mock_server. |
Now that you have done all the hard work, we can come back to this issue. We can now use hyper-tls and native-tls crates to support HTTPS. |
Up to you to decide how you want it to work. |
Running the verifier with:
./target/debug/pact_verifier_cli --provider-name myProvider --broker-url https://anything.com --hostname http://localhost:9999 --state-change-url http://localhost:9999/_pactSetup
Yields:
I guess this is related to hyperium/hyper#1009, and https support needs to be provided as a separate library.
I would be more than happy to help the project, so maybe you'll see a PR from me when I get the time.
The text was updated successfully, but these errors were encountered: