blob: 674712e3fe6aa7adce0cfee019813c5d83eebb8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{
lib,
...
}:
let
port = 43110;
in
{
name = "zeronet-conservancy";
meta = with lib.maintainers; {
maintainers = [ fgaz ];
};
nodes.machine =
{ pkgs, ... }:
{
services.zeronet = {
enable = true;
package = pkgs.zeronet-conservancy;
inherit port;
};
};
testScript = ''
machine.wait_for_unit("zeronet.service")
machine.wait_for_open_port(${toString port})
machine.succeed("curl --fail -H 'Accept: text/html, application/xml, */*' localhost:${toString port}/Stats")
'';
}
|