forked from akhikhl/gretty
-
Notifications
You must be signed in to change notification settings - Fork 36
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
getFreeRandomPort() should work for httpsPort #85
Comments
I'm not immediately aware of why this wouldn't be possible. So a PR would be gratefully accepted if you get that working. |
jzheaux
added a commit
to jzheaux/gretty
that referenced
this issue
Nov 9, 2018
Gretty already supports setting httpPort to getRandomFreePort and this commit adds the same support to httpsPort as well as introducing some testing for both. Fixes: gretty-gradle-plugingh-85
Sure, @javabrett. Any possibility of backporting to the 2.x release train? |
Yes this was committed to the 2.x branch then merged to master. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Doing
gretty { httpPort = getRandomFreePort() }
is super-convenient for integration tests.
Is there any reason that it is not supported for HTTPS?
For example, in
TomcatServerConfigurer
, it checks thehttpPort
property, but not the httpsPort property.The text was updated successfully, but these errors were encountered: