-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNOW-1693588 Upgrade to JUnit5 #1909
Open
sfc-gh-astachowski
wants to merge
87
commits into
master
Choose a base branch
from
SNOW-1693588-upgrade-to-junit5
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+6,325
−5,358
Open
Changes from 76 commits
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
8956d3f
Initial upgrade
sfc-gh-astachowski fe34193
Formatting fix
sfc-gh-astachowski 4788157
Formatting fix
sfc-gh-astachowski ed62767
Removed extra dependencies
sfc-gh-astachowski c219985
Changed temporary directories
sfc-gh-astachowski 17c51ad
Add explicit dependency on junit4
sfc-gh-astachowski 50ba1ca
Add test scope to junit4
sfc-gh-astachowski c6db3ef
Pom fix
sfc-gh-astachowski 63eaf4b
Added junit5 to test only pom
sfc-gh-astachowski 3dd6e40
Added junit5 engine and migrated Assumptions
sfc-gh-astachowski 8a503d5
Formatting
sfc-gh-astachowski 9d71987
Attempt to fix dependencies
sfc-gh-astachowski 84a8c34
Attempt to fix dependencies
sfc-gh-astachowski 4c72889
Removed junit4 entirely
sfc-gh-astachowski af01a07
Formatting
sfc-gh-astachowski 7461ef5
Fixed FIPS folder
sfc-gh-astachowski f5d91f4
Further fixes to FIPS
sfc-gh-astachowski 8dbb729
Fixed package names
sfc-gh-astachowski 5e7a55e
Changed to static imports
sfc-gh-astachowski 62864ef
Changed categories to tags
sfc-gh-astachowski 1a1b111
Formatting
sfc-gh-astachowski b8add67
Added test suites (expected to fail on old driver at the moment)
sfc-gh-astachowski 39d8383
Fips fix
sfc-gh-astachowski 158dc3b
Added dependencies for local testing
sfc-gh-astachowski d210c0e
Merge branch 'master' into SNOW-1693588-upgrade-to-junit5
sfc-gh-astachowski b18e508
Merge with master
sfc-gh-astachowski c418979
Formatting
sfc-gh-astachowski bf3b1d0
Added explicit junit4 dependency
sfc-gh-astachowski b593608
Removed test category from pom
sfc-gh-astachowski 68805e9
Added explicit surefire provider
sfc-gh-astachowski 335828e
Changed prepared statement tests to parameterized
sfc-gh-astachowski 5f578b2
Formatting
sfc-gh-astachowski 4899819
Merge master
sfc-gh-astachowski 31023c4
Formatting
sfc-gh-astachowski 4a97907
Refactored result set serializable tests from inheritance to paramete…
sfc-gh-astachowski 73ce0fd
Refactored callable statement tests to avoid running a test twice
sfc-gh-astachowski 704f86f
Fixed assertions of array equality
sfc-gh-astachowski c9b15df
Changed asserting a properties value to setting and reverting it
sfc-gh-astachowski 6295d2c
Removed a class to avoid duplicating tests with parent class, in whic…
sfc-gh-astachowski 239f71c
Formatting
sfc-gh-astachowski f8156ee
Script changes
sfc-gh-astachowski aa592b1
Added restoring static values in Session Util Test
sfc-gh-astachowski cabb3af
Added restoring static values in Trust Manager Test
sfc-gh-astachowski b5f811c
Ignore GCP test on Github Actions
sfc-gh-astachowski e045c7e
Fixed testing script
sfc-gh-astachowski 37b6d16
Fixed testing script
sfc-gh-astachowski 4d99bf7
Added closing input streams to Arrow Result Set IT
sfc-gh-astachowski 52252f2
Removed Result Set Arrow IT, as it's parent class has previously been…
sfc-gh-astachowski e9001e0
Temporarily disabled potentially problematic test
sfc-gh-astachowski ac43895
Formatting
sfc-gh-astachowski 3d0a3b3
Temporarily disabled failing test
sfc-gh-astachowski 7641cc7
Disabled failsafe integration-test
sfc-gh-astachowski f53ba90
Running secure storage manager tests only on relevant systems
sfc-gh-astachowski a4a5d32
Added try-with-resources for input stream
sfc-gh-astachowski 29a7dec
Added old driver tests
sfc-gh-astachowski e98c743
Formatting
sfc-gh-astachowski 80c7458
Changed test provider for old driver tests
sfc-gh-astachowski ee773d3
Bumped the version of failsafe plugin
sfc-gh-astachowski 11bafe5
Changed junit jupiter api version
sfc-gh-astachowski 200fbb0
Removed unit tests from tests excluded from build
sfc-gh-astachowski c6a1656
Reverted dependency version change
sfc-gh-astachowski eed2726
Added unit tests back to exclude from compilation list for old driver…
sfc-gh-astachowski bdd0142
Removed Core and Unit tests from old drivers tests
sfc-gh-astachowski 45a9394
Changed a dependency
sfc-gh-astachowski f1299ed
Changed a dependency
sfc-gh-astachowski 2a94a10
Changed a dependency
sfc-gh-astachowski fce902c
Changed windows testing script to run multiple suites at once
sfc-gh-astachowski 9c4e457
Restored old test names
sfc-gh-astachowski 70fbd2a
Added copyright headers
sfc-gh-astachowski a59bec7
Removed empty file
sfc-gh-astachowski 5729e22
Removed old ignore conditions and test categories
sfc-gh-astachowski 49bfc08
Changed imports to assumptionUtil
sfc-gh-astachowski 6f28e2e
Added missing copyright header
sfc-gh-astachowski 6f9ae50
Renamed format providers to result format providers
sfc-gh-astachowski d35574f
Changed test annotation from junit4 to junit5
sfc-gh-astachowski 8fb4e63
Moved throw assertions to relevant lines
sfc-gh-astachowski cb2239a
Added don't run on Github annotation
sfc-gh-astachowski afaf5d6
Merge branch 'master' into SNOW-1693588-upgrade-to-junit5
sfc-gh-astachowski 2e33f77
Added system properties in build
sfc-gh-astachowski 5aafdf2
Temporary disable test
sfc-gh-astachowski 9197cd3
Temporary disable tests
sfc-gh-astachowski dd672e0
Script fix
sfc-gh-astachowski 994b956
Added TODO
sfc-gh-astachowski e63c961
Re-enabled to test
sfc-gh-astachowski cca23d8
Formatting
sfc-gh-astachowski fa966fb
Disabled test with ticket attached
sfc-gh-astachowski 8058d8e
Switched from failsafe to surefire
sfc-gh-astachowski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
125 changes: 0 additions & 125 deletions
125
FIPS/src/test/java/net/snowflake/client/ConditionalIgnoreRule.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright (c) 2024 Snowflake Computing Inc. All rights reserved. | ||
*/ | ||
package net.snowflake.client; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable; | ||
|
||
@Target(ElementType.METHOD) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@DisabledIfEnvironmentVariable(named = "CLOUD_PROVIDER", matches = "(?i)GCP(?-i)") | ||
public @interface DontRunOnGCP {} |
15 changes: 15 additions & 0 deletions
15
FIPS/src/test/java/net/snowflake/client/DontRunOnGithubActions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright (c) 2024 Snowflake Computing Inc. All rights reserved. | ||
*/ | ||
package net.snowflake.client; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable; | ||
|
||
@Target(ElementType.METHOD) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@DisabledIfEnvironmentVariable(named = "GITHUB_ACTIONS", matches = ".*") | ||
public @interface DontRunOnGithubActions {} |
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
FIPS/src/test/java/net/snowflake/client/RunningOnGithubActions.java
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
FIPS/src/test/java/net/snowflake/client/category/FipsTestSuite.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright (c) 2024 Snowflake Computing Inc. All rights reserved. | ||
*/ | ||
package net.snowflake.client.category; | ||
|
||
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; | ||
|
||
@Suite | ||
@SelectPackages("net.snowflake.client") | ||
@ExcludePackages("net.snowflake.client.suites") | ||
@IncludeClassNamePatterns(".+") | ||
public class FipsTestSuite { | ||
} |
3 changes: 0 additions & 3 deletions
3
FIPS/src/test/java/net/snowflake/client/category/TestCategoryFips.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's add version to the properties - here and in other places in poms
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call