f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
22 lines
476 B
Nix
22 lines
476 B
Nix
import ./make-test-python.nix (
|
|
{ lib, ... }:
|
|
{
|
|
name = "flaresolverr";
|
|
meta.maintainers = with lib.maintainers; [ paveloom ];
|
|
|
|
nodes.machine =
|
|
{ pkgs, ... }:
|
|
{
|
|
services.flaresolverr = {
|
|
enable = true;
|
|
port = 8888;
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
machine.wait_for_unit("flaresolverr.service")
|
|
machine.wait_for_open_port(8888)
|
|
machine.succeed("curl --fail http://localhost:8888/")
|
|
'';
|
|
}
|
|
)
|