nixpkgs/nixos/tests/sympa.nix

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

37 lines
745 B
Nix
Raw Permalink Normal View History

{ pkgs, lib, ... }:
{
name = "sympa";
meta.maintainers = with lib.maintainers; [ ];
2019-07-06 20:56:30 +02:00
nodes.machine =
{ ... }:
{
2019-07-06 20:56:30 +02:00
services.sympa = {
enable = true;
domains = {
"lists.example.org" = {
webHost = "localhost";
2019-07-06 20:56:30 +02:00
};
};
listMasters = [ "bob@example.org" ];
web.enable = true;
web.https = false;
database = {
type = "PostgreSQL";
createLocally = true;
};
2019-07-06 20:56:30 +02:00
};
};
2019-07-06 20:56:30 +02:00
testScript = ''
start_all()
2019-07-06 20:56:30 +02:00
machine.wait_for_unit("sympa.service")
machine.wait_for_unit("wwsympa.service")
assert "Mailing lists service" in machine.succeed(
"curl --fail --insecure -L http://localhost/"
)
'';
}