mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
31 lines
611 B
Nix
31 lines
611 B
Nix
import ./make-test.nix ({ pkgs, ... }:
|
|
|
|
{
|
|
name = "leaps";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ qknight ];
|
|
};
|
|
|
|
nodes =
|
|
{
|
|
client = { };
|
|
|
|
server =
|
|
{ services.leaps = {
|
|
enable = true;
|
|
port = 6666;
|
|
path = "/leaps/";
|
|
};
|
|
networking.firewall.enable = false;
|
|
};
|
|
};
|
|
|
|
testScript =
|
|
''
|
|
startAll;
|
|
$server->waitForOpenPort(6666);
|
|
$client->waitForUnit("network.target");
|
|
$client->succeed("${pkgs.curl}/bin/curl http://server:6666/leaps/ | grep -i 'leaps'");
|
|
'';
|
|
})
|