diff --git a/FIPS/scripts/check_content.sh b/FIPS/scripts/check_content.sh index a30eacec6..236114df6 100755 --- a/FIPS/scripts/check_content.sh +++ b/FIPS/scripts/check_content.sh @@ -6,7 +6,7 @@ set -o pipefail DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" -if jar tvf $DIR/../target/snowflake-jdbc-fips.jar | awk '{print $8}' | grep -v -E "/$" | grep -v -E "^(net|com)/snowflake" | grep -v -E "(com|net)/\$" | grep -v -E "^META-INF" | grep -v -E "^mozilla" | grep -v -E "^com/sun/jna" | grep -v com/sun/ | grep -v mime.types | grep -v -E "^com/github/luben/zstd/" | grep -v -E "^aix/" | grep -v -E "^darwin/" | grep -v -E "^freebsd/" | grep -v -E "^linux/" | grep -v -E "^win/"; then +if jar tvf $DIR/../target/snowflake-jdbc-fips.jar | awk '{print $8}' | grep -v -E "/$" | grep -v -E "^(net|com)/snowflake" | grep -v -E "(com|net)/\$" | grep -v -E "^META-INF" | grep -v -E "^iso3166_" | grep -v -E "^mozilla" | grep -v -E "^com/sun/jna" | grep -v com/sun/ | grep -v mime.types | grep -v -E "^com/github/luben/zstd/" | grep -v -E "^aix/" | grep -v -E "^darwin/" | grep -v -E "^freebsd/" | grep -v -E "^linux/" | grep -v -E "^win/"; then echo "[ERROR] JDBC jar includes class not under the snowflake namespace" exit 1 fi diff --git a/ci/container/test_authentication.sh b/ci/container/test_authentication.sh index 9a2eddf27..c3f525387 100755 --- a/ci/container/test_authentication.sh +++ b/ci/container/test_authentication.sh @@ -16,5 +16,6 @@ $MVNW_EXE -DjenkinsIT \ -DintegrationTestSuites=AuthenticationTestSuite \ -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \ -Dnot-self-contained-jar \ + -Dsnowflake.jdbc.enableSoteria=true \ verify \ --batch-mode --show-version diff --git a/ci/container/test_component.sh b/ci/container/test_component.sh index 65efed88d..7b9e403c6 100755 --- a/ci/container/test_component.sh +++ b/ci/container/test_component.sh @@ -85,6 +85,7 @@ if [[ "$is_old_driver" == "true" ]]; then -Djacoco.skip.instrument=false \ -DintegrationTestSuites="$JDBC_TEST_SUITES" \ -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \ + -Dsnowflake.jdbc.enableSoteria=true \ verify \ --batch-mode --show-version popd >& /dev/null @@ -97,6 +98,7 @@ elif [[ "$JDBC_TEST_SUITES" == "FipsTestSuite" ]]; then -DintegrationTestSuites=FipsTestSuite \ -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \ -Dnot-self-contained-jar \ + -Dsnowflake.jdbc.enableSoteria=true \ verify \ --batch-mode --show-version popd >& /dev/null @@ -108,6 +110,7 @@ else -DintegrationTestSuites="$JDBC_TEST_SUITES" \ -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \ -Dnot-self-contained-jar $ADDITIONAL_MAVEN_PROFILE \ + -Dsnowflake.jdbc.enableSoteria=true \ verify \ --batch-mode --show-version fi diff --git a/ci/scripts/check_content.sh b/ci/scripts/check_content.sh index 1af33e56a..e74264cb8 100755 --- a/ci/scripts/check_content.sh +++ b/ci/scripts/check_content.sh @@ -8,7 +8,7 @@ set -o pipefail DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" -if jar tvf $DIR/../../target/snowflake-jdbc${package_modifier}.jar | awk '{print $8}' | grep -v -E "/$" | grep -v -E "^(net|com)/snowflake" | grep -v -E "(com|net)/\$" | grep -v -E "^META-INF" | grep -v -E "^mozilla" | grep -v -E "^com/sun/jna" | grep -v com/sun/ | grep -v mime.types | grep -v -E "^com/github/luben/zstd/" | grep -v -E "^aix/" | grep -v -E "^darwin/" | grep -v -E "^freebsd/" | grep -v -E "^linux/" | grep -v -E "^win/"; then +if jar $DIR/../../target/snowflake-jdbc${package_modifier}.jar | awk '{print $8}' | grep -v -E "/$" | grep -v -E "^(net|com)/snowflake" | grep -v -E "(com|net)/\$" | grep -v -E "^META-INF" | grep -v -E "^iso3166_" | grep -v -E "^mozilla" | grep -v -E "^com/sun/jna" | grep -v com/sun/ | grep -v mime.types | grep -v -E "^com/github/luben/zstd/" | grep -v -E "^aix/" | grep -v -E "^darwin/" | grep -v -E "^freebsd/" | grep -v -E "^linux/" | grep -v -E "^win/"; then echo "[ERROR] JDBC jar includes class not under the snowflake namespace" exit 1 fi diff --git a/ci/test_windows.bat b/ci/test_windows.bat index 0234b105c..a9f9818b7 100644 --- a/ci/test_windows.bat +++ b/ci/test_windows.bat @@ -120,6 +120,7 @@ if "%JDBC_TEST_SUITES%"=="FipsTestSuite" ( -DintegrationTestSuites=FipsTestSuite ^ -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn ^ -Dnot-self-contained-jar ^ + -Dsnowflake.jdbc.enableSoteria=true ^ verify ^ --batch-mode --show-version > log.txt & type log.txt echo "[INFO] Check for test execution status" @@ -140,6 +141,7 @@ if "%JDBC_TEST_SUITES%"=="FipsTestSuite" ( -DintegrationTestSuites="%JDBC_TEST_SUITES%" ^ -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn ^ -Dnot-self-contained-jar %ADDITIONAL_MAVEN_PROFILE% ^ + -Dsnowflake.jdbc.enableSoteria=true ^ verify ^ --batch-mode --show-version > log.txt & type log.txt echo "[INFO] Check for test execution status" diff --git a/linkage-checker-exclusion-rules.xml b/linkage-checker-exclusion-rules.xml index 64b5860c2..cc7640d8f 100644 --- a/linkage-checker-exclusion-rules.xml +++ b/linkage-checker-exclusion-rules.xml @@ -29,6 +29,7 @@ ? + @@ -49,6 +50,26 @@ ? + + + + ? + + + + + ? + + + + + ? + + + + + ? +