wiremock / python-wiremock

A Python library for API mocking and testing with Testcontainers module and WireMock

Home Page:https://wiremock.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Https howto.

tbarabanov opened this issue · comments

Could u pleas give an example of how to configure https using the client.

or are you asking for custom cert support?

Yes, thing like this
@rule
public WireMockRule wireMockRule = new WireMockRule(wireMockConfig()
.httpsPort(8443)
.needClientAuth(true)
.trustStorePath("/path/to/truststore.jks")
.trustStorePassword("mostsecret"));

🚀have fun! v1.2.0 should hit pypi soon