blob: c85ad02bcb2f543b10fb5385dc380c1762966e2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{ pkgs, lib, ... }:
{
name = "whoogle-search";
meta.maintainers = with lib.maintainers; [ malte-v ];
nodes.machine =
{ pkgs, ... }:
{
services.whoogle-search = {
enable = true;
port = 5000;
listenAddress = "127.0.0.1";
};
};
testScript = ''
machine.start()
machine.wait_for_unit("whoogle-search.service")
machine.wait_for_open_port(5000)
machine.wait_until_succeeds("curl --fail --show-error --silent --location localhost:5000/")
'';
}
|