Skip to content

Commit

Permalink
Added support for Test-harness FoundationalCompatibility (#110)
Browse files Browse the repository at this point in the history
* 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
AlexanderSashchenko and filipelautert authored Oct 4, 2023
1 parent b9f2a62 commit b12e8f5
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.skyscreamer</groupId>
<artifactId>jsonassert</artifactId>
<version>1.5.1</version>
</dependency>
<dependency>
<groupId>com.athaydes</groupId>
<artifactId>spock-reports</artifactId>
Expand Down Expand Up @@ -284,4 +289,4 @@
</plugins>

</build>
</project>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import liquibase.harness.FoundationalHarnessSuite

class LiquibaseHarnessFoundationalCompatibilitySuite extends FoundationalHarnessSuite {
}
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": ""
}
]
}
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>

0 comments on commit b12e8f5

Please sign in to comment.