2018-01-10 00:52:15 +00:00
|
|
|
import ./make-test.nix ({ pkgs, ...} : {
|
|
|
|
name = "deluge";
|
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ flokli ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nodes = {
|
|
|
|
server =
|
2018-07-20 20:56:59 +00:00
|
|
|
{ ... }:
|
2018-01-10 00:52:15 +00:00
|
|
|
|
|
|
|
{ services.deluge = {
|
|
|
|
enable = true;
|
|
|
|
web.enable = true;
|
|
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 8112 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
client = { };
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
startAll;
|
|
|
|
|
|
|
|
$server->waitForUnit("deluged");
|
|
|
|
$server->waitForUnit("delugeweb");
|
|
|
|
$client->waitForUnit("network.target");
|
|
|
|
$client->waitUntilSucceeds("curl --fail http://server:8112");
|
|
|
|
'';
|
|
|
|
})
|