Skip to content

test: correct x-envoy-retry-grpc-on header used in test#4663

Merged
alyssawilk merged 1 commit intoenvoyproxy:masterfrom
snowp:grpc-header-type
Oct 10, 2018
Merged

test: correct x-envoy-retry-grpc-on header used in test#4663
alyssawilk merged 1 commit intoenvoyproxy:masterfrom
snowp:grpc-header-type

Conversation

@snowp
Copy link
Copy Markdown
Contributor

@snowp snowp commented Oct 10, 2018

Uses the correct header key for grpc retry policy. Not sure what the purpose of this test is given the test seems to pass even without the header (retry decision is mocked out, it doesn't depend on the header), but at least now it's setting the right header.

Risk Level: Low

Signed-off-by: Snow Pettersen <snowp@squareup.com>
@snowp
Copy link
Copy Markdown
Contributor Author

snowp commented Oct 10, 2018

Also happy to fix the test if anyone knows what it's supposed to be testing

Copy link
Copy Markdown
Contributor

@alyssawilk alyssawilk left a comment

Choose a reason for hiding this comment

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

AFIK it's basically testing that the HCM state machine is happy. the actual retry. The actual headers are checked in retry_state_impl_test.cc

@alyssawilk alyssawilk merged commit 9703d4e into envoyproxy:master Oct 10, 2018
@mattklein123
Copy link
Copy Markdown
Member

AFIK it's basically testing that the HCM state machine is happy. the actual retry. The actual headers are checked in retry_state_impl_test.cc

I just looked at this and I agree this test probably doesn't add any value for the actual header since it's using a mock retry state. It's probably worth deleting any duplication of this type of test in this file, since it's possible people kept copy/pasting assuming it was testing something else. :(

aa-stripe pushed a commit to aa-stripe/envoy that referenced this pull request Oct 11, 2018
)

Uses the correct header key for grpc retry policy.  The test does not use the headers, but it's still good to have the right ones in there.

Risk Level: Low

Signed-off-by: Snow Pettersen <snowp@squareup.com>
Signed-off-by: Aaltan Ahmad <aa@stripe.com>
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.

3 participants