2020-04-24 23:36:52 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "leaps";
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ qknight ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nodes =
|
2020-08-20 17:08:02 +00:00
|
|
|
{
|
2020-04-24 23:36:52 +00:00
|
|
|
client = { };
|
|
|
|
|
|
|
|
server =
|
|
|
|
{ services.leaps = {
|
|
|
|
enable = true;
|
|
|
|
port = 6666;
|
|
|
|
path = "/leaps/";
|
|
|
|
};
|
|
|
|
networking.firewall.enable = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
|
|
|
start_all()
|
|
|
|
server.wait_for_open_port(6666)
|
|
|
|
client.wait_for_unit("network.target")
|
|
|
|
assert "leaps" in client.succeed(
|
2020-10-27 00:29:36 +00:00
|
|
|
"${pkgs.curl}/bin/curl -f http://server:6666/leaps/"
|
2020-04-24 23:36:52 +00:00
|
|
|
)
|
|
|
|
'';
|
|
|
|
})
|