ObservabilityConfig: Add missing test (#31572)

pull/31602/head
Yash Tibrewal 2 years ago committed by GitHub
parent 5b8f006ece
commit 5dfd384655
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      test/cpp/ext/gcp/observability_config_test.cc

@ -158,6 +158,11 @@ TEST(GcpObservabilityConfigJsonParsingTest, LoggingConfigWildcardEntries) {
{
"methods": ["*", "service/*"]
}
],
"server_rpc_events": [
{
"methods": ["*", "service/*"]
}
]
}
})json";
@ -171,6 +176,9 @@ TEST(GcpObservabilityConfigJsonParsingTest, LoggingConfigWildcardEntries) {
ASSERT_EQ(config.cloud_logging->client_rpc_events.size(), 1);
EXPECT_THAT(config.cloud_logging->client_rpc_events[0].qualified_methods,
::testing::ElementsAre("*", "service/*"));
ASSERT_EQ(config.cloud_logging->server_rpc_events.size(), 1);
EXPECT_THAT(config.cloud_logging->server_rpc_events[0].qualified_methods,
::testing::ElementsAre("*", "service/*"));
}
TEST(GcpObservabilityConfigJsonParsingTest,

Loading…
Cancel
Save