git » chasquid » commit e1a7110

test: Simplify dovecot config in integration test

author Alberto Bertogli
2021-10-08 16:41:14 UTC
committer Alberto Bertogli
2021-10-08 22:11:29 UTC
parent fcdc49d742b5c26b3697744c7e604475830b0e5a

test: Simplify dovecot config in integration test

In the Dovecot integration test, we can now simplify the configuration
as we assume Dovecot 2.3 is the minimum version supported for testing
(as that's the one from Debian stable at the moment).

test/t-11-dovecot/config/dovecot.conf.in +1 -29

diff --git a/test/t-11-dovecot/config/dovecot.conf.in b/test/t-11-dovecot/config/dovecot.conf.in
index 9f9d962..e97913d 100644
--- a/test/t-11-dovecot/config/dovecot.conf.in
+++ b/test/t-11-dovecot/config/dovecot.conf.in
@@ -3,6 +3,7 @@ log_path = $ROOT/dovecot.log
 ssl = no
 
 default_internal_user = $USER
+default_internal_group = $USER
 default_login_user = $USER
 
 # Before auth checks, rename "u@d" to "u-x". This exercises that chasquid
@@ -42,35 +43,6 @@ service anvil {
 	chroot =
 }
 
-# In dovecot 2.3 these services want to change the group owner of the files,
-# so override it manually to our effective group.
-# This is backwards-compatible with dovecot 2.2.
-# TODO: once we stop supporting dovecot 2.2 for tests, we can set
-# default_internal_group and remove these settings.
-service imap-hibernate {
-	unix_listener imap-hibernate {
-		group = $GROUP
-	}
-}
-service stats {
-	unix_listener stats {
-		group = $GROUP
-	}
-	unix_listener stats-writer {
-		group = $GROUP
-	}
-}
-service dict {
-	unix_listener dict {
-		group = $GROUP
-	}
-}
-service dict-async {
-	unix_listener dict-async {
-		group = $GROUP
-	}
-}
-
 # Turn on debugging information, to help troubleshooting issues.
 auth_verbose = yes
 auth_debug = yes