summaryrefslogtreecommitdiff
path: root/gnu/tests
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-10-02 19:15:44 +0100
committerChristopher Baines <mail@cbaines.net>2020-10-20 22:39:43 +0100
commitbdcf4d88d58798eca7811c8b1fbd4638168d05c3 (patch)
tree97ba20551cd0737ed31d0f940b34508b2364850d /gnu/tests
parent21b712acc73f6a0a8f9d44ae32438539b78b3db6 (diff)
services: databases: Don't specify a default postgresql version.
Currently, if the postgresql package major version changes, this is going to break the service upon upgrade, because PostgreSQL will reject the data files from the differing major version of the service. Because it's important to either keep running a particular major version, or intentionally upgrade, I think the configuration would be better with no default. I think this is also going to be helpful when trying to assist users upgrading PostgreSQL. * gnu/services/databases.scm (<postgresql-configuration>): Remove default for postgresql. (postgresql-service-type): Remove the default value. * gnu/tests/databases.scm (%postgresql-os): Update accordingly. * gnu/tests/guix.scm (%guix-data-service-os): Update accordingly. * gnu/tests/monitoring.scm (%zabbix-os): Update accordingly. * gnu/tests/web.scm (patchwork-os): Update accordingly. * doc/guix.texi (PostgreSQL): Update accordingly.
Diffstat (limited to 'gnu/tests')
-rw-r--r--gnu/tests/databases.scm4
-rw-r--r--gnu/tests/guix.scm1
-rw-r--r--gnu/tests/monitoring.scm4
-rw-r--r--gnu/tests/web.scm4
4 files changed, 10 insertions, 3 deletions
diff --git a/gnu/tests/databases.scm b/gnu/tests/databases.scm
index e0544bbcd2e..d3045cc3f73 100644
--- a/gnu/tests/databases.scm
+++ b/gnu/tests/databases.scm
@@ -215,7 +215,9 @@
215 215
216(define %postgresql-os 216(define %postgresql-os
217 (simple-operating-system 217 (simple-operating-system
218 (service postgresql-service-type))) 218 (service postgresql-service-type
219 (postgresql-configuration
220 (postgresql postgresql-10)))))
219 221
220(define (run-postgresql-test) 222(define (run-postgresql-test)
221 "Run tests in %POSTGRESQL-OS." 223 "Run tests in %POSTGRESQL-OS."
diff --git a/gnu/tests/guix.scm b/gnu/tests/guix.scm
index 20b67d55d32..af7d8f0b217 100644
--- a/gnu/tests/guix.scm
+++ b/gnu/tests/guix.scm
@@ -156,6 +156,7 @@
156 (service dhcp-client-service-type) 156 (service dhcp-client-service-type)
157 (service postgresql-service-type 157 (service postgresql-service-type
158 (postgresql-configuration 158 (postgresql-configuration
159 (postgresql postgresql-10)
159 (config-file 160 (config-file
160 (postgresql-config-file 161 (postgresql-config-file
161 (hba-file 162 (hba-file
diff --git a/gnu/tests/monitoring.scm b/gnu/tests/monitoring.scm
index 17b9edc3acc..7371b02fe14 100644
--- a/gnu/tests/monitoring.scm
+++ b/gnu/tests/monitoring.scm
@@ -307,7 +307,9 @@ zabbix||{}
307 (let ((base-os 307 (let ((base-os
308 (simple-operating-system 308 (simple-operating-system
309 (service dhcp-client-service-type) 309 (service dhcp-client-service-type)
310 (service postgresql-service-type) 310 (service postgresql-service-type
311 (postgresql-configuration
312 (postgresql postgresql-10)))
311 (service zabbix-front-end-service-type 313 (service zabbix-front-end-service-type
312 (zabbix-front-end-configuration 314 (zabbix-front-end-configuration
313 (db-password "zabbix"))) 315 (db-password "zabbix")))
diff --git a/gnu/tests/web.scm b/gnu/tests/web.scm
index 7513eab2e49..7f4518acd23 100644
--- a/gnu/tests/web.scm
+++ b/gnu/tests/web.scm
@@ -567,7 +567,9 @@ HTTP-PORT."
567 (config 567 (config
568 (httpd-config-file 568 (httpd-config-file
569 (listen '("8080")))))) 569 (listen '("8080"))))))
570 (service postgresql-service-type) 570 (service postgresql-service-type
571 (postgresql-configuration
572 (postgresql postgresql-10)))
571 (service patchwork-service-type 573 (service patchwork-service-type
572 (patchwork-configuration 574 (patchwork-configuration
573 (patchwork patchwork) 575 (patchwork patchwork)