2020-04-24 23:36:52 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
|
|
name = "limesurvey";
|
2021-01-15 22:18:51 +00:00
|
|
|
meta.maintainers = [ pkgs.lib.maintainers.aanderse ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
nodes.machine = { ... }: {
|
2020-04-24 23:36:52 +00:00
|
|
|
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(
|
2020-10-27 00:29:36 +00:00
|
|
|
"curl -f http://example.local/"
|
2020-04-24 23:36:52 +00:00
|
|
|
)
|
|
|
|
'';
|
|
|
|
})
|