-
Notifications
You must be signed in to change notification settings - Fork 56
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
Feature/tls ports #591
Feature/tls ports #591
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add support for TlsProxyFactory
so that the same routing syntax can be used for binding tls
type with server
, proxy
and client
kinds.
...ls/src/main/java/io/aklivity/zilla/runtime/binding/tls/config/TlsConditionConfigBuilder.java
Show resolved
Hide resolved
@@ -142,21 +143,64 @@ public TlsRouteConfig resolve( | |||
ProxyBeginExFW beginEx) | |||
{ | |||
Array32FW<ProxyInfoFW> infos = beginEx != null ? beginEx.infos() : null; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this unintentional extra line.
assertThat(condition.ports.length, equalTo(2)); | ||
assertThat(condition.ports[0], equalTo(8080)); | ||
assertThat(condition.ports[1], equalTo(8081)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add shouldWriteConditionWithPortRange()
test method, see shouldWriteConfition()
for an example.
assertThat(condition.ports, not(nullValue())); | ||
assertThat(condition.ports.length, equalTo(1)); | ||
assertThat(condition.ports[0], equalTo(8080)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add shouldWriteConditionWithPortRangeSingleton()
test method, see shouldWriteConfition()
for an example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Just need an update to ProxyIT to verify route by port for proxy
kind.
Description
Add route by port to tls binding
Fixes #564