mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
26 lines
637 B
Nix
26 lines
637 B
Nix
![]() |
import ./make-test-python.nix (
|
||
|
{ lib, ... }:
|
||
|
|
||
|
{
|
||
|
name = "autobrr";
|
||
|
meta.maintainers = with lib.maintainers; [ av-gal ];
|
||
|
|
||
|
nodes.machine =
|
||
|
{ pkgs, ... }:
|
||
|
{
|
||
|
services.autobrr = {
|
||
|
enable = true;
|
||
|
# We create this secret in the Nix store (making it readable by everyone).
|
||
|
# DO NOT DO THIS OUTSIDE OF TESTS!!
|
||
|
secretFile = pkgs.writeText "session_secret" "not-secret";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
testScript = ''
|
||
|
machine.wait_for_unit("autobrr.service")
|
||
|
machine.wait_for_open_port(7474)
|
||
|
machine.succeed("curl --fail http://localhost:7474/")
|
||
|
'';
|
||
|
}
|
||
|
)
|