1import ./make-test-python.nix ({ pkgs, lib, ... }: {
2 name = "sympa";
3 meta.maintainers = with lib.maintainers; [ mmilata ];
4
5 nodes.machine =
6 { ... }:
7 {
8
9 services.sympa = {
10 enable = true;
11 domains = {
12 "lists.example.org" = {
13 webHost = "localhost";
14 };
15 };
16 listMasters = [ "bob@example.org" ];
17 web.enable = true;
18 web.https = false;
19 database = {
20 type = "PostgreSQL";
21 createLocally = true;
22 };
23 };
24 };
25
26 testScript = ''
27 start_all()
28
29 machine.wait_for_unit("sympa.service")
30 machine.wait_for_unit("wwsympa.service")
31 assert "Mailing lists service" in machine.succeed(
32 "curl --fail --insecure -L http://localhost/"
33 )
34 '';
35})