Skip to content
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

Enhance dynamic ports bundle and FreePortFinder #548

Merged
merged 6 commits into from
Oct 17, 2024

Conversation

sleberknight
Copy link
Member

  • Configure a FreePortFinder when creating the PortAssigner inside DynamicPortsBundle.
  • Remove LocalPortChecker from DynamicPortsConfiguration.
  • Add FreePortFinder to DynamicPortsConfiguration.
  • Remove LocalPortChecker from PortAssigner.
  • Make FreePortFinder support Jackson's polymorphic deserialization by adding JsonTypeInfo to FreePortFinder, adding JsonTypeName annotation to the three FreePortFinder impls, and adding an io.dropwizard.jackson.Discoverable in META-INF/services, plus org.kiwiproject.dropwizard.util.startup.FreePortFinder also in META-INF/services.
  • Lots of test refactoring and new tests.
  • Misc: fix Javadoc in StartupLockConfiguration

Closes #545
Closes #546
Closes #547

* Configure a FreePortFinder when creating the PortAssigner
  inside DynamicPortsBundle.
* Remove LocalPortChecker from DynamicPortsConfiguration.
* Add FreePortFinder to DynamicPortsConfiguration.
* Remove LocalPortChecker from PortAssigner.
* Make FreePortFinder support Jackson's polymorphic deserialization
  by adding JsonTypeInfo to FreePortFinder, adding JsonTypeName
  annotation to the three FreePortFinder impls, and adding an
  io.dropwizard.jackson.Discoverable in META-INF/services, plus
  org.kiwiproject.dropwizard.util.startup.FreePortFinder also
  in META-INF/services.
* Lots of test refactoring and new tests.
* Misc: fix Javadoc in StartupLockConfiguration

Closes #545
Closes #546
Closes #547
@sleberknight sleberknight marked this pull request as draft October 17, 2024 03:04
It can be null when the PortSecurity is NON_SECURE
AdminConfigurator, PortAssigner, and DynamicPortsConfiguration
all transitively depend on TlsConfiguration (via kiwi's
TlsContextConfiguration), so it makes some sense to change it
from a test to a required dependency.
Copy link

@sleberknight sleberknight marked this pull request as ready for review October 17, 2024 15:27
@sleberknight sleberknight merged commit 284e7d8 into main Oct 17, 2024
5 checks passed
@sleberknight sleberknight deleted the dynamic-ports-enhancements branch October 17, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants