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

Feature/tls ports #591

Merged
merged 4 commits into from
Jan 3, 2024
Merged

Conversation

lukefallows
Copy link
Contributor

Description

Add route by port to tls binding

Fixes #564

Copy link
Contributor

@jfallows jfallows left a 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.

@@ -142,21 +143,64 @@ public TlsRouteConfig resolve(
ProxyBeginExFW beginEx)
{
Array32FW<ProxyInfoFW> infos = beginEx != null ? beginEx.infos() : null;

Copy link
Contributor

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));
}
Copy link
Contributor

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));
}
Copy link
Contributor

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.

Copy link
Contributor

@jfallows jfallows left a 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.

@jfallows jfallows merged commit a83d746 into aklivity:develop Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add the option to route by port in the tls binding
2 participants