-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for Test-harness FoundationalCompatibility (#110)
* Added support for Test-harness FoundationalCompatibility (Basic+Foundational) * added test-harness resources files * changed test-harness version to 1.0.8 (future release) * fix pom * fix pom * Fix renamed import * Removes json dependency --------- Co-authored-by: filipe <[email protected]>
- Loading branch information
1 parent
b9f2a62
commit b12e8f5
Showing
4 changed files
with
133 additions
and
1 deletion.
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
4 changes: 4 additions & 0 deletions
4
src/test/groovy/LiquibaseHarnessFoundationalCompatibilitySuite.groovy
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,4 @@ | ||
import liquibase.harness.FoundationalHarnessSuite | ||
|
||
class LiquibaseHarnessFoundationalCompatibilitySuite extends FoundationalHarnessSuite { | ||
} |
52 changes: 52 additions & 0 deletions
52
...sources/liquibase/harness/compatibility/basic/expectedResultSet/redshift/createTable.json
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,52 @@ | ||
{ | ||
"createTable": [ | ||
{ | ||
"comments": "test_comment", | ||
"author": "as", | ||
"description": "sql", | ||
"contexts": "test_context", | ||
"exectype": "EXECUTED", | ||
"labels": "test_label", | ||
"filename": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.xml", | ||
"md5sum": "8:4e697074d57029d3e267ce7507da5cf5", | ||
"id": "1", | ||
"tag": "" | ||
}, | ||
{ | ||
"comments": "test_comment", | ||
"author": "as", | ||
"description": "createTable tableName=test_table_yaml", | ||
"contexts": "test_context", | ||
"exectype": "EXECUTED", | ||
"labels": "test_label", | ||
"filename": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.yml", | ||
"md5sum": "8:13bf5dadad410884e263691bc66ee760", | ||
"id": "1", | ||
"tag": "" | ||
}, | ||
{ | ||
"comments": "test_comment", | ||
"author": "as", | ||
"description": "sql", | ||
"contexts": "test_context", | ||
"exectype": "EXECUTED", | ||
"labels": "test_label", | ||
"filename": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.sql", | ||
"md5sum": "8:3e89383340c9b7c69e4902c53534b7ac", | ||
"id": "1", | ||
"tag": "test_tag" | ||
}, | ||
{ | ||
"comments": "test_comment", | ||
"author": "as", | ||
"description": "createTable tableName=test_table_json", | ||
"contexts": "test_context", | ||
"exectype": "EXECUTED", | ||
"labels": "test_label", | ||
"filename": "liquibase\/harness\/compatibility\/basic\/changelogs\/createTable.json", | ||
"md5sum": "8:b9ab89365e024967a1da5704f0441428", | ||
"id": "1", | ||
"tag": "" | ||
} | ||
] | ||
} |
71 changes: 71 additions & 0 deletions
71
...est/resources/liquibase/harness/compatibility/foundational/setup.redshift/createTable.xml
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,71 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<databaseChangeLog | ||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd"> | ||
<!--Using specific changeset for Redshift with NUMERIC naming for integer types because Redshift interprets Liquibase INT as SERIAL datatype which it doesn't support--> | ||
<changeSet id="1" author="as" labels="foundational"> | ||
<createTable tableName="foundational_test_table"> | ||
<column name="id" type="NUMERIC" autoIncrement="true"> | ||
<constraints primaryKey="true"/> | ||
</column> | ||
<column name="test_1" type="INT"/> | ||
<column name="test_2" type="INT"/> | ||
<column name="test_3" type="INT"/> | ||
<column name="test_4" type="INT"/> | ||
<column name="test_5" type="INT"/> | ||
<column name="test_6" type="INT"/> | ||
<column name="test_7" type="INT"/> | ||
<column name="test_8" type="INT"/> | ||
<column name="test_9" type="INT"/> | ||
<column name="test_10" type="INT"/> | ||
<column name="test_11" type="INT"/> | ||
<column name="test_12" type="INT"/> | ||
<column name="test_13" type="INT"/> | ||
<column name="test_14" type="INT"/> | ||
<column name="test_15" type="INT"/> | ||
<column name="test_16" type="INT"/> | ||
<column name="test_17" type="INT"/> | ||
<column name="test_18" type="INT"/> | ||
<column name="test_19" type="INT"/> | ||
<column name="test_20" type="INT"/> | ||
<column name="test_21" type="INT"/> | ||
<column name="test_22" type="INT"/> | ||
<column name="test_23" type="INT"/> | ||
<column name="test_24" type="INT"/> | ||
<column name="test_25" type="INT"/> | ||
<column name="test_26" type="INT"/> | ||
<column name="test_27" type="INT"/> | ||
<column name="test_28" type="INT"/> | ||
<column name="test_29" type="INT"/> | ||
<column name="test_30" type="INT"/> | ||
<column name="test_31" type="INT"/> | ||
<column name="test_32" type="INT"/> | ||
<column name="test_33" type="INT"/> | ||
<column name="test_34" type="INT"/> | ||
<column name="test_35" type="INT"/> | ||
<column name="test_36" type="INT"/> | ||
<column name="test_37" type="INT"/> | ||
<column name="test_38" type="INT"/> | ||
<column name="test_39" type="INT"/> | ||
<column name="test_40" type="INT"/> | ||
<column name="test_41" type="INT"/> | ||
<column name="test_42" type="INT"/> | ||
<column name="test_43" type="INT"/> | ||
<column name="test_44" type="INT"/> | ||
<column name="test_45" type="INT"/> | ||
<column name="test_46" type="INT"/> | ||
<column name="test_47" type="INT"/> | ||
<column name="test_48" type="INT"/> | ||
<column name="test_49" type="INT"/> | ||
<column name="test_50" type="INT"/> | ||
</createTable> | ||
<rollback> | ||
<dropTable tableName="foundational_test_table"/> | ||
<delete tableName="DATABASECHANGELOG"> | ||
<where>labels='foundational'</where> | ||
</delete> | ||
</rollback> | ||
</changeSet> | ||
</databaseChangeLog> |