nixosTests.mailpit: migrate to runTest

Part of #386873
This commit is contained in:
Piotr Kwiecinski 2025-04-05 00:50:41 +02:00
parent 88186e0321
commit 6b63b4a2f5
No known key found for this signature in database
GPG key ID: EC0DE1CB9D5258B4
2 changed files with 28 additions and 30 deletions

View file

@ -741,7 +741,7 @@ in
magnetico = handleTest ./magnetico.nix { }; magnetico = handleTest ./magnetico.nix { };
mailcatcher = runTest ./mailcatcher.nix; mailcatcher = runTest ./mailcatcher.nix;
mailhog = handleTest ./mailhog.nix { }; mailhog = handleTest ./mailhog.nix { };
mailpit = handleTest ./mailpit.nix { }; mailpit = runTest ./mailpit.nix;
mailman = handleTest ./mailman.nix { }; mailman = handleTest ./mailman.nix { };
man = handleTest ./man.nix { }; man = handleTest ./man.nix { };
mariadb-galera = handleTest ./mysql/mariadb-galera.nix { }; mariadb-galera = handleTest ./mysql/mariadb-galera.nix { };

View file

@ -1,6 +1,5 @@
import ./make-test-python.nix ( { lib, ... }:
{ lib, ... }: {
{
name = "mailpit"; name = "mailpit";
meta.maintainers = lib.teams.flyingcircus.members; meta.maintainers = lib.teams.flyingcircus.members;
@ -31,5 +30,4 @@ import ./make-test-python.nix (
assert message['To'][0]['Address'] == 'root@example.org' assert message['To'][0]['Address'] == 'root@example.org'
assert "this is the body of the email" in message['Snippet'] assert "this is the body of the email" in message['Snippet']
''; '';
} }
)