1 import ./make-test-python.nix ({ lib, ... }:
5 meta.maintainers = [ lib.maintainers.aanderse ];
10 services.mailcatcher.enable = true;
20 environment.systemPackages = [ pkgs.mailutils ];
26 machine.wait_for_unit("mailcatcher.service")
27 machine.wait_for_open_port(1025)
29 'echo "this is the body of the email" | mail -s "subject" root@example.org'
31 assert "this is the body of the email" in machine.succeed(
32 "curl -f http://localhost:1080/messages/1.source"