2019-07-06 20:56:30 +02:00
|
|
|
import ./make-test-python.nix (
|
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
name = "sympa";
|
2025-02-12 18:36:24 +01:00
|
|
|
meta.maintainers = with lib.maintainers; [ ];
|
2019-07-06 20:56:30 +02:00
|
|
|
|
2022-03-21 00:15:30 +01:00
|
|
|
nodes.machine =
|
2019-07-06 20:56:30 +02:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
|
|
|
|
services.sympa = {
|
|
|
|
enable = true;
|
|
|
|
domains = {
|
|
|
|
"lists.example.org" = {
|
|
|
|
webHost = "localhost";
|
2024-12-10 20:26:33 +01:00
|
|
|
};
|
|
|
|
};
|
2022-08-05 13:01:49 +02:00
|
|
|
listMasters = [ "bob@example.org" ];
|
2019-07-06 20:56:30 +02: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-09-16 08:48:44 -07:00
|
|
|
"curl --fail --insecure -L http://localhost/"
|
2019-07-06 20:56:30 +02:00
|
|
|
)
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
)
|