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

bpf_metadata: add unit-test for proxylib l7 proto #1131

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mhofstetter
Copy link
Member

This commit adds an unit test that verifies that the proxylib l7 protocol has been correctly set to the request application protocols of the network socket.

This commit adds an unit test that verifies that the proxylib
l7 protocol has been correctly set to the request application
protocols of the network socket.

Signed-off-by: Marco Hofstetter <[email protected]>
@mhofstetter mhofstetter requested a review from a team as a code owner January 20, 2025 14:20
Copy link
Member

@jrajahalme jrajahalme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit


socket_metadata->configureProxyLibApplicationProtocol(socket_);

EXPECT_CALL(socket_, setRequestedApplicationProtocols(_)).Times(0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if absolutely needed, but it would be cleaner if EXPECT_CALL would be before the call above, like in the other test!

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.

2 participants