mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
19 lines
410 B
Nix
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/")
|
|
'';
|
|
}
|
|
)
|