From 5dfd38465546bb0c76e3c4c128d969d89e5b0311 Mon Sep 17 00:00:00 2001 From: Yash Tibrewal Date: Wed, 9 Nov 2022 12:30:09 -0800 Subject: [PATCH] ObservabilityConfig: Add missing test (#31572) --- test/cpp/ext/gcp/observability_config_test.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/cpp/ext/gcp/observability_config_test.cc b/test/cpp/ext/gcp/observability_config_test.cc index bbf68951829..f73214fcc6e 100644 --- a/test/cpp/ext/gcp/observability_config_test.cc +++ b/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,