|
|
@ -147,7 +147,7 @@ class LoggingTest : public ::testing::Test { |
|
|
|
std::unique_ptr<EchoTestService::Stub> stub_; |
|
|
|
std::unique_ptr<EchoTestService::Stub> stub_; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
TEST_F(LoggingTest, SimpleRpc) { |
|
|
|
TEST_F(LoggingTest, DISABLED_SimpleRpc) { |
|
|
|
g_test_logging_sink->SetConfig( |
|
|
|
g_test_logging_sink->SetConfig( |
|
|
|
grpc::internal::LoggingSink::Config(4096, 4096)); |
|
|
|
grpc::internal::LoggingSink::Config(4096, 4096)); |
|
|
|
EchoRequest request; |
|
|
|
EchoRequest request; |
|
|
@ -304,7 +304,7 @@ TEST_F(LoggingTest, SimpleRpc) { |
|
|
|
"server-trailer-value"))))))); |
|
|
|
"server-trailer-value"))))))); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
TEST_F(LoggingTest, LoggingDisabled) { |
|
|
|
TEST_F(LoggingTest, DISABLED_LoggingDisabled) { |
|
|
|
g_test_logging_sink->SetConfig(grpc::internal::LoggingSink::Config()); |
|
|
|
g_test_logging_sink->SetConfig(grpc::internal::LoggingSink::Config()); |
|
|
|
EchoRequest request; |
|
|
|
EchoRequest request; |
|
|
|
request.set_message("foo"); |
|
|
|
request.set_message("foo"); |
|
|
@ -316,7 +316,7 @@ TEST_F(LoggingTest, LoggingDisabled) { |
|
|
|
EXPECT_TRUE(g_test_logging_sink->entries().empty()); |
|
|
|
EXPECT_TRUE(g_test_logging_sink->entries().empty()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
TEST_F(LoggingTest, MetadataTruncated) { |
|
|
|
TEST_F(LoggingTest, DISABLED_MetadataTruncated) { |
|
|
|
g_test_logging_sink->SetConfig(grpc::internal::LoggingSink::Config( |
|
|
|
g_test_logging_sink->SetConfig(grpc::internal::LoggingSink::Config( |
|
|
|
40 /* expect truncated metadata*/, 4096)); |
|
|
|
40 /* expect truncated metadata*/, 4096)); |
|
|
|
EchoRequest request; |
|
|
|
EchoRequest request; |
|
|
@ -474,7 +474,7 @@ TEST_F(LoggingTest, MetadataTruncated) { |
|
|
|
"server-trailer-value"))))))); |
|
|
|
"server-trailer-value"))))))); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
TEST_F(LoggingTest, PayloadTruncated) { |
|
|
|
TEST_F(LoggingTest, DISABLED_PayloadTruncated) { |
|
|
|
g_test_logging_sink->SetConfig(grpc::internal::LoggingSink::Config(4096, 10)); |
|
|
|
g_test_logging_sink->SetConfig(grpc::internal::LoggingSink::Config(4096, 10)); |
|
|
|
EchoRequest request; |
|
|
|
EchoRequest request; |
|
|
|
// The following message should get truncated
|
|
|
|
// The following message should get truncated
|
|
|
@ -635,7 +635,7 @@ TEST_F(LoggingTest, PayloadTruncated) { |
|
|
|
"server-trailer-value"))))))); |
|
|
|
"server-trailer-value"))))))); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
TEST_F(LoggingTest, CancelledRpc) { |
|
|
|
TEST_F(LoggingTest, DISABLED_CancelledRpc) { |
|
|
|
g_test_logging_sink->SetConfig( |
|
|
|
g_test_logging_sink->SetConfig( |
|
|
|
grpc::internal::LoggingSink::Config(4096, 4096)); |
|
|
|
grpc::internal::LoggingSink::Config(4096, 4096)); |
|
|
|
EchoRequest request; |
|
|
|
EchoRequest request; |
|
|
|