diff options
Diffstat (limited to 'nixpkgs/nixos/tests/limesurvey.nix')
-rw-r--r-- | nixpkgs/nixos/tests/limesurvey.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nixpkgs/nixos/tests/limesurvey.nix b/nixpkgs/nixos/tests/limesurvey.nix new file mode 100644 index 000000000000..9a3193991f35 --- /dev/null +++ b/nixpkgs/nixos/tests/limesurvey.nix @@ -0,0 +1,26 @@ +import ./make-test-python.nix ({ pkgs, ... }: { + name = "limesurvey"; + meta.maintainers = [ pkgs.lib.maintainers.aanderse ]; + + nodes.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 -f http://example.local/" + ) + ''; +}) |