MCPcopy Create free account
hub / github.com/apache/impala / TEST

Function TEST

be/src/rpc/thrift-server-test.cc:144–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142 kudu::security::SecurityDefaults::SecurityDefaults::kDefaultTlsCiphers;
143
144TEST(ThriftTestBase, Connectivity) {
145 int port = GetServerPort();
146 ThriftClient<StatestoreServiceClientWrapper> wrong_port_client(
147 "localhost", port, "", nullptr, false);
148 ASSERT_FALSE(wrong_port_client.Open().ok());
149
150 ThriftServer* server;
151 EXPECT_OK(ThriftServerBuilder("DummyStatestore", MakeProcessor(), port)
152 .cipher_list(ciphers)
153 .Build(&server));
154 ASSERT_OK(server->Start());
155
156 // Test that client recovers from failure to connect.
157 ASSERT_OK(wrong_port_client.Open());
158}
159
160void TestMaxMessageSize(std::string subscriber_id, bool expect_throw,
161 bool is_external_facing = true) {

Callers

nothing calls this directly

Calls 15

GetServerPortFunction · 0.85
ThriftServerBuilderClass · 0.85
MakeProcessorFunction · 0.85
TestMaxMessageSizeFunction · 0.85
SubstituteFunction · 0.85
sslMethod · 0.80
ifaceMethod · 0.80
OfferMethod · 0.80
DrainAndShutdownMethod · 0.80
okMethod · 0.45
OpenMethod · 0.45
BuildMethod · 0.45

Tested by

no test coverage detected