tests/homepage-dashboard: add tests for homepage

This commit is contained in:
Jon Seager 2023-07-12 16:46:28 +01:00
parent 3de6be0951
commit f94b38be98
No known key found for this signature in database
2 changed files with 15 additions and 0 deletions

View file

@ -337,6 +337,7 @@ in {
hbase3 = handleTest ./hbase.nix { package=pkgs.hbase3; };
hedgedoc = handleTest ./hedgedoc.nix {};
herbstluftwm = handleTest ./herbstluftwm.nix {};
homepage-dashboard = handleTest ./homepage-dashboard.nix {};
installed-tests = pkgs.recurseIntoAttrs (handleTest ./installed-tests {});
invidious = handleTest ./invidious.nix {};
oci-containers = handleTestOn ["aarch64-linux" "x86_64-linux"] ./oci-containers.nix {};

View file

@ -0,0 +1,14 @@
import ./make-test-python.nix ({ lib, ... }: {
name = "homepage-dashboard";
meta.maintainers = with lib.maintainers; [ jnsgruk ];
nodes.machine = { pkgs, ... }: {
services.homepage-dashboard.enable = true;
};
testScript = ''
machine.wait_for_unit("homepage-dashboard.service")
machine.wait_for_open_port(8082)
machine.succeed("curl --fail http://localhost:8082/")
'';
})