mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
50 lines
930 B
Nix
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 ];
|
|
}
|
|
);
|
|
}
|