Skip to content

Commit 6605dd6

Browse files
committed
fips adjustment
1 parent 9bb1936 commit 6605dd6

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

ci/test_fips.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
#!/bin/bash -e
22
#
3-
# Test Snowflake Connector
4-
# Note this is the script that test_docker.sh runs inside of the docker container
3+
# Test Snowflake Connector (FIPS)
4+
# Note this is the script that test_fips_docker.sh runs inside of the docker container
55
#
6+
7+
# Export USE_PASSWORD only on Jenkins (not on GitHub Actions)
8+
# Jenkins FIPS tests run against mocked Snowflake with password auth
9+
# GitHub Actions FIPS tests run against real Snowflake with key-pair auth
10+
if [[ "${JENKINS_HOME}" != "false" && -n "${JENKINS_HOME}" ]]; then
11+
export USE_PASSWORD=true
12+
echo "[Info] Jenkins detected: Using password authentication for FIPS tests"
13+
else
14+
echo "[Info] GitHub Actions detected: Using key-pair authentication for FIPS tests"
15+
fi
16+
617
THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
718
# shellcheck disable=SC1090
819
CONNECTOR_DIR="$( dirname "${THIS_DIR}")"

0 commit comments

Comments
 (0)