0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

Merge pull request #33679 from flokli/deluge-module

Deluge: use mkEnableOption, add test
This commit is contained in:
Matthew Justin Bauer 2018-04-25 14:54:34 -05:00 committed by GitHub
commit e4d2d32a32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 12 deletions

29
nixos/tests/deluge.nix Normal file
View file

@ -0,0 +1,29 @@
import ./make-test.nix ({ pkgs, ...} : {
name = "deluge";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ flokli ];
};
nodes = {
server =
{ pkgs, config, ... }:
{ 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");
'';
})