diff --git a/.github/workflows/advanced.yml b/.github/workflows/advanced.yml index 2831543bd..7540cda66 100644 --- a/.github/workflows/advanced.yml +++ b/.github/workflows/advanced.yml @@ -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\"]" @@ -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"]' }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6438f4d28..d1a5b975b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -65,6 +65,7 @@ on: "postgres-14", "postgres-15", "postgres-16", + "postgres-17", "mariadb-10.2", "mariadb-10.3", "mariadb-10.4", @@ -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"]' }} diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/17/createView.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/17/createView.json new file mode 100644 index 000000000..96d8eeaf0 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSnapshot/postgresql/17/createView.json @@ -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" + } + }] + } + } +} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/17/createView.sql b/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/17/createView.sql new file mode 100644 index 000000000..fd944385d --- /dev/null +++ b/src/main/resources/liquibase/harness/generateChangelog/expectedSql/postgresql/17/createView.sql @@ -0,0 +1,6 @@ +CREATE VIEW "test_view" AS SELECT id, + first_name, + last_name, + email + FROM authors; + diff --git a/src/test/resources/automation-runner.sh b/src/test/resources/automation-runner.sh index 2a80ab32e..a50c432a2 100755 --- a/src/test/resources/automation-runner.sh +++ b/src/test/resources/automation-runner.sh @@ -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 ;; diff --git a/src/test/resources/docker/create-infra.sh b/src/test/resources/docker/create-infra.sh index 6de0abb8e..d438dfc66 100755 --- a/src/test/resources/docker/create-infra.sh +++ b/src/test/resources/docker/create-infra.sh @@ -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 ;; diff --git a/src/test/resources/docker/docker-compose.yml b/src/test/resources/docker/docker-compose.yml index 12bf00e07..96c231cc4 100644 --- a/src/test/resources/docker/docker-compose.yml +++ b/src/test/resources/docker/docker-compose.yml @@ -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: diff --git a/src/test/resources/harness-config.yml b/src/test/resources/harness-config.yml index 3575428bc..3e6b0632d 100644 --- a/src/test/resources/harness-config.yml +++ b/src/test/resources/harness-config.yml @@ -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