Skip to content

Commit b8a772b

Browse files
authored
Add testing against PG 17 (#750)
1 parent 0548a07 commit b8a772b

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ Our AZP CI includes testing with the following docker images / PostgreSQL versio
112112
| RHEL 8 | 2.7.5 | 10 |
113113
| Fedora 37 | 2.9.6 | 14 |
114114
| Fedora 39 | 2.9.6 | 15 |
115-
| Ubuntu 22.04 | 3.1.9 | 15 |
115+
| Ubuntu 22.04 | 3.1.9 | 16 |
116116
| Fedora 40 | 2.9.9 | 16 |
117-
| Ubuntu 24.04 | 3.2.2 | 16 |
117+
| Ubuntu 24.04 | 3.2.2 | 17 |
118118

119119
## Included content
120120

tests/integration/targets/postgresql_db/tasks/postgresql_db_initial.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,20 @@
171171

172172
- block:
173173

174+
- name: Set a column name depending for PG < 17
175+
when: postgres_version_resp.stdout is version('17.0', '<')
176+
set_fact:
177+
datlocale: daticulocale
178+
179+
- name: Set a column name depending for PG >= 17
180+
when: postgres_version_resp.stdout is version('17.0', '>=')
181+
set_fact:
182+
datlocale: datlocale
183+
174184
- name: Check that the DB has all of our options including icu
175185
become_user: "{{ pg_user }}"
176186
become: true
177-
shell: echo "select datname, datconnlimit, pg_encoding_to_char(encoding), datcollate, datctype, daticulocale, CASE datlocprovider WHEN 'i' THEN 'lib_icu' WHEN 'c' THEN 'libc' END AS localeprovider from pg_database where datname = '{{ db_name_icu }}';" | psql -d postgres
187+
shell: echo "select datname, datconnlimit, pg_encoding_to_char(encoding), datcollate, datctype, {{ datlocale }}, CASE datlocprovider WHEN 'i' THEN 'lib_icu' WHEN 'c' THEN 'libc' END AS localeprovider from pg_database where datname = '{{ db_name_icu }}';" | psql -d postgres
178188
register: result
179189

180190
- assert:

tests/integration/targets/setup_postgresql_db/vars/Ubuntu-22-py3.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pg_ver: 15
1+
pg_ver: 16
22

33
postgresql_packages:
44
- "apt-utils"

tests/integration/targets/setup_postgresql_db/vars/Ubuntu-24-py3.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pg_ver: 16
1+
pg_ver: 17
22

33
postgresql_packages:
44
- "apt-utils"

0 commit comments

Comments
 (0)