lol

tests/homepage-dashboard: add tests for homepage

+15
+1
nixos/tests/all-tests.nix
··· 337 337 hbase3 = handleTest ./hbase.nix { package=pkgs.hbase3; }; 338 338 hedgedoc = handleTest ./hedgedoc.nix {}; 339 339 herbstluftwm = handleTest ./herbstluftwm.nix {}; 340 + homepage-dashboard = handleTest ./homepage-dashboard.nix {}; 340 341 installed-tests = pkgs.recurseIntoAttrs (handleTest ./installed-tests {}); 341 342 invidious = handleTest ./invidious.nix {}; 342 343 oci-containers = handleTestOn ["aarch64-linux" "x86_64-linux"] ./oci-containers.nix {};
+14
nixos/tests/homepage-dashboard.nix
··· 1 + import ./make-test-python.nix ({ lib, ... }: { 2 + name = "homepage-dashboard"; 3 + meta.maintainers = with lib.maintainers; [ jnsgruk ]; 4 + 5 + nodes.machine = { pkgs, ... }: { 6 + services.homepage-dashboard.enable = true; 7 + }; 8 + 9 + testScript = '' 10 + machine.wait_for_unit("homepage-dashboard.service") 11 + machine.wait_for_open_port(8082) 12 + machine.succeed("curl --fail http://localhost:8082/") 13 + ''; 14 + })