1 import ./make-test-python.nix ({ lib, pkgs, ... }: {
3 meta.maintainers = [ lib.maintainers.aanderse ];
5 nodes.machine = { ... }: {
6 services.limesurvey = {
9 hostName = "example.local";
10 adminAddr = "root@example.local";
12 encryptionKeyFile = pkgs.writeText "key" (lib.strings.replicate 32 "0");
13 encryptionNonceFile = pkgs.writeText "nonce" (lib.strings.replicate 24 "0");
16 # limesurvey won't work without a dot in the hostname
17 networking.hosts."127.0.0.1" = [ "example.local" ];
23 machine.wait_for_unit("phpfpm-limesurvey.service")
24 assert "The following surveys are available" in machine.succeed(
25 "curl -f http://example.local/"