Skip to content

Commit

Permalink
chore: update mock interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
karenc-bq committed Sep 4, 2024
1 parent 1d3bb33 commit 4b3d9fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion unit_testing/mock_objects.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class MOCK_AUTH_UTIL : public AUTH_UTIL {

class MOCK_SAML_HTTP_CLIENT : public SAML_HTTP_CLIENT {
public:
MOCK_SAML_HTTP_CLIENT(std::string host) : SAML_HTTP_CLIENT(host) {};
MOCK_SAML_HTTP_CLIENT(std::string host, int connect_timeout, int socket_timeout, bool enable_ssl) : SAML_HTTP_CLIENT(host, connect_timeout, socket_timeout, enable_ssl) {};
MOCK_METHOD(nlohmann::json, post, (const std::string&, const nlohmann::json&));
MOCK_METHOD(nlohmann::json, get, (const std::string&));
};
Expand Down
2 changes: 1 addition & 1 deletion unit_testing/okta_proxy_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class OktaProxyTest : public testing::Test {
ds->opt_AUTH_PORT = TEST_PORT;
ds->opt_AUTH_EXPIRATION = TEST_EXPIRATION;

mock_saml_http_client = std::make_shared<MOCK_SAML_HTTP_CLIENT>(TEST_ENDPOINT);
mock_saml_http_client = std::make_shared<MOCK_SAML_HTTP_CLIENT>(TEST_ENDPOINT, 10, 10, true);
mock_auth_util = std::make_shared<MOCK_AUTH_UTIL>();
}

Expand Down
2 changes: 1 addition & 1 deletion util/installer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1057,9 +1057,9 @@ void DataSource::reset() {

this->opt_AUTH_PORT.set_default(opt_PORT);
this->opt_AUTH_EXPIRATION.set_default(900); // 15 minutes
this->opt_ENABLE_SSL.set_default(true);
this->opt_CLIENT_CONNECT_TIMEOUT.set_default(60);
this->opt_CLIENT_SOCKET_TIMEOUT.set_default(60);
this->opt_ENABLE_SSL.set_default(true);
}

SQLWSTRING DataSource::to_kvpair(SQLWCHAR delim) {
Expand Down

0 comments on commit 4b3d9fb

Please sign in to comment.