Skip to content

Commit

Permalink
SNOW-979081: Add cacert paths to test env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dprzybysz committed Jun 12, 2024
1 parent d5a9993 commit bd37592
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions bindings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ void Init(const FunctionCallbackInfo<Value>& args) {
log_level = SF_LOG_FATAL;
}
log_set_level(log_level);
snowflake_global_set_attribute(SF_GLOBAL_CA_BUNDLE_FILE, getenv("SNOWFLAKE_TEST_CA_BUNDLE_FILE"));
// GENERIC_LOG_TRACE("Setting log level to %s (%d)", string_log_level.c_str(), log_level);
// snowflake_global_set_attribute(SF_GLOBAL_DEBUG, "TRUE");
// snowflake_global_init(NULL, log_level, NULL); // TODO setting log level here force logging to file in ./logs/*
Expand Down
1 change: 1 addition & 0 deletions ci/test_mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ source $THIS_DIR/scripts/set_git_info.sh
export WORKSPACE=$GITHUB_WORKSPACE
export SOURCE_ROOT=$GITHUB_WORKSPACE
export SHOULD_GENERATE_COVERAGE_REPORT=1
export SNOWFLAKE_TEST_CA_BUNDLE_FILE=$THIS_DIR/../libsfclient/cacert.pem

python3 --version
python3 -m venv venv
Expand Down
1 change: 1 addition & 0 deletions ci/test_ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export WORKSPACE=$GITHUB_WORKSPACE
export SOURCE_ROOT=$GITHUB_WORKSPACE
export SHOULD_GENERATE_COVERAGE_REPORT=1
export SHOULD_SKIP_PROXY_TESTS=1
export SNOWFLAKE_TEST_CA_BUNDLE_FILE=$THIS_DIR/../libsfclient/cacert.pem

python3 --version
python3 -m venv venv
Expand Down
1 change: 1 addition & 0 deletions ci/test_windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ if %ERRORLEVEL% NEQ 0 (
exit /b 1
)
set SNOWFLAKE_TEST_SCHEMA=%RUNNER_TRACKING_ID:-=_%_%GITHUB_SHA%
set SNOWFLAKE_TEST_CA_BUNDLE_FILE=%GITHUB_WORKSPACE%/libsfclient/cacert.pem

echo [INFO] Account: %SNOWFLAKE_TEST_ACCOUNT%
echo [INFO] User : %SNOWFLAKE_TEST_USER%
Expand Down
4 changes: 2 additions & 2 deletions test/integration/generic/generic_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ describe.only('test generic binding', () => {
};

before(() => {
if (process.platform === 'win32' || process.platform === 'linux') {
generic.init('TRACE');
if (process.platform === 'win32') {
generic.init('FATAL');
} else {
generic.init('FATAL');
}
Expand Down

0 comments on commit bd37592

Please sign in to comment.