Skip to content

Commit 5a07fe4

Browse files
committed
Add environment debut output
1 parent 3c39496 commit 5a07fe4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/src/unit/tests/test_connection.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,15 @@ TEST_F(ConnectionUnitTest, SslDefaultVerifyPaths) {
222222
cert_buffer.close();
223223
ASSERT_EQ(uv_os_setenv("SSL_CERT_FILE", cert_path.c_str()), 0)
224224
<< "Failed to prepare openssl environment";
225+
std::cout << "Debug SslDefaultVerifyPaths: SSL_CERT_FILE " << cert_path << " " << cert << std::endl;
226+
for (const auto var: {"SSL_CERT_FILE", "SSL_CERT_DIR"}) {
227+
const char* value = std::getenv(var);
228+
if (value == nullptr) {
229+
std::cout << "Debug SslDefaultVerifyPaths: Env " << var << " is not set!" << std::endl;
230+
continue;
231+
}
232+
std::cout << "Debug SslDefaultVerifyPaths: Env " << var << " " << value << std::endl;
233+
}
225234
ASSERT_EQ(settings.socket_settings.ssl_context->set_default_verify_paths(), CASS_OK)
226235
<< "Failed to import default / system SSL certificates.";
227236
ASSERT_EQ(std::remove(cert_path.c_str()), 0) << "Failed to cleanup temporary certificate file.";

0 commit comments

Comments
 (0)