3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/tests/sympa.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
779 B
Nix
Raw Normal View History

2019-07-06 19:56:30 +01:00
import ./make-test-python.nix ({ pkgs, lib, ... }: {
name = "sympa";
meta.maintainers = with lib.maintainers; [ mmilata ];
machine =
{ ... }:
{
services.sympa = {
enable = true;
domains = {
"lists.example.org" = {
webHost = "localhost";
};
};
listMasters = [ "joe@example.org" ];
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 16:48:44 +01:00
"curl --fail --insecure -L http://localhost/"
2019-07-06 19:56:30 +01:00
)
'';
})