Skip to content

Commit

Permalink
DAT-16963. added mariadb 11.4 support (#977)
Browse files Browse the repository at this point in the history
* DAT-16963. added mariadb 11.4 support

* DAT-16963. added test data for the mariadb 11.4

* DAT-16963. refactored test data for the mariadb 11.4
  • Loading branch information
PavloTytarchuk authored Jan 24, 2025
1 parent 45d261c commit e64baa2
Show file tree
Hide file tree
Showing 9 changed files with 68 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/advanced.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:
description: Databases to start up. Comma separated list of "name"
required: true
default: "[\"mysql-5.6\",\"mysql-5.7\",\"mysql-8\",\"mysql-8.4\",\"postgres-12\",\"postgres-13\",\"postgres-14\",\"postgres-15\",\"postgres-16\",\"postgres-17\",\"mariadb-10.2\",\"mariadb-10.3\",\"mariadb-10.4\",\"mariadb-10.5\",\"mariadb-10.6\",
\"mariadb-10.7\",\"mssql-2017\",\"mssql-2019\",\"mssql-2022\",\"crdb-23.1\",\"crdb-23.2\",\"crdb-24.1\",\"percona-xtradb-cluster-5.7\",\"percona-xtradb-cluster-8.0\",
\"mariadb-10.7\",\"mariadb-11.4\",\"mssql-2017\",\"mssql-2019\",\"mssql-2022\",\"crdb-23.1\",\"crdb-23.2\",\"crdb-24.1\",\"percona-xtradb-cluster-5.7\",\"percona-xtradb-cluster-8.0\",
\"edb-edb-12\",\"edb-edb-13\",\"edb-edb-14\",\"edb-edb-15\",\"edb-edb-16\",\"db2-luw\",\"H2Database-2.2\",\"sqlite\",\"derby\",
\"firebird-3\",\"firebird-4\",\"hsqldb-2.4\",\"hsqldb-2.5\",\"diff\",\"tidb\"]"

Expand All @@ -51,7 +51,7 @@ jobs:
liquibaseRepo: ${{ steps.configure-build.outputs.liquibaseRepo }}
databases: ${{ github.event.inputs.databases || '["mysql-5.6","mysql-5.7","mysql-8","mysql-8.4",
"postgres-12","postgres-13","postgres-14","postgres-15","postgres-16","postgres-17","mariadb-10.2","mariadb-10.3","mariadb-10.4","mariadb-10.5","mariadb-10.6",
"mariadb-10.7","mssql-2017","mssql-2019","mssql-2022","crdb-23.1","crdb-23.2","crdb-24.1","percona-xtradb-cluster-5.7","percona-xtradb-cluster-8.0",
"mariadb-10.7","mariadb-11.4","mssql-2017","mssql-2019","mssql-2022","crdb-23.1","crdb-23.2","crdb-24.1","percona-xtradb-cluster-5.7","percona-xtradb-cluster-8.0",
"edb-edb-12","edb-edb-13","edb-edb-14","edb-edb-15","edb-edb-16","db2-luw","H2Database-2.2","sqlite","derby","firebird-3","firebird-4",
"hsqldb-2.4","hsqldb-2.5","diff","tidb"]' }}
testClasses: ${{ 'AdvancedHarnessSuiteTest' }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ on:
"mariadb-10.5",
"mariadb-10.6",
"mariadb-10.7",
"mariadb-11.4",
"mssql-2017",
"mssql-2019",
"mssql-2022",
Expand Down Expand Up @@ -122,7 +123,7 @@ jobs:
liquibaseSha: ${{ steps.configure-build.outputs.liquibaseSha }}
databases: ${{ github.event.inputs.databases || '["mysql-5.6","mysql-5.7","mysql-8","mysql-8.4","percona-xtradb-cluster-5.7","percona-xtradb-cluster-8.0","percona-xtradb-cluster-8.4",
"postgres-12","postgres-13","postgres-14","postgres-15","postgres-16","postgres-17","mariadb-10.2","mariadb-10.3","mariadb-10.4","mariadb-10.5","mariadb-10.6",
"mariadb-10.7","mssql-2017","mssql-2019","mssql-2022","H2Database-2.2","crdb-23.1","crdb-23.2","crdb-24.1",
"mariadb-10.7","mariadb-11.4","mssql-2017","mssql-2019","mssql-2022","H2Database-2.2","crdb-23.1","crdb-23.2","crdb-24.1",
"edb-postgres-12","edb-postgres-13","edb-postgres-14","edb-postgres-15","edb-postgres-16",
"edb-edb-12","edb-edb-13","edb-edb-14","edb-edb-15","edb-edb-16","derby","sqlite","hsqldb-2.4","hsqldb-2.5","firebird-3","firebird-4","db2-luw","informix-12.10","informix-14.10","tidb"]' }}
testClasses: ${{ inputs.testClasses || 'LiquibaseHarnessSuiteTest' }}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"snapshot": {
"objects": {
"com.datical.liquibase.ext.storedlogic.function.Function": [
{
"function": {
"body": "CREATE FUNCTION `test_function`() RETURNS varchar(20) CHARSET utf8mb4 COLLATE utf8mb4_uca1400_ai_ci\nBEGIN\n RETURN 'Hello';\n END",
"name": "test_function"
}
}]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"snapshot": {
"objects": {
"com.datical.liquibase.ext.storedlogic.function.Function": [
{
"function": {
"body": "CREATE FUNCTION `test_function`() RETURNS varchar(20) CHARSET utf8mb4 COLLATE utf8mb4_uca1400_ai_ci\nBEGIN\n RETURN 'Hello';\n END",
"name": "test_function"
}
}]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"snapshot": {
"objects": {
"com.datical.liquibase.ext.storedlogic.function.Function": [
{
"function": {
"body": "CREATE FUNCTION `test_function`() RETURNS varchar(20) CHARSET utf8mb4 COLLATE utf8mb4_uca1400_ai_ci\nBEGIN\n RETURN 'Hello';\n END",
"name": "test_function"
}
}]
}
}
}
3 changes: 3 additions & 0 deletions src/test/resources/automation-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ case $db in
"mariadb-10.7" )
test_command mvn -ntp -Dtest=$tc -DdbName=mariadb -DdbVersion=10.7 test
;;
"mariadb-11.4" )
test_command mvn -ntp -Dtest=$tc -DdbName=mariadb -DdbVersion=11.4 test
;;
"mssql-2017" )
test_command mvn -ntp -Dtest=$tc -DdbName=mssql -DdbVersion=2017 test
;;
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/docker/create-infra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ case $db in
;;

"diff")
docker compose up -d postgres-17 postgres-16 postgres-15 postgres-14 postgres-13 postgres-12 mysql-5.7 mysql-8 mysql-8.4 mariadb-10.2 mariadb-10.3 mariadb-10.4 mariadb-10.5 mariadb-10.6 mariadb-10.7 mssql-2017 mssql-2019 mssql-2022
docker compose up -d postgres-17 postgres-16 postgres-15 postgres-14 postgres-13 postgres-12 mysql-5.7 mysql-8 mysql-8.4 mariadb-10.2 mariadb-10.3 mariadb-10.4 mariadb-10.5 mariadb-10.6 mariadb-10.7 mariadb-11.4 mssql-2017 mssql-2019 mssql-2022
sleep 40
docker ps -a
;;
Expand Down
14 changes: 14 additions & 0 deletions src/test/resources/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,20 @@ services:
volumes:
- "./mariadb-init.sql:/docker-entrypoint-initdb.d/mariadb-init.sql"

mariadb-11.4:
image: mariadb:11.4
ports:
- "33073:3306"
restart: always
environment:
MYSQL_ROOT_PASSWORD: LbRootPass1
MYSQL_DATABASE: lbcat
MYSQL_USER: lbuser
MYSQL_PASSWORD: LiquibasePass1
volumes:
- "./mariadb-init.sql:/docker-entrypoint-initdb.d/mariadb-init.sql"


mssql-2017:
container_name: sql-server-db-2017
image: mcr.microsoft.com/mssql/server:2017-latest
Expand Down
7 changes: 7 additions & 0 deletions src/test/resources/harness-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ databasesUnderTest:
username: lbuser
password: LiquibasePass1

- name: mariadb
prefix: docker
version: 11.4
url: jdbc:mariadb://localhost:33073/lbcat
username: lbuser
password: LiquibasePass1

- name: oracle
version: 18.4.0
url: 'jdbc:oracle:thin:@localhost:1522/xe'
Expand Down

0 comments on commit e64baa2

Please sign in to comment.