2021-12-19 01:06:50 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, lib, ... }: {
|
|
|
|
name = "sabnzbd";
|
|
|
|
meta = with pkgs.lib; {
|
|
|
|
maintainers = with maintainers; [ jojosch ];
|
|
|
|
};
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
nodes.machine = { pkgs, ... }: {
|
2021-12-19 01:06:50 +00:00
|
|
|
services.sabnzbd = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# unrar is unfree
|
|
|
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "unrar" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
machine.wait_for_unit("sabnzbd.service")
|
|
|
|
machine.wait_until_succeeds(
|
|
|
|
"curl --fail -L http://localhost:8080/"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
})
|