Closed dogruis closed 2 weeks ago
Do you have any suggestions for naming the properties?
I think it should follow the same naming convention as the wiremock-standalone project:
https://wiremock.org/docs/junit-jupiter/
port
and httpsPort
And if you dont want to have static ports. How do you want to enable it?
I guess just using httpsEnabled=true
is good enough
Generally I only need http or https. In some cases I want both but then I specify the static port numbers. It depends on the use case
Perhaps one way to solve this is to:
On top of that with version 3.1.0
@EnableWireMock{{@ConfigureWireMock(port = 8081)}, @ConfigureWireMock(useHttps = true, port = 8082)}
When I use this it is breaking my spring application context for some reason.
Probably because they both have the same name. But hard to be sure without your log. I submitted a PR that will give an error when same name is used. #63
PR available with example test case that uses HTTP and HTTPS #64
Also regarding the documentation on the website. I prefer that to be very minimal and refer users to the running examples here in the repository. I think running examples are trustworthy for users and easy to maintain for me.
Released in 3.2.0
Awesome
Proposal
With your 3.1.0 version I have to use
@EnableWireMock{{@ConfigureWireMock(port = 8081)}, @ConfigureWireMock(useHttps = true, port = 8082)}
To have http and https enabledI would prefer to use
@EnableWireMock(@ConfigureWireMock(port = 8081, httpsPort = 8082)
This would save me from having the need to spin up two wiremock instances.
Edit: I don't know if you have access to this documentation but it need to be updated to reflect your changes. https://wiremock.org/docs/solutions/spring-boot/
References
No response