You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to disable the HTTP port and WireMock should only listen on HTTPS. This is what I have tried so far:
Set port = -1
@EnableWireMock(
@ConfigureWireMock(
httpsPort = 0,
port = -1
)
)
Nevertheless, WireMock starts on port 8080. You can also see this in the logs and also port 8080 is used.
c.w.s.i.WireMockServerCreator wiremock : Configuring WireMockServer with name 'wiremock' on HTTP port: 8080 and HTTPS port: 0
c.w.s.i.WireMockServerCreator wiremock : Started WireMockServer with name 'wiremock':https://localhost:63868
c.w.s.i.WireMockServerCreator wiremock : Adding property 'wiremock.server.httpsBaseUrl=https://localhost:63868' with HTTPS base URL to Spring application context
c.w.s.i.WireMockServerCreator wiremock : Adding property 'wiremock.server.httpsPort=63868' with HTTPS port to Spring application context
o.w.s.i.WireMockSpringJunitExtension : Configuring WireMock for default instance, 'wiremock' on '8080'.
WireMockConfiguration.httpDisabled
The WireMock documentation says to set WireMockConfiguration.httpDisabled(true), but this will cause another error: #183
Since #183 has been closed, I suspect that I am overlooking something. Does anyone know how to disable HTTP with wiremock-spring-boot?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I want to disable the HTTP port and WireMock should only listen on HTTPS. This is what I have tried so far:
Set
port = -1Nevertheless, WireMock starts on port 8080. You can also see this in the logs and also port 8080 is used.
WireMockConfiguration.httpDisabled
The WireMock documentation says to set
WireMockConfiguration.httpDisabled(true), but this will cause another error: #183Since #183 has been closed, I suspect that I am overlooking something. Does anyone know how to disable HTTP with wiremock-spring-boot?
Beta Was this translation helpful? Give feedback.
All reactions