mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:25:38 +00:00
54ece050b8
the default hasn't been changed since 2009 this can improve our test performances nixos/tests: remove explicit memorySize <1024 1024MiB is now the default
36 lines
779 B
Nix
36 lines
779 B
Nix
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(
|
|
"curl --fail --insecure -L http://localhost/"
|
|
)
|
|
'';
|
|
})
|