1 import ./make-test-python.nix ({ lib, pkgs, ... }: {
3 meta.maintainers = with lib.maintainers; [ bjornfor ];
7 services.lighttpd.enable = true;
8 services.lighttpd.document-root = pkgs.runCommand "document-root" {} ''
10 echo "hello nixos test" > "$out/file.txt"
17 server.wait_for_unit("lighttpd.service")
18 res = server.succeed("curl --fail http://localhost/file.txt")
19 assert "hello nixos test" in res, f"bad server response: '{res}'"