vuls: init at 0.27.0
[NixPkgs.git] / nixos / tests / flaresolverr.nix
blob0cec7adf6d6b6eb5d98202b201f3550dcfaed37f
1 import ./make-test-python.nix (
2   { lib, ... }:
3   {
4     name = "flaresolverr";
5     meta.maintainers = with lib.maintainers; [ paveloom ];
7     nodes.machine =
8       { pkgs, ... }:
9       {
10         services.flaresolverr = {
11           enable = true;
12           port = 8888;
13         };
14       };
16     testScript = ''
17       machine.wait_for_unit("flaresolverr.service")
18       machine.wait_for_open_port(8888)
19       machine.succeed("curl --fail http://localhost:8888/")
20     '';
21   }