mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
5803706662
Fix some fallout from de3e423
(PR #171280).
27 lines
465 B
Nix
27 lines
465 B
Nix
import ./make-test-python.nix ({ lib, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
port = 42069;
|
|
in
|
|
{
|
|
name = "bazarr";
|
|
meta.maintainers = with maintainers; [ d-xo ];
|
|
|
|
nodes.machine =
|
|
{ pkgs, ... }:
|
|
{
|
|
services.bazarr = {
|
|
enable = true;
|
|
listenPort = port;
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
machine.wait_for_unit("bazarr.service")
|
|
machine.wait_for_open_port(port)
|
|
machine.succeed("curl --fail http://localhost:${toString port}/")
|
|
'';
|
|
})
|