diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 9ee7f01fef1b..2c6fa25761a4 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -703,7 +703,7 @@ in libvirtd = handleTest ./libvirtd.nix { }; lidarr = handleTest ./lidarr.nix { }; lightdm = handleTest ./lightdm.nix { }; - lighttpd = handleTest ./lighttpd.nix { }; + lighttpd = runTest ./lighttpd.nix; limesurvey = handleTest ./limesurvey.nix { }; limine = import ./limine { inherit runTest; }; listmonk = handleTestOn [ "x86_64-linux" "aarch64-linux" ] ./listmonk.nix { }; diff --git a/nixos/tests/lighttpd.nix b/nixos/tests/lighttpd.nix index 271dc19ef68c..db08fdf3de22 100644 --- a/nixos/tests/lighttpd.nix +++ b/nixos/tests/lighttpd.nix @@ -1,25 +1,23 @@ -import ./make-test-python.nix ( - { lib, pkgs, ... }: - { - name = "lighttpd"; - meta.maintainers = with lib.maintainers; [ bjornfor ]; +{ lib, pkgs, ... }: +{ + name = "lighttpd"; + meta.maintainers = with lib.maintainers; [ bjornfor ]; - nodes = { - server = { - services.lighttpd.enable = true; - services.lighttpd.document-root = pkgs.runCommand "document-root" { } '' - mkdir -p "$out" - echo "hello nixos test" > "$out/file.txt" - ''; - }; + nodes = { + server = { + services.lighttpd.enable = true; + services.lighttpd.document-root = pkgs.runCommand "document-root" { } '' + mkdir -p "$out" + echo "hello nixos test" > "$out/file.txt" + ''; }; + }; - testScript = '' - start_all() - server.wait_for_unit("lighttpd.service") - res = server.succeed("curl --fail http://localhost/file.txt") - assert "hello nixos test" in res, f"bad server response: '{res}'" - server.succeed("systemctl reload lighttpd") - ''; - } -) + testScript = '' + start_all() + server.wait_for_unit("lighttpd.service") + res = server.succeed("curl --fail http://localhost/file.txt") + assert "hello nixos test" in res, f"bad server response: '{res}'" + server.succeed("systemctl reload lighttpd") + ''; +}