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