2020-04-24 23:36:52 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, lib, ... }: {
|
|
|
|
name = "sympa";
|
|
|
|
meta.maintainers = with lib.maintainers; [ mmilata ];
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
nodes.machine =
|
2020-04-24 23:36:52 +00:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
|
|
|
|
services.sympa = {
|
|
|
|
enable = true;
|
|
|
|
domains = {
|
|
|
|
"lists.example.org" = {
|
|
|
|
webHost = "localhost";
|
|
|
|
};
|
|
|
|
};
|
2022-08-12 12:06:08 +00:00
|
|
|
listMasters = [ "bob@example.org" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
web.enable = true;
|
|
|
|
web.https = false;
|
|
|
|
database = {
|
|
|
|
type = "PostgreSQL";
|
|
|
|
createLocally = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
start_all()
|
|
|
|
|
|
|
|
machine.wait_for_unit("sympa.service")
|
|
|
|
machine.wait_for_unit("wwsympa.service")
|
|
|
|
assert "Mailing lists service" in machine.succeed(
|
2020-10-27 00:29:36 +00:00
|
|
|
"curl --fail --insecure -L http://localhost/"
|
2020-04-24 23:36:52 +00:00
|
|
|
)
|
|
|
|
'';
|
|
|
|
})
|