Files
nixpkgs/nixos/tests/shoko.nix
2026-01-15 22:19:09 +01:00

50 lines
930 B
Nix

{ runTest }:
{
default = runTest (
{ lib, ... }:
{
name = "Shoko";
nodes.machine = {
services.shoko.enable = true;
};
testScript = ''
machine.wait_for_unit("shoko.service")
machine.wait_for_open_port(8111)
machine.succeed("curl --fail http://localhost:8111")
'';
meta.maintainers = with lib.maintainers; [
diniamo
nanoyaki
];
}
);
withPlugins = runTest (
{ pkgs, lib, ... }:
{
name = "Shoko with plugins";
nodes.machine = {
services.shoko = {
enable = true;
plugins = [ pkgs.luarenamer ];
};
};
testScript = ''
machine.wait_for_unit("shoko.service")
machine.wait_for_open_port(8111)
machine.succeed("curl --fail http://localhost:8111")
'';
meta.maintainers = with lib.maintainers; [ nanoyaki ];
}
);
}