| 142 | kudu::security::SecurityDefaults::SecurityDefaults::kDefaultTlsCiphers; |
| 143 | |
| 144 | TEST(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 | |
| 160 | void TestMaxMessageSize(std::string subscriber_id, bool expect_throw, |
| 161 | bool is_external_facing = true) { |
nothing calls this directly
no test coverage detected