From f0b3abf4110abf052ae471c1d389d908b301f0df Mon Sep 17 00:00:00 2001 From: currantw Date: Mon, 18 Nov 2024 11:51:06 -0800 Subject: [PATCH] Add default `is_servrless` value to connection tests. Signed-off-by: currantw --- src/UnitTests/UTConn/test_conn.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/UnitTests/UTConn/test_conn.cpp b/src/UnitTests/UTConn/test_conn.cpp index 0e56831..61d3e1b 100644 --- a/src/UnitTests/UTConn/test_conn.cpp +++ b/src/UnitTests/UTConn/test_conn.cpp @@ -18,14 +18,14 @@ const std::string invalid_port = "920"; const std::string invalid_user = "amin"; const std::string invalid_pw = "amin"; const std::string invalid_region = "bad-region"; -runtime_options valid_opt_val = {{valid_host, valid_port, "1", "0"}, +runtime_options valid_opt_val = {{valid_host, valid_port, "1", "0", ""}, {"BASIC", valid_user, valid_pw, valid_region, valid_tunnel_host}, {use_ssl, false, "", "", "", ""}}; runtime_options invalid_opt_val = { - {invalid_host, invalid_port, "1", "0"}, + {invalid_host, invalid_port, "1", "0", ""}, {"BASIC", invalid_user, invalid_pw, valid_region, valid_tunnel_host}, {use_ssl, false, "", "", "", ""}}; -runtime_options missing_opt_val = {{"", "", "1", "0"}, +runtime_options missing_opt_val = {{"", "", "1", "0", ""}, {"BASIC", "", invalid_pw, valid_region, valid_tunnel_host}, {use_ssl, false, "", "", "", ""}}; @@ -63,6 +63,9 @@ class TestOpenSearchConnConnectDBStart : public testing::Test { TEST_F(TestOpenSearchConnConnectDBStart, ValidParameters) { ASSERT_NE(false, m_conn.ConnectionOptions(valid_opt_val, 1, 1, valid_option_count)); + // TODO + bool res = m_conn.ConnectDBStart(); + EXPECT_EQ(true, m_conn.ConnectDBStart()); EXPECT_EQ(CONNECTION_OK, m_conn.GetConnectionStatus()); }