deluge: add test
This commit is contained in:
parent
8fccc7e1df
commit
fe840cd333
|
@ -264,6 +264,7 @@ in rec {
|
||||||
tests.containers-hosts = callTest tests/containers-hosts.nix {};
|
tests.containers-hosts = callTest tests/containers-hosts.nix {};
|
||||||
tests.containers-macvlans = callTest tests/containers-macvlans.nix {};
|
tests.containers-macvlans = callTest tests/containers-macvlans.nix {};
|
||||||
tests.couchdb = callTest tests/couchdb.nix {};
|
tests.couchdb = callTest tests/couchdb.nix {};
|
||||||
|
tests.deluge = callTest tests/deluge.nix {};
|
||||||
tests.docker = callTestOnMatchingSystems ["x86_64-linux"] tests/docker.nix {};
|
tests.docker = callTestOnMatchingSystems ["x86_64-linux"] tests/docker.nix {};
|
||||||
tests.docker-tools = callTestOnMatchingSystems ["x86_64-linux"] tests/docker-tools.nix {};
|
tests.docker-tools = callTestOnMatchingSystems ["x86_64-linux"] tests/docker-tools.nix {};
|
||||||
tests.docker-edge = callTestOnMatchingSystems ["x86_64-linux"] tests/docker-edge.nix {};
|
tests.docker-edge = callTestOnMatchingSystems ["x86_64-linux"] tests/docker-edge.nix {};
|
||||||
|
|
|
@ -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");
|
||||||
|
'';
|
||||||
|
})
|
Loading…
Reference in New Issue