2019-12-15 14:50:13 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ... }:
|
2016-11-06 09:33:21 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
name = "leaps";
|
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ qknight ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nodes =
|
2020-08-02 10:25:04 +01:00
|
|
|
{
|
2016-11-06 09:33:21 +00:00
|
|
|
client = { };
|
|
|
|
|
|
|
|
server =
|
|
|
|
{ services.leaps = {
|
|
|
|
enable = true;
|
|
|
|
port = 6666;
|
|
|
|
path = "/leaps/";
|
|
|
|
};
|
|
|
|
networking.firewall.enable = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript =
|
|
|
|
''
|
2019-12-15 14:50:13 +00:00
|
|
|
start_all()
|
|
|
|
server.wait_for_open_port(6666)
|
|
|
|
client.wait_for_unit("network.target")
|
|
|
|
assert "leaps" in client.succeed(
|
|
|
|
"${pkgs.curl}/bin/curl http://server:6666/leaps/"
|
|
|
|
)
|
2016-11-06 09:33:21 +00:00
|
|
|
'';
|
|
|
|
})
|