diff options
author | Yt <raphael@megzari.com> | 2024-02-14 21:42:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-14 21:42:46 +0000 |
commit | f13f90978a3624da988eebd01389267e8089f80e (patch) | |
tree | b6401c6355eee271561cb81763dcbc71c7e346f8 /nixos/tests | |
parent | 35703929a90725892360eaf954f69401e1f4f7d7 (diff) | |
parent | cd8aad903c8ecf47401c3dcb9a85649454d60078 (diff) |
Merge pull request #288638 from ThyMYthOS/update-stalwart
stalwart-mail: fix default configuration and test
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/stalwart-mail.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/nixos/tests/stalwart-mail.nix b/nixos/tests/stalwart-mail.nix index b5589966a160f..634c0e2e39261 100644 --- a/nixos/tests/stalwart-mail.nix +++ b/nixos/tests/stalwart-mail.nix @@ -42,20 +42,22 @@ in import ./make-test-python.nix ({ lib, ... }: { session.auth.mechanisms = [ "PLAIN" ]; session.auth.directory = "in-memory"; - jmap.directory = "in-memory"; # shared with imap + storage.directory = "in-memory"; # shared with imap session.rcpt.directory = "in-memory"; queue.outbound.next-hop = [ "local" ]; directory."in-memory" = { type = "memory"; - users = [ + principals = [ { + type = "individual"; name = "alice"; secret = "foobar"; email = [ "alice@${domain}" ]; } { + type = "individual"; name = "bob"; secret = "foobar"; email = [ "bob@${domain}" ]; @@ -90,8 +92,9 @@ in import ./make-test-python.nix ({ lib, ... }: { with IMAP4('localhost') as imap: imap.starttls() - imap.login('bob', 'foobar') - imap.select('"All Mail"') + status, [caps] = imap.login('bob', 'foobar') + assert status == 'OK' + imap.select() status, [ref] = imap.search(None, 'ALL') assert status == 'OK' [msgId] = ref.split() |