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

Function TEST

3rdparty/libprocess/src/tests/ssl_tests.cpp:145–150  ·  view source on GitHub ↗

Ensure that we can't create an SSL socket when SSL is not enabled.

Source from the content-addressed store, hash-verified

143
144// Ensure that we can't create an SSL socket when SSL is not enabled.
145TEST(SSL, Disabled)
146{
147 os::setenv("LIBPROCESS_SSL_ENABLED", "false");
148 openssl::reinitialize();
149 EXPECT_ERROR(Socket::create(SocketImpl::Kind::SSL));
150}
151
152
153// Test a basic back-and-forth communication using the 'ssl-client'

Callers

nothing calls this directly

Calls 3

setenvFunction · 0.50
reinitializeFunction · 0.50
createFunction · 0.50

Tested by

no test coverage detected