Skip to content

grpc: parameterize integration tests by gRPC client type.#2434

Merged
htuch merged 1 commit intoenvoyproxy:masterfrom
htuch:grpc-integration-refactor
Jan 23, 2018
Merged

grpc: parameterize integration tests by gRPC client type.#2434
htuch merged 1 commit intoenvoyproxy:masterfrom
htuch:grpc-integration-refactor

Conversation

@htuch
Copy link
Copy Markdown
Member

@htuch htuch commented Jan 23, 2018

Testing: New parameterized integration tests.
Risk Level: Low

Signed-off-by: Harvey Tuch htuch@google.com

Testing: New paramaterized integration tests.
Risk Level: Low

Signed-off-by: Harvey Tuch <htuch@google.com>
Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

LGTM, small question.

case Grpc::ClientType::GoogleGrpc:
test_server_->waitForCounterGe("grpc.ratelimit.streams_closed_4", 1);
EXPECT_EQ(1, test_server_->counter("grpc.ratelimit.streams_total")->value());
EXPECT_EQ(1, test_server_->counter("grpc.ratelimit.streams_closed_4")->value());
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

"grpc.ratelimit.streams_closed_4" is a pretty strange stat name. Is that a bug?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Nup; it's grpc.<stat prefix>.streams_closed_<grpc status code>.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Where is this implemented? I'm confused. Why don't we have similar stats for Envoy gRPC client?

Copy link
Copy Markdown
Member Author

@htuch htuch Jan 23, 2018

Choose a reason for hiding this comment

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

We had a discussion about this, where the outcome was that this would make more sense to do in a router related stat for Envoy gRPC (and also do this for data plane gRPC at the same time). It will be implemented in the Google gRPC PR coming up, where with Google gRPC we maintain stats that would normally show up under upstream cluster stats etc.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah OK, my main question was how this is passing, since I didn't see this implemented yet. So this PR doesn't actually enable the Google client tests yet?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nevermind, I see the parameter only running Envoy tests now. OK.

@htuch htuch merged commit 2a71dc6 into envoyproxy:master Jan 23, 2018
@htuch htuch deleted the grpc-integration-refactor branch January 23, 2018 19:21
htuch added a commit to htuch/envoy that referenced this pull request Jan 24, 2018
.

Signed-off-by: Harvey Tuch <htuch@google.com>
htuch added a commit that referenced this pull request Jan 24, 2018
Signed-off-by: Harvey Tuch <htuch@google.com>
jpsim added a commit that referenced this pull request Nov 28, 2022
Which will be needed when we update to the latest version of bazel:
#22295

Signed-off-by: JP Simard <jp@jpsim.com>
jpsim added a commit that referenced this pull request Nov 29, 2022
Which will be needed when we update to the latest version of bazel:
#22295

Signed-off-by: JP Simard <jp@jpsim.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.

2 participants