mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 22:32:58 +03:00
30 lines
549 B
Nix
30 lines
549 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->succeed("curl http://server:6666/leaps/ | grep -i 'leaps'");
|
||
|
'';
|
||
|
})
|