Skip to content

Commit

Permalink
DAT-18891. added postgres 17 on prem support
Browse files Browse the repository at this point in the history
  • Loading branch information
PavloTytarchuk committed Jan 8, 2025
1 parent 356b86a commit f8f95fa
Show file tree
Hide file tree
Showing 8 changed files with 45 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 @@ -25,7 +25,7 @@ on:
databases:
description: Databases to start up. Comma separated list of "name"
required: true
default: "[\"mysql-5.6\",\"mysql-5.7\",\"mysql-8\",\"postgres-12\",\"postgres-13\",\"postgres-14\",\"postgres-15\",\"postgres-16\",\"mariadb-10.2\",\"mariadb-10.3\",\"mariadb-10.4\",\"mariadb-10.5\",\"mariadb-10.6\",
default: "[\"mysql-5.6\",\"mysql-5.7\",\"mysql-8\",\"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\",
\"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\"]"
Expand All @@ -50,7 +50,7 @@ jobs:
liquibaseBranch: ${{ steps.configure-build.outputs.liquibaseBranch }}
liquibaseRepo: ${{ steps.configure-build.outputs.liquibaseRepo }}
databases: ${{ github.event.inputs.databases || '["mysql-5.6","mysql-5.7","mysql-8",
"postgres-12","postgres-13","postgres-14","postgres-15","postgres-16","mariadb-10.2","mariadb-10.3","mariadb-10.4","mariadb-10.5","mariadb-10.6",
"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",
"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"]' }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ on:
"postgres-14",
"postgres-15",
"postgres-16",
"postgres-17",
"mariadb-10.2",
"mariadb-10.3",
"mariadb-10.4",
Expand Down Expand Up @@ -118,7 +119,7 @@ jobs:
liquibaseRepo: ${{ steps.configure-build.outputs.liquibaseRepo }}
liquibaseSha: ${{ steps.configure-build.outputs.liquibaseSha }}
databases: ${{ github.event.inputs.databases || '["mysql-5.6","mysql-5.7","mysql-8","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","mariadb-10.2","mariadb-10.3","mariadb-10.4","mariadb-10.5","mariadb-10.6",
"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",
"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"]' }}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"snapshot": {
"objects": {
"liquibase.structure.core.View": [
{
"view": {
"definition": "SELECT id,\n first_name,\n last_name,\n email\n FROM authors;",
"name": "test_view"
}
}]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CREATE VIEW "test_view" AS SELECT id,
first_name,
last_name,
email
FROM authors;

3 changes: 3 additions & 0 deletions src/test/resources/automation-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ case $db in
"postgres-16" )
test_command mvn -ntp -Dtest=$tc -DdbName=postgresql -DdbVersion=16 test
;;
"postgres-17" )
test_command mvn -ntp -Dtest=$tc -DdbName=postgresql -DdbVersion=17 test
;;
"mariadb-10.2" )
test_command mvn -ntp -Dtest=$tc -DdbName=mariadb -DdbVersion=10.2 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-16 postgres-15 postgres-14 postgres-13 postgres-12 mysql-5.7 mysql-8 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 mariadb-10.2 mariadb-10.3 mariadb-10.4 mariadb-10.5 mariadb-10.6 mariadb-10.7 mssql-2017 mssql-2019 mssql-2022
sleep 40
docker ps -a
;;
Expand Down
11 changes: 11 additions & 0 deletions src/test/resources/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,17 @@ services:
volumes:
- "./postgres-init.sh:/docker-entrypoint-initdb.d/postgres-init.sh"

postgres-17:
image: postgres:17
ports:
- "5441:5432"
restart: always
environment:
POSTGRES_PASSWORD: LbRootPass1
POSTGRES_DB: lbcat
volumes:
- "./postgres-init.sh:/docker-entrypoint-initdb.d/postgres-init.sh"

mariadb-10.2:
image: mariadb:10.2
ports:
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 @@ -2,6 +2,13 @@ inputFormat: xml
context: testContext

databasesUnderTest:
- name: postgresql
prefix: docker
version: 17
url: jdbc:postgresql://localhost:5441/lbcat
username: lbuser
password: LiquibasePass1

- name: postgresql
prefix: docker
version: 16
Expand Down

0 comments on commit f8f95fa

Please sign in to comment.