Skip to content
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

Snowflake ChangeData and BasicCompatibility tests fix #402

Merged
merged 3 commits into from
Nov 3, 2022

Conversation

yodzhubeiskyi
Copy link
Contributor

No description provided.

@yodzhubeiskyi yodzhubeiskyi marked this pull request as ready for review November 3, 2022 08:51
@@ -20,8 +20,8 @@ class BasicCompatibilityTestHelper {
final static String baseChangelogPath = "liquibase/harness/compatibility/basic/changelogs"
final static List supportedChangeLogFormats = ['xml', 'sql', 'json', 'yml', 'yaml'].asImmutable()

static boolean checkConnection(DatabaseConnection connection, String dbName) {
return connection.isClosed()||connection.getDatabaseProductName().toLowerCase().contains(dbName)
static boolean checkConnection(DatabaseConnection connection, String... dbNames) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename both checkConnection methods to something like shouldOpenNewConnection(), needNewConnectionForDB(), etc. Something that is like question sentence that can be answered yes or no (true or false)

@@ -86,4 +87,8 @@ class ChangeDataTestHelper {
String pathToChangeLogFile
Database database
}

static boolean checkConnection(DatabaseConnection connection, String... dbNames) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@yodzhubeiskyi yodzhubeiskyi merged commit 5085ee1 into main Nov 3, 2022
@yodzhubeiskyi yodzhubeiskyi deleted the snowflake-fix branch November 3, 2022 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants