From 7808d04d689cc469b7a1e2e3ad78dca864995fdc Mon Sep 17 00:00:00 2001 From: KushnirykOleh Date: Tue, 9 Apr 2024 17:16:49 +0300 Subject: [PATCH] enabled tests, need more work --- build/spock-reports/aggregated_report.json | 1 - build/spock-reports/index.html | 159 --------- ...igquery.database.BigqueryDatabaseSpec.html | 333 ------------------ ...igquery.database.BigqueryDatabaseTest.html | 333 ------------------ pom.xml | 92 ++--- src/test/groovy/AdvancedHarnessSuiteIT.groovy | 5 - .../groovy/AdvancedHarnessSuiteSpec.groovy | 5 - .../groovy/AdvancedHarnessSuiteTest.groovy | 5 - .../groovy/ContributedHarnessSuiteIT.groovy | 4 - .../groovy/ContributedHarnessSuiteTest.groovy | 4 - .../groovy/FoundationalHarnessSuiteIT.groovy | 4 - .../FoundationalHarnessSuiteTest.groovy | 4 - .../bigquery/AdvancedHarnessSuiteIT.groovy | 7 + .../bigquery/ContributedHarnessSuiteIT.groovy | 6 + .../FoundationalHarnessSuiteIT.groovy | 6 + .../database/BigqueryDatabaseSpec.groovy | 14 - .../harness/ContributedHarnessSuiteIT.java | 6 - .../harness/FoundationalHarnessSuiteSpec.java | 6 - .../harness/FoundationalHarnessSuiteTest.java | 6 - .../change/expectedSql/bigquery/addColumn.sql | 12 +- .../expectedSql/bigquery/addLookupTable.sql | 2 +- .../expectedSql/bigquery/createTable.sql | 2 +- .../bigquery/createTableDataTypeText.sql | 2 +- .../bigquery/createTableTimestamp.sql | 2 +- .../expectedSql/bigquery/createView.sql | 2 +- .../expectedSql/bigquery/dropColumn.sql | 4 +- .../expectedSql/bigquery/dropProcedure.sql | 2 +- .../change/expectedSql/bigquery/dropTable.sql | 4 +- .../change/expectedSql/bigquery/dropView.sql | 4 +- .../expectedSql/bigquery/mergeColumns.sql | 18 +- .../expectedSql/bigquery/modifyDataType.sql | 4 +- .../change/expectedSql/bigquery/modifySql.sql | 2 +- .../expectedSql/bigquery/renameColumn.sql | 2 +- .../expectedSql/bigquery/renameTable.sql | 4 +- .../change/expectedSql/bigquery/sql.sql | 2 +- .../change/expectedSql/bigquery/sqlFile.sql | 2 +- .../data/expectedSql/bigquery/delete.sql | 4 +- .../data/expectedSql/bigquery/insert.sql | 2 +- .../data/expectedSql/bigquery/loadData.sql | 6 +- 39 files changed, 83 insertions(+), 999 deletions(-) delete mode 100644 build/spock-reports/aggregated_report.json delete mode 100644 build/spock-reports/index.html delete mode 100644 build/spock-reports/liquibase.ext.bigquery.database.BigqueryDatabaseSpec.html delete mode 100644 build/spock-reports/liquibase.ext.bigquery.database.BigqueryDatabaseTest.html delete mode 100644 src/test/groovy/AdvancedHarnessSuiteIT.groovy delete mode 100644 src/test/groovy/AdvancedHarnessSuiteSpec.groovy delete mode 100644 src/test/groovy/AdvancedHarnessSuiteTest.groovy delete mode 100644 src/test/groovy/ContributedHarnessSuiteIT.groovy delete mode 100644 src/test/groovy/ContributedHarnessSuiteTest.groovy delete mode 100644 src/test/groovy/FoundationalHarnessSuiteIT.groovy delete mode 100644 src/test/groovy/FoundationalHarnessSuiteTest.groovy create mode 100644 src/test/groovy/liquibase/ext/bigquery/AdvancedHarnessSuiteIT.groovy create mode 100644 src/test/groovy/liquibase/ext/bigquery/ContributedHarnessSuiteIT.groovy create mode 100644 src/test/groovy/liquibase/ext/bigquery/FoundationalHarnessSuiteIT.groovy delete mode 100644 src/test/groovy/liquibase/ext/bigquery/database/BigqueryDatabaseSpec.groovy delete mode 100644 src/test/java/liquibase/harness/ContributedHarnessSuiteIT.java delete mode 100644 src/test/java/liquibase/harness/FoundationalHarnessSuiteSpec.java delete mode 100644 src/test/java/liquibase/harness/FoundationalHarnessSuiteTest.java diff --git a/build/spock-reports/aggregated_report.json b/build/spock-reports/aggregated_report.json deleted file mode 100644 index 63a133a1..00000000 --- a/build/spock-reports/aggregated_report.json +++ /dev/null @@ -1 +0,0 @@ -{"liquibase.ext.bigquery.database.BigqueryDatabaseSpec":{"executedFeatures":["checkSetup"],"ignoredFeatures":[],"stats":{"failures":0,"errors":0,"skipped":0,"totalRuns":1,"totalFeatures":1,"passed":1,"successRate":1.0,"time":48},"title":"","narrative":""},"liquibase.ext.bigquery.database.BigqueryDatabaseTest":{"executedFeatures":["checkSetup"],"ignoredFeatures":[],"stats":{"failures":0,"errors":0,"skipped":0,"totalRuns":1,"totalFeatures":1,"passed":1,"successRate":1.0,"time":2},"title":"","narrative":""},"liquibase.ext.bigquery.database.BigqueryDatabaseSpec":{"executedFeatures":["checkSetup"],"ignoredFeatures":[],"stats":{"failures":0,"errors":0,"skipped":0,"totalRuns":1,"totalFeatures":1,"passed":1,"successRate":1.0,"time":56},"title":"","narrative":""},"liquibase.ext.bigquery.database.BigqueryDatabaseTest":{"executedFeatures":["checkSetup"],"ignoredFeatures":[],"stats":{"failures":0,"errors":0,"skipped":0,"totalRuns":1,"totalFeatures":1,"passed":1,"successRate":1.0,"time":2},"title":"","narrative":""},"liquibase.ext.bigquery.database.BigqueryDatabaseSpec":{"executedFeatures":["checkSetup"],"ignoredFeatures":[],"stats":{"failures":0,"errors":0,"skipped":0,"totalRuns":1,"totalFeatures":1,"passed":1,"successRate":1.0,"time":84},"title":"","narrative":""},"liquibase.ext.bigquery.database.BigqueryDatabaseTest":{"executedFeatures":["checkSetup"],"ignoredFeatures":[],"stats":{"failures":0,"errors":0,"skipped":0,"totalRuns":1,"totalFeatures":1,"passed":1,"successRate":1.0,"time":4},"title":"","narrative":""},"liquibase.ext.bigquery.database.BigqueryDatabaseSpec":{"executedFeatures":["checkSetup"],"ignoredFeatures":[],"stats":{"failures":0,"errors":0,"skipped":0,"totalRuns":1,"totalFeatures":1,"passed":1,"successRate":1.0,"time":115},"title":"","narrative":""},"liquibase.ext.bigquery.database.BigqueryDatabaseTest":{"executedFeatures":["checkSetup"],"ignoredFeatures":[],"stats":{"failures":0,"errors":0,"skipped":0,"totalRuns":1,"totalFeatures":1,"passed":1,"successRate":1.0,"time":4},"title":"","narrative":""},"liquibase.ext.bigquery.database.BigqueryDatabaseSpec":{"executedFeatures":["checkSetup"],"ignoredFeatures":[],"stats":{"failures":0,"errors":0,"skipped":0,"totalRuns":1,"totalFeatures":1,"passed":1,"successRate":1.0,"time":167},"title":"","narrative":""}} \ No newline at end of file diff --git a/build/spock-reports/index.html b/build/spock-reports/index.html deleted file mode 100644 index 6ad3a1d7..00000000 --- a/build/spock-reports/index.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - -

Specification run results

-
-
-

Specifications summary:

-
Created on Tue Apr 09 16:07:16 EEST 2024 by okush
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TotalPassedFailedSkippedFt TotalFt PassedFt FailedFt SkippedSuccess rateTotal time
22002200100.0%0.171 seconds
-
-

Specifications:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameFeaturesIterationsFailedErrorsSkippedSuccess rateTime
-liquibase.ext.bigquery.database.BigqueryDatabaseSpec -11000100.0%0.167 seconds
-liquibase.ext.bigquery.database.BigqueryDatabaseTest -11000100.0%0.004 seconds
-
- - - \ No newline at end of file diff --git a/build/spock-reports/liquibase.ext.bigquery.database.BigqueryDatabaseSpec.html b/build/spock-reports/liquibase.ext.bigquery.database.BigqueryDatabaseSpec.html deleted file mode 100644 index fd4dd748..00000000 --- a/build/spock-reports/liquibase.ext.bigquery.database.BigqueryDatabaseSpec.html +++ /dev/null @@ -1,333 +0,0 @@ - - - - - - -

Report for liquibase.ext.bigquery.database.BigqueryDatabaseSpec

-
- -
-

Summary:

-
Created on Tue Apr 09 16:03:24 EEST 2024 by okush
- - - - - - - - - - - - - - - - - - - - - - - -
Executed featuresPassedFailuresErrorsSkippedSuccess rateTime
11000100.0%0.167 seconds
-
-

Features:

- ---- - - - - - - - - - - - - - - -
-
-checkSetup - -Return -
(0.114 seconds)
-
-
-
-
When:
-
-
----
-
-
Then:
-
-
----
-
-
- - - \ No newline at end of file diff --git a/build/spock-reports/liquibase.ext.bigquery.database.BigqueryDatabaseTest.html b/build/spock-reports/liquibase.ext.bigquery.database.BigqueryDatabaseTest.html deleted file mode 100644 index b818bbf9..00000000 --- a/build/spock-reports/liquibase.ext.bigquery.database.BigqueryDatabaseTest.html +++ /dev/null @@ -1,333 +0,0 @@ - - - - - - -

Report for liquibase.ext.bigquery.database.BigqueryDatabaseTest

-
- -
-

Summary:

-
Created on Tue Apr 09 14:50:31 EEST 2024 by okush
- - - - - - - - - - - - - - - - - - - - - - - -
Executed featuresPassedFailuresErrorsSkippedSuccess rateTime
11000100.0%0.004 seconds
-
-

Features:

- ---- - - - - - - - - - - - - - - -
-
-checkSetup - -Return -
(0.001 seconds)
-
-
-
-
When:
-
-
----
-
-
Then:
-
-
----
-
-
- - - \ No newline at end of file diff --git a/pom.xml b/pom.xml index 1eac5577..5150e40d 100644 --- a/pom.xml +++ b/pom.xml @@ -2,11 +2,11 @@ 4.0.0 - + org.liquibase.ext liquibase-bigquery @@ -18,6 +18,10 @@ 4.27.0 + 1.3-groovy-2.4 + 1.8.0 + 2.4.17 + 1.10.0 src/test/groovy @@ -49,53 +53,10 @@ - org.liquibase - liquibase-core - ${liquibase.version} - - - org.liquibase - liquibase-commercial - ${liquibase.version} - - - org.codehaus.groovy - groovy-all - 2.5.19 - pom - - - org.codehaus.groovy - groovy-testng - - - org.codehaus.groovy - groovy-swing - - - - - org.spockframework - spock-core - 1.3-groovy-2.5 - - - com.athaydes - spock-reports - 1.7.1 + junit + junit test - - - - * - * - - - - - org.liquibase - liquibase-test-harness - 1.0.9 + 4.13.2 com.simba.googlebigquery.jdbc @@ -119,6 +80,12 @@ google-http-client 1.43.3 + + org.spockframework + spock-core + ${spock-core.version} + test + com.google.api-client google-api-client-jackson2 @@ -142,31 +109,18 @@ maven-surefire-plugin + ${maven-surefire-plugin.version} + + + org.apache.maven.surefire + surefire-junit4 + 3.2.3 + + true plain - - - unit-tests - test - - test - - - - integration-tests - integration-test - - test - - - - **/*IT.java - - - - org.liquibase diff --git a/src/test/groovy/AdvancedHarnessSuiteIT.groovy b/src/test/groovy/AdvancedHarnessSuiteIT.groovy deleted file mode 100644 index e7317c73..00000000 --- a/src/test/groovy/AdvancedHarnessSuiteIT.groovy +++ /dev/null @@ -1,5 +0,0 @@ -import liquibase.harness.AdvancedHarnessSuite; - -public class AdvancedHarnessSuiteIT extends AdvancedHarnessSuite { -} - diff --git a/src/test/groovy/AdvancedHarnessSuiteSpec.groovy b/src/test/groovy/AdvancedHarnessSuiteSpec.groovy deleted file mode 100644 index 22db266b..00000000 --- a/src/test/groovy/AdvancedHarnessSuiteSpec.groovy +++ /dev/null @@ -1,5 +0,0 @@ -import liquibase.harness.AdvancedHarnessSuite; - -public class AdvancedHarnessSuiteSpec extends AdvancedHarnessSuite { -} - diff --git a/src/test/groovy/AdvancedHarnessSuiteTest.groovy b/src/test/groovy/AdvancedHarnessSuiteTest.groovy deleted file mode 100644 index 69de6e5b..00000000 --- a/src/test/groovy/AdvancedHarnessSuiteTest.groovy +++ /dev/null @@ -1,5 +0,0 @@ -import liquibase.harness.AdvancedHarnessSuite; - -public class AdvancedHarnessSuiteTest extends AdvancedHarnessSuite { -} - diff --git a/src/test/groovy/ContributedHarnessSuiteIT.groovy b/src/test/groovy/ContributedHarnessSuiteIT.groovy deleted file mode 100644 index 22ee568f..00000000 --- a/src/test/groovy/ContributedHarnessSuiteIT.groovy +++ /dev/null @@ -1,4 +0,0 @@ -import liquibase.harness.BaseHarnessSuite; - -public class ContributedHarnessSuiteIT extends BaseHarnessSuite { -} diff --git a/src/test/groovy/ContributedHarnessSuiteTest.groovy b/src/test/groovy/ContributedHarnessSuiteTest.groovy deleted file mode 100644 index 30361da9..00000000 --- a/src/test/groovy/ContributedHarnessSuiteTest.groovy +++ /dev/null @@ -1,4 +0,0 @@ -import liquibase.harness.BaseHarnessSuite; - -public class ContributedHarnessSuiteTest extends BaseHarnessSuite { -} diff --git a/src/test/groovy/FoundationalHarnessSuiteIT.groovy b/src/test/groovy/FoundationalHarnessSuiteIT.groovy deleted file mode 100644 index a4cd8b09..00000000 --- a/src/test/groovy/FoundationalHarnessSuiteIT.groovy +++ /dev/null @@ -1,4 +0,0 @@ -import liquibase.harness.FoundationalHarnessSuite; - -public class FoundationalHarnessSuiteIT extends FoundationalHarnessSuite { -} diff --git a/src/test/groovy/FoundationalHarnessSuiteTest.groovy b/src/test/groovy/FoundationalHarnessSuiteTest.groovy deleted file mode 100644 index de6e57ae..00000000 --- a/src/test/groovy/FoundationalHarnessSuiteTest.groovy +++ /dev/null @@ -1,4 +0,0 @@ -import liquibase.harness.FoundationalHarnessSuite; - -public class FoundationalHarnessSuiteTest extends FoundationalHarnessSuite { -} diff --git a/src/test/groovy/liquibase/ext/bigquery/AdvancedHarnessSuiteIT.groovy b/src/test/groovy/liquibase/ext/bigquery/AdvancedHarnessSuiteIT.groovy new file mode 100644 index 00000000..4dd285d2 --- /dev/null +++ b/src/test/groovy/liquibase/ext/bigquery/AdvancedHarnessSuiteIT.groovy @@ -0,0 +1,7 @@ +package liquibase.ext.bigquery + +import liquibase.harness.AdvancedHarnessSuite + +class AdvancedHarnessSuiteIT extends AdvancedHarnessSuite { +} + diff --git a/src/test/groovy/liquibase/ext/bigquery/ContributedHarnessSuiteIT.groovy b/src/test/groovy/liquibase/ext/bigquery/ContributedHarnessSuiteIT.groovy new file mode 100644 index 00000000..68fea1d4 --- /dev/null +++ b/src/test/groovy/liquibase/ext/bigquery/ContributedHarnessSuiteIT.groovy @@ -0,0 +1,6 @@ +package liquibase.ext.bigquery + +import liquibase.harness.BaseHarnessSuite + +class ContributedHarnessSuiteIT extends BaseHarnessSuite { +} diff --git a/src/test/groovy/liquibase/ext/bigquery/FoundationalHarnessSuiteIT.groovy b/src/test/groovy/liquibase/ext/bigquery/FoundationalHarnessSuiteIT.groovy new file mode 100644 index 00000000..029a09a2 --- /dev/null +++ b/src/test/groovy/liquibase/ext/bigquery/FoundationalHarnessSuiteIT.groovy @@ -0,0 +1,6 @@ +package liquibase.ext.bigquery + +import liquibase.harness.FoundationalHarnessSuite + +class FoundationalHarnessSuiteIT extends FoundationalHarnessSuite { +} diff --git a/src/test/groovy/liquibase/ext/bigquery/database/BigqueryDatabaseSpec.groovy b/src/test/groovy/liquibase/ext/bigquery/database/BigqueryDatabaseSpec.groovy deleted file mode 100644 index 3e9ad0d3..00000000 --- a/src/test/groovy/liquibase/ext/bigquery/database/BigqueryDatabaseSpec.groovy +++ /dev/null @@ -1,14 +0,0 @@ -package liquibase.ext.bigquery.database - -import spock.lang.Specification - -class BigqueryDatabaseSpec extends Specification { - - def checkSetup() { - when: - def db = new BigqueryDatabase() - - then: - db.getShortName() == "bigquery" - } -} diff --git a/src/test/java/liquibase/harness/ContributedHarnessSuiteIT.java b/src/test/java/liquibase/harness/ContributedHarnessSuiteIT.java deleted file mode 100644 index b34137d2..00000000 --- a/src/test/java/liquibase/harness/ContributedHarnessSuiteIT.java +++ /dev/null @@ -1,6 +0,0 @@ -package liquibase.harness; - -import liquibase.harness.BaseHarnessSuite; - -public class ContributedHarnessSuiteIT extends BaseHarnessSuite { -} diff --git a/src/test/java/liquibase/harness/FoundationalHarnessSuiteSpec.java b/src/test/java/liquibase/harness/FoundationalHarnessSuiteSpec.java deleted file mode 100644 index 7c71dc42..00000000 --- a/src/test/java/liquibase/harness/FoundationalHarnessSuiteSpec.java +++ /dev/null @@ -1,6 +0,0 @@ -package liquibase.harness; - -import liquibase.harness.change.ChangeObjectTests; - -public class FoundationalHarnessSuiteSpec extends ChangeObjectTests { -} diff --git a/src/test/java/liquibase/harness/FoundationalHarnessSuiteTest.java b/src/test/java/liquibase/harness/FoundationalHarnessSuiteTest.java deleted file mode 100644 index 711b8866..00000000 --- a/src/test/java/liquibase/harness/FoundationalHarnessSuiteTest.java +++ /dev/null @@ -1,6 +0,0 @@ -package liquibase.harness; - -import liquibase.harness.FoundationalHarnessSuite; - -public class FoundationalHarnessSuiteTest extends FoundationalHarnessSuite { -} diff --git a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/addColumn.sql b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/addColumn.sql index ecaaf412..2f6ae4a4 100644 --- a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/addColumn.sql +++ b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/addColumn.sql @@ -1,6 +1,6 @@ -ALTER TABLE oleh.authors ADD COLUMN varcharColumn STRING -ALTER TABLE oleh.authors ADD COLUMN intColumn INT64 -ALTER TABLE oleh.authors ADD COLUMN dateColumn date -UPDATE oleh.authors SET varcharColumn = 'INITIAL_VALUE' WHERE 1 = 1 -UPDATE oleh.authors SET intColumn = 5 WHERE 1 = 1 -UPDATE oleh.authors SET dateColumn = '2020-09-21' WHERE 1 = 1 \ No newline at end of file +ALTER TABLE harness_test_ds.authors ADD COLUMN varcharColumn STRING +ALTER TABLE harness_test_ds.authors ADD COLUMN intColumn INT64 +ALTER TABLE harness_test_ds.authors ADD COLUMN dateColumn date +UPDATE harness_test_ds.authors SET varcharColumn = 'INITIAL_VALUE' WHERE 1 = 1 +UPDATE harness_test_ds.authors SET intColumn = 5 WHERE 1 = 1 +UPDATE harness_test_ds.authors SET dateColumn = '2020-09-21' WHERE 1 = 1 \ No newline at end of file diff --git a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/addLookupTable.sql b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/addLookupTable.sql index 2ab42d72..015d7604 100644 --- a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/addLookupTable.sql +++ b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/addLookupTable.sql @@ -1,3 +1,3 @@ -CREATE TABLE oleh.authors_data AS SELECT DISTINCT email AS authors_email FROM oleh.authors WHERE email IS NOT NULL +CREATE TABLE harness_test_ds.authors_data AS SELECT DISTINCT email AS authors_email FROM harness_test_ds.authors WHERE email IS NOT NULL SELECT 1 SELECT 1 \ No newline at end of file diff --git a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/createTable.sql b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/createTable.sql index 71e72043..6a7679a3 100644 --- a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/createTable.sql +++ b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/createTable.sql @@ -1 +1 @@ -CREATE TABLE oleh.test_table (test_id INT, test_column STRING) \ No newline at end of file +CREATE TABLE harness_test_ds.test_table (test_id INT, test_column STRING) \ No newline at end of file diff --git a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/createTableDataTypeText.sql b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/createTableDataTypeText.sql index fa10c52c..3a24831d 100644 --- a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/createTableDataTypeText.sql +++ b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/createTableDataTypeText.sql @@ -1 +1 @@ -CREATE TABLE oleh.createTableDataTypeText (textCol STRING) \ No newline at end of file +CREATE TABLE harness_test_ds.createTableDataTypeText (textCol STRING) \ No newline at end of file diff --git a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/createTableTimestamp.sql b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/createTableTimestamp.sql index 70bb0abe..b93e05b5 100644 --- a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/createTableTimestamp.sql +++ b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/createTableTimestamp.sql @@ -1 +1 @@ -CREATE TABLE oleh.lms_create_table_test (lms_test_id INT, lms_test_timestamp timestamp) \ No newline at end of file +CREATE TABLE harness_test_ds.lms_create_table_test (lms_test_id INT, lms_test_timestamp timestamp) \ No newline at end of file diff --git a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/createView.sql b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/createView.sql index 67c31a53..1f4c4de0 100644 --- a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/createView.sql +++ b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/createView.sql @@ -1 +1 @@ -CREATE VIEW oleh.test_view AS select id, first_name, last_name, email from authors \ No newline at end of file +CREATE VIEW harness_test_ds.test_view AS select id, first_name, last_name, email from authors \ No newline at end of file diff --git a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropColumn.sql b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropColumn.sql index f9a97ba2..19648a29 100644 --- a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropColumn.sql +++ b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropColumn.sql @@ -1,2 +1,2 @@ -ALTER TABLE oleh.posts ADD COLUMN varcharColumn STRING(25) -ALTER TABLE oleh.posts DROP COLUMN varcharColumn \ No newline at end of file +ALTER TABLE harness_test_ds.posts ADD COLUMN varcharColumn STRING(25) +ALTER TABLE harness_test_ds.posts DROP COLUMN varcharColumn \ No newline at end of file diff --git a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropProcedure.sql b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropProcedure.sql index c5d1acf5..65d964ca 100644 --- a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropProcedure.sql +++ b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropProcedure.sql @@ -1,4 +1,4 @@ CREATE PROCEDURE test_procedure() BEGIN END -DROP PROCEDURE oleh.test_procedure \ No newline at end of file +DROP PROCEDURE harness_test_ds.test_procedure \ No newline at end of file diff --git a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropTable.sql b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropTable.sql index 0d3cfc7c..eb46bbd4 100644 --- a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropTable.sql +++ b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropTable.sql @@ -1,2 +1,2 @@ -CREATE TABLE oleh.test_table (test_id INT, test_column STRING) -DROP TABLE oleh.test_table \ No newline at end of file +CREATE TABLE harness_test_ds.test_table (test_id INT, test_column STRING) +DROP TABLE harness_test_ds.test_table \ No newline at end of file diff --git a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropView.sql b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropView.sql index 42b389b2..80b96ca9 100644 --- a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropView.sql +++ b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/dropView.sql @@ -1,2 +1,2 @@ -CREATE VIEW oleh.test_view AS select id, first_name, last_name, email from authors -DROP VIEW oleh.test_view \ No newline at end of file +CREATE VIEW harness_test_ds.test_view AS select id, first_name, last_name, email from authors +DROP VIEW harness_test_ds.test_view \ No newline at end of file diff --git a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/mergeColumns.sql b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/mergeColumns.sql index 23c7797f..5fff1936 100644 --- a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/mergeColumns.sql +++ b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/mergeColumns.sql @@ -1,9 +1,9 @@ -CREATE TABLE oleh.full_name_table (first_name STRING(50), last_name STRING(50)) -INSERT INTO oleh.full_name_table (first_name) VALUES ('John') -UPDATE oleh.full_name_table SET last_name = 'Doe' WHERE first_name='John' -INSERT INTO oleh.full_name_table (first_name) VALUES ('Jane') -UPDATE oleh.full_name_table SET last_name = 'Doe' WHERE first_name='Jane' -ALTER TABLE oleh.full_name_table ADD COLUMN full_name STRING(255) -UPDATE oleh.full_name_table SET full_name = first_name || ' ' || last_name WHERE 1 = 1 -ALTER TABLE oleh.full_name_table DROP COLUMN first_name -ALTER TABLE oleh.full_name_table DROP COLUMN last_name \ No newline at end of file +CREATE TABLE harness_test_ds.full_name_table (first_name STRING(50), last_name STRING(50)) +INSERT INTO harness_test_ds.full_name_table (first_name) VALUES ('John') +UPDATE harness_test_ds.full_name_table SET last_name = 'Doe' WHERE first_name='John' +INSERT INTO harness_test_ds.full_name_table (first_name) VALUES ('Jane') +UPDATE harness_test_ds.full_name_table SET last_name = 'Doe' WHERE first_name='Jane' +ALTER TABLE harness_test_ds.full_name_table ADD COLUMN full_name STRING(255) +UPDATE harness_test_ds.full_name_table SET full_name = first_name || ' ' || last_name WHERE 1 = 1 +ALTER TABLE harness_test_ds.full_name_table DROP COLUMN first_name +ALTER TABLE harness_test_ds.full_name_table DROP COLUMN last_name \ No newline at end of file diff --git a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/modifyDataType.sql b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/modifyDataType.sql index c88c82a3..e690a723 100644 --- a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/modifyDataType.sql +++ b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/modifyDataType.sql @@ -1,2 +1,2 @@ -CREATE TABLE oleh.modify_data_type_test (intColumn INT, dateColumn date) -ALTER TABLE oleh.modify_data_type_test ALTER COLUMN intColumn SET DATA TYPE NUMERIC \ No newline at end of file +CREATE TABLE harness_test_ds.modify_data_type_test (intColumn INT, dateColumn date) +ALTER TABLE harness_test_ds.modify_data_type_test ALTER COLUMN intColumn SET DATA TYPE NUMERIC \ No newline at end of file diff --git a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/modifySql.sql b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/modifySql.sql index b7915ac0..02f1f61d 100644 --- a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/modifySql.sql +++ b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/modifySql.sql @@ -1 +1 @@ -/* prepend comment */ CREATE TABLE oleh.test_table (test_id INT, test_column STRING) -- append comment \ No newline at end of file +/* prepend comment */ CREATE TABLE harness_test_ds.test_table (test_id INT, test_column STRING) -- append comment \ No newline at end of file diff --git a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/renameColumn.sql b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/renameColumn.sql index adeffa6c..a507a5bd 100644 --- a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/renameColumn.sql +++ b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/renameColumn.sql @@ -1 +1 @@ -ALTER TABLE oleh.authors RENAME COLUMN first_name TO first_name_renameColumn_test \ No newline at end of file +ALTER TABLE harness_test_ds.authors RENAME COLUMN first_name TO first_name_renameColumn_test \ No newline at end of file diff --git a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/renameTable.sql b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/renameTable.sql index d1e60a61..49d7e6db 100644 --- a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/renameTable.sql +++ b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/renameTable.sql @@ -1,2 +1,2 @@ -CREATE TABLE oleh.oldnametable (test_id INT, test_column STRING) -ALTER TABLE oleh.oldnametable RENAME TO newnametable \ No newline at end of file +CREATE TABLE harness_test_ds.oldnametable (test_id INT, test_column STRING) +ALTER TABLE harness_test_ds.oldnametable RENAME TO newnametable \ No newline at end of file diff --git a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/sql.sql b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/sql.sql index 7dc411e5..e4b3a0e6 100644 --- a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/sql.sql +++ b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/sql.sql @@ -1,4 +1,4 @@ -CREATE TABLE oleh.sqltest (id INT) +CREATE TABLE harness_test_ds.sqltest (id INT) insert into sqltest (id) values (1) insert into sqltest (id) values (2) insert into sqltest (id) values (3) \ No newline at end of file diff --git a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/sqlFile.sql b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/sqlFile.sql index 7dc411e5..e4b3a0e6 100644 --- a/src/test/resources/liquibase/harness/change/expectedSql/bigquery/sqlFile.sql +++ b/src/test/resources/liquibase/harness/change/expectedSql/bigquery/sqlFile.sql @@ -1,4 +1,4 @@ -CREATE TABLE oleh.sqltest (id INT) +CREATE TABLE harness_test_ds.sqltest (id INT) insert into sqltest (id) values (1) insert into sqltest (id) values (2) insert into sqltest (id) values (3) \ No newline at end of file diff --git a/src/test/resources/liquibase/harness/data/expectedSql/bigquery/delete.sql b/src/test/resources/liquibase/harness/data/expectedSql/bigquery/delete.sql index eefbc481..862b17a4 100644 --- a/src/test/resources/liquibase/harness/data/expectedSql/bigquery/delete.sql +++ b/src/test/resources/liquibase/harness/data/expectedSql/bigquery/delete.sql @@ -1,2 +1,2 @@ -INSERT INTO oleh.posts (id, author_id, title, description, content, inserted_date) VALUES (100, 6, 'value', 'value', 'value', '2006-10-09') -DELETE FROM oleh.posts WHERE id=100 \ No newline at end of file +INSERT INTO harness_test_ds.posts (id, author_id, title, description, content, inserted_date) VALUES (100, 6, 'value', 'value', 'value', '2006-10-09') +DELETE FROM harness_test_ds.posts WHERE id=100 \ No newline at end of file diff --git a/src/test/resources/liquibase/harness/data/expectedSql/bigquery/insert.sql b/src/test/resources/liquibase/harness/data/expectedSql/bigquery/insert.sql index 87e57337..329c1de4 100644 --- a/src/test/resources/liquibase/harness/data/expectedSql/bigquery/insert.sql +++ b/src/test/resources/liquibase/harness/data/expectedSql/bigquery/insert.sql @@ -1 +1 @@ -INSERT INTO oleh.posts (id, author_id, title, description, content, inserted_date) VALUES (100, 6, 'value', 'value', 'value', '2006-10-09') \ No newline at end of file +INSERT INTO harness_test_ds.posts (id, author_id, title, description, content, inserted_date) VALUES (100, 6, 'value', 'value', 'value', '2006-10-09') \ No newline at end of file diff --git a/src/test/resources/liquibase/harness/data/expectedSql/bigquery/loadData.sql b/src/test/resources/liquibase/harness/data/expectedSql/bigquery/loadData.sql index 728728e9..c9065634 100644 --- a/src/test/resources/liquibase/harness/data/expectedSql/bigquery/loadData.sql +++ b/src/test/resources/liquibase/harness/data/expectedSql/bigquery/loadData.sql @@ -1,3 +1,3 @@ -INSERT INTO oleh.posts (id, author_id, title, description, content, inserted_date) VALUES (6, 1, 'Title1', 'test1@example.com', 'Content1', '2000-01-01') -INSERT INTO oleh.posts (id, author_id, title, description, content, inserted_date) VALUES (7, 2, 'Title2', 'test2@example.com', 'Content2', '2000-01-01') -INSERT INTO oleh.posts (id, author_id, title, description, content, inserted_date) VALUES (8, 3, 'Title3', 'test3@example.com', 'Content3', '2000-01-01') \ No newline at end of file +INSERT INTO harness_test_ds.posts (id, author_id, title, description, content, inserted_date) VALUES (6, 1, 'Title1', 'test1@example.com', 'Content1', '2000-01-01') +INSERT INTO harness_test_ds.posts (id, author_id, title, description, content, inserted_date) VALUES (7, 2, 'Title2', 'test2@example.com', 'Content2', '2000-01-01') +INSERT INTO harness_test_ds.posts (id, author_id, title, description, content, inserted_date) VALUES (8, 3, 'Title3', 'test3@example.com', 'Content3', '2000-01-01') \ No newline at end of file