Skip to content

router: add missing unit tests for x-envoy-attempt-count on upstream requests#10368

Merged
junr03 merged 3 commits intoenvoyproxy:masterfrom
junr03:attempt-count-test
Mar 16, 2020
Merged

router: add missing unit tests for x-envoy-attempt-count on upstream requests#10368
junr03 merged 3 commits intoenvoyproxy:masterfrom
junr03:attempt-count-test

Conversation

@junr03
Copy link
Member

@junr03 junr03 commented Mar 12, 2020

Description: adding missing unit test coverage.
Risk Level: low
Testing: added new tests

Fixes #10366

…requests

Signed-off-by: Jose Nino <jnino@lyft.com>
Copy link
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.

Awesome test additions! A few thoughts below, mostly optional


// Validate that x-envoy-attempt-count is added to request headers when option is true.
TEST_F(RouterTest, EnvoyAttemptCountInRequest) {
setIncludeAttemptCount(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

optional: do you want to name this to Request even though it doesn't reflect the config option until v4?

Copy link
Member Author

Choose a reason for hiding this comment

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

I wanted to keep the name change in #10325. So I will update this or that other PR depending on merge order.

@alyssawilk alyssawilk self-assigned this Mar 13, 2020
Jose Nino added 2 commits March 13, 2020 10:21
Signed-off-by: Jose Nino <jnino@lyft.com>
Signed-off-by: Jose Nino <jnino@lyft.com>
@junr03
Copy link
Member Author

junr03 commented Mar 13, 2020

@alyssawilk updated!

@junr03 junr03 merged commit 6fb0dc8 into envoyproxy:master Mar 16, 2020
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.

router: add unit tests for x-envoy-attempt-count on the request path

2 participants