nixpkgs/nixos/tests/autobrr.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
563 B
Nix
Raw Permalink Normal View History

{ lib, ... }:
2024-02-09 17:55:06 -05:00
{
name = "autobrr";
meta.maintainers = with lib.maintainers; [ av-gal ];
2024-02-09 17:55:06 -05:00
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";
2024-02-09 17:55:06 -05:00
};
};
2024-02-09 17:55:06 -05:00
testScript = ''
machine.wait_for_unit("autobrr.service")
machine.wait_for_open_port(7474)
machine.succeed("curl --fail http://localhost:7474/")
'';
}