Skip to content

Commit

Permalink
Fips fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-astachowski committed Oct 25, 2024
1 parent b8add67 commit 39d8383
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
package net.snowflake.client.suites;
package net.snowflake.client.category;

import net.snowflake.client.category.TestTags;
import org.junit.platform.suite.api.IncludeTags;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.junit.platform.suite.api.ExcludePackages;
import org.junit.platform.suite.api.IncludeClassNamePatterns;
import org.junit.platform.suite.api.SelectPackages;
import org.junit.platform.suite.api.Suite;
import org.junit.platform.suite.api.SuiteDisplayName;

@BaseTestSuite
@IncludeTags("fips")
@Suite
@SuiteDisplayName("Testowanie")
@SelectPackages("net.snowflake.client")
@ExcludePackages("net.snowflake.client.suites")
@IncludeClassNamePatterns(".+")
public class FipsTestSuite {
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import net.snowflake.client.AbstractDriverIT;
import net.snowflake.client.DontRunOnGCP;
import net.snowflake.client.DontRunOnGithubActions;
import net.snowflake.client.category.TestCategoryFips;
import net.snowflake.client.core.SecurityUtil;
import org.apache.commons.codec.binary.Base64;
import org.bouncycastle.crypto.CryptoServicesRegistrar;
Expand Down
1 change: 1 addition & 0 deletions ci/container/test_component.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ elif [[ "$c" == "FipsTestSuite" ]]; then
$MVNW_EXE -DjenkinsIT \
-Djava.io.tmpdir=$WORKSPACE \
-Djacoco.skip.instrument=false \
-Dtest=FipsTestSuite \
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
-Dnot-self-contained-jar \
verify \
Expand Down
2 changes: 2 additions & 0 deletions src/test/java/net/snowflake/client/suites/BaseTestSuite.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.junit.platform.suite.api.ExcludePackages;
import org.junit.platform.suite.api.IncludeClassNamePatterns;
import org.junit.platform.suite.api.SelectPackages;
import org.junit.platform.suite.api.Suite;
import org.junit.platform.suite.api.SuiteDisplayName;
Expand All @@ -15,4 +16,5 @@
@SuiteDisplayName("Testowanie")
@SelectPackages("net.snowflake.client")
@ExcludePackages("net.snowflake.client.suites")
@IncludeClassNamePatterns(".+")
public @interface BaseTestSuite {}

0 comments on commit 39d8383

Please sign in to comment.