Is it possible to start a WireMockServer with http and https without specifying a port?
See original GitHub issueThis only starts 1 the HTTPS url:
var server1 = WireMockServer.Start(port: null, ssl: true);
And this requires me to specify ports:
var server2 = WireMockServer.Start(new WireMockServerSettings
{
Urls = new[] { "http://localhost:9091", "https://localhost:9443" }
});
so something like this?
var server2 = WireMockServer.Start(new WireMockServerSettings
{
Urls = new[] { "http://localhost:null", "https://localhost:null" }
});
Issue Analytics
- State:
- Created a year ago
- Comments:8
Top Results From Across the Web
Using WireMock with HTTPs using self-signed or custom ...
WireMock can optionally accept requests over HTTPS. By default it will serve its own self-signed TLS certificate.
Read more >How configure WireMock to use https (and a random port)?
I used a WireMockRules class and had my test classes inherit from it import static com.github.tomakehurst.wiremock.core.
Read more >Run an API Mock Server as a Standalone Process
The WireMock server can be run in its own process, and configured via the Java API, ... This option will only work if...
Read more >Running as a Standalone Process - WireMock
The WireMock server can be run in its own process, and configured via the Java API, ... --https-port : If specified, enables HTTPS...
Read more >Introduction to WireMock
First, we instantiate a WireMock server: WireMockServer wireMockServer = new WireMockServer(String host, int port);. In case no arguments are ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@zidad This is not yet possible, I’ll look into this.
https://github.com/WireMock-Net/WireMock.Net/pull/818