mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 00:54:46 +00:00
27 lines
655 B
Nix
27 lines
655 B
Nix
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "limesurvey";
|
|
meta.maintainers = [ pkgs.stdenv.lib.maintainers.aanderse ];
|
|
|
|
machine = { ... }: {
|
|
services.limesurvey = {
|
|
enable = true;
|
|
virtualHost = {
|
|
hostName = "example.local";
|
|
adminAddr = "root@example.local";
|
|
};
|
|
};
|
|
|
|
# limesurvey won't work without a dot in the hostname
|
|
networking.hosts."127.0.0.1" = [ "example.local" ];
|
|
};
|
|
|
|
testScript = ''
|
|
start_all()
|
|
|
|
machine.wait_for_unit("phpfpm-limesurvey.service")
|
|
assert "The following surveys are available" in machine.succeed(
|
|
"curl http://example.local/"
|
|
)
|
|
'';
|
|
})
|