My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/nixos/tests/sympa.nix

35 lines
785 B

import ./make-test-python.nix ({ pkgs, lib, ... }: {
name = "sympa";
meta.maintainers = with lib.maintainers; [ mmilata ];
nodes.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(
"curl --fail --insecure -L http://localhost/"
)
'';
})