nixpkgs/nixos/tests/whisparr.nix
2024-11-07 20:46:59 +03:00

19 lines
410 B
Nix

import ./make-test-python.nix (
{ lib, ... }:
{
name = "whisparr";
meta.maintainers = [ lib.maintainers.paveloom ];
nodes.machine =
{ pkgs, ... }:
{
services.whisparr.enable = true;
};
testScript = ''
machine.wait_for_unit("whisparr.service")
machine.wait_for_open_port(6969)
machine.succeed("curl --fail http://localhost:6969/")
'';
}
)