-
Notifications
You must be signed in to change notification settings - Fork 4.6k
xds: Replace IsTerminal() check with IsRouterFilter() check #6281
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1115,7 +1115,7 @@ func (s) TestUnmarshalListener_ServerSide(t *testing.T) { | |
| wantErr: "is a terminal filter but it is not last in the filter chain", | ||
| }, | ||
| { | ||
| name: "last not terminal filter", | ||
| name: "last not router filter", | ||
| resource: testutils.MarshalAny(&v3listenerpb.Listener{ | ||
| Name: v3LDSTarget, | ||
| Address: localSocketAddress, | ||
|
|
@@ -1139,7 +1139,7 @@ func (s) TestUnmarshalListener_ServerSide(t *testing.T) { | |
| }, | ||
| }), | ||
| wantName: v3LDSTarget, | ||
| wantErr: "is not a terminal filter", | ||
| wantErr: "is not a router filter", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just to be exhaustive, can we have a test where the last filter is a terminal filter, but it is just not the router filter.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. got it @easwars, will update once it's done |
||
| }, | ||
| { | ||
| name: "unsupported oneof in typed config of http filter", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.