at 23.11-pre 657 B view raw
1import ./make-test-python.nix ({ pkgs, ... }: { 2 name = "limesurvey"; 3 meta.maintainers = [ pkgs.lib.maintainers.aanderse ]; 4 5 nodes.machine = { ... }: { 6 services.limesurvey = { 7 enable = true; 8 virtualHost = { 9 hostName = "example.local"; 10 adminAddr = "root@example.local"; 11 }; 12 }; 13 14 # limesurvey won't work without a dot in the hostname 15 networking.hosts."127.0.0.1" = [ "example.local" ]; 16 }; 17 18 testScript = '' 19 start_all() 20 21 machine.wait_for_unit("phpfpm-limesurvey.service") 22 assert "The following surveys are available" in machine.succeed( 23 "curl -f http://example.local/" 24 ) 25 ''; 26})