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

Method SetUp

3rdparty/libprocess/src/tests/socket_tests.cpp:124–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122#ifdef USE_SSL_SOCKET
123protected:
124 void SetUp() override
125 {
126 // We must run the parent's `SetUp` first so that we `chdir` into the test
127 // directory before SSL helpers like `key_path()` are called.
128 SSLTemporaryDirectoryTest::SetUp();
129
130 if (GetParam() == "SSL") {
131 generate_keys_and_certs();
132 set_environment_variables({
133 {"LIBPROCESS_SSL_ENABLED", "true"},
134 {"LIBPROCESS_SSL_KEY_FILE", key_path()},
135 {"LIBPROCESS_SSL_CERT_FILE", certificate_path()}});
136 } else {
137 set_environment_variables({});
138 }
139
140 process::reinitialize(
141 None(),
142 READWRITE_HTTP_AUTHENTICATION_REALM,
143 READONLY_HTTP_AUTHENTICATION_REALM);
144 }
145
146public:
147 static void TearDownTestCase()

Callers

nothing calls this directly

Calls 2

NoneClass · 0.85
reinitializeFunction · 0.50

Tested by

no test coverage detected