Files
Jamie Magee e1df3ce76b nixos/tests/shelfmark: init
Starts the service and checks that /api/health responds.
2026-03-30 20:35:16 -07:00

21 lines
450 B
Nix

{ lib, ... }:
{
name = "shelfmark";
meta.maintainers = with lib.maintainers; [ jamiemagee ];
nodes.machine = {
services.shelfmark = {
enable = true;
environment.FLASK_HOST = "0.0.0.0";
};
};
testScript = ''
machine.wait_for_unit("shelfmark.service")
machine.wait_for_open_port(8084)
with subtest("Health endpoint responds"):
machine.succeed("curl --fail http://localhost:8084/api/health")
'';
}