Skip to content

Commit

Permalink
Add default is_servrless value to connection tests.
Browse files Browse the repository at this point in the history
Signed-off-by: currantw <[email protected]>
  • Loading branch information
currantw committed Nov 18, 2024
1 parent 7fcfa87 commit f0b3abf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/UnitTests/UTConn/test_conn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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, "", "", "", ""}};

Expand Down Expand Up @@ -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());
}
Expand Down

0 comments on commit f0b3abf

Please sign in to comment.