-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Verify that service cluster is set in case LS tracing is enabled #383
Conversation
test please. you might move the tracing configuration load to a static utility function that is easier to test. |
@RomanDzhabarov thanks for following up on my testing issue with this PR. |
Sounds good, will add tests in a bit today. |
|
||
NiceMock<Server::MockInstance> server; | ||
std::string cluster_not_set = ""; | ||
EXPECT_CALL(server.local_info_, clusterName()).WillOnce(ReturnRef(cluster_not_set)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just modify server.local_info_.cluster_name_ directly. You don't need a new variable or the EXPECT_CALL.
@@ -119,5 +120,38 @@ TEST(ConfigurationImplTest, BadListenerConfig) { | |||
EXPECT_THROW(config.initialize(*loader), Json::Exception); | |||
} | |||
|
|||
TEST(ConfigurationImplTest, NotSetServiceClusterWhenLSTracing) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ServiceClusterNotSetWhenLSTracing
* Add tcp filter * collect some data. * Add WriteFilter. * integrate with mixer_control. * Add integration test. * use NamedNetworkFilerConfigFactory
No description provided.