Merge pull request #54559 from etu/tests-sonarr-and-forks
Add tests for Sonarr, Radarr, Lidarr and Jackett
This commit is contained in:
commit
ad5384f140
@ -107,6 +107,7 @@ in
|
|||||||
initrdNetwork = handleTest ./initrd-network.nix {};
|
initrdNetwork = handleTest ./initrd-network.nix {};
|
||||||
installer = handleTest ./installer.nix {};
|
installer = handleTest ./installer.nix {};
|
||||||
ipv6 = handleTest ./ipv6.nix {};
|
ipv6 = handleTest ./ipv6.nix {};
|
||||||
|
jackett = handleTest ./jackett.nix {};
|
||||||
jenkins = handleTest ./jenkins.nix {};
|
jenkins = handleTest ./jenkins.nix {};
|
||||||
#kafka = handleTest ./kafka.nix {}; # broken since openjdk: 8u181 -> 8u192
|
#kafka = handleTest ./kafka.nix {}; # broken since openjdk: 8u181 -> 8u192
|
||||||
kerberos = handleTest ./kerberos/default.nix {};
|
kerberos = handleTest ./kerberos/default.nix {};
|
||||||
@ -120,6 +121,7 @@ in
|
|||||||
latestKernel.login = handleTest ./login.nix { latestKernel = true; };
|
latestKernel.login = handleTest ./login.nix { latestKernel = true; };
|
||||||
ldap = handleTest ./ldap.nix {};
|
ldap = handleTest ./ldap.nix {};
|
||||||
leaps = handleTest ./leaps.nix {};
|
leaps = handleTest ./leaps.nix {};
|
||||||
|
lidarr = handleTest ./lidarr.nix {};
|
||||||
#lightdm = handleTest ./lightdm.nix {};
|
#lightdm = handleTest ./lightdm.nix {};
|
||||||
login = handleTest ./login.nix {};
|
login = handleTest ./login.nix {};
|
||||||
#logstash = handleTest ./logstash.nix {};
|
#logstash = handleTest ./logstash.nix {};
|
||||||
@ -178,6 +180,7 @@ in
|
|||||||
quagga = handleTest ./quagga.nix {};
|
quagga = handleTest ./quagga.nix {};
|
||||||
quake3 = handleTest ./quake3.nix {};
|
quake3 = handleTest ./quake3.nix {};
|
||||||
rabbitmq = handleTest ./rabbitmq.nix {};
|
rabbitmq = handleTest ./rabbitmq.nix {};
|
||||||
|
radarr = handleTest ./radarr.nix {};
|
||||||
radicale = handleTest ./radicale.nix {};
|
radicale = handleTest ./radicale.nix {};
|
||||||
redmine = handleTest ./redmine.nix {};
|
redmine = handleTest ./redmine.nix {};
|
||||||
roundcube = handleTest ./roundcube.nix {};
|
roundcube = handleTest ./roundcube.nix {};
|
||||||
@ -194,6 +197,7 @@ in
|
|||||||
smokeping = handleTest ./smokeping.nix {};
|
smokeping = handleTest ./smokeping.nix {};
|
||||||
snapper = handleTest ./snapper.nix {};
|
snapper = handleTest ./snapper.nix {};
|
||||||
solr = handleTest ./solr.nix {};
|
solr = handleTest ./solr.nix {};
|
||||||
|
sonarr = handleTest ./sonarr.nix {};
|
||||||
strongswan-swanctl = handleTest ./strongswan-swanctl.nix {};
|
strongswan-swanctl = handleTest ./strongswan-swanctl.nix {};
|
||||||
sudo = handleTest ./sudo.nix {};
|
sudo = handleTest ./sudo.nix {};
|
||||||
switchTest = handleTest ./switch-test.nix {};
|
switchTest = handleTest ./switch-test.nix {};
|
||||||
|
18
nixos/tests/jackett.nix
Normal file
18
nixos/tests/jackett.nix
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
import ./make-test.nix ({ lib, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
rec {
|
||||||
|
name = "jackett";
|
||||||
|
meta.maintainers = with maintainers; [ etu ];
|
||||||
|
|
||||||
|
nodes.machine =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{ services.jackett.enable = true; };
|
||||||
|
|
||||||
|
testScript = ''
|
||||||
|
$machine->waitForUnit('jackett.service');
|
||||||
|
$machine->waitForOpenPort('9117');
|
||||||
|
$machine->succeed("curl --fail http://localhost:9117/");
|
||||||
|
'';
|
||||||
|
})
|
18
nixos/tests/lidarr.nix
Normal file
18
nixos/tests/lidarr.nix
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
import ./make-test.nix ({ lib, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
rec {
|
||||||
|
name = "lidarr";
|
||||||
|
meta.maintainers = with maintainers; [ etu ];
|
||||||
|
|
||||||
|
nodes.machine =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{ services.lidarr.enable = true; };
|
||||||
|
|
||||||
|
testScript = ''
|
||||||
|
$machine->waitForUnit('lidarr.service');
|
||||||
|
$machine->waitForOpenPort('8686');
|
||||||
|
$machine->succeed("curl --fail http://localhost:8686/");
|
||||||
|
'';
|
||||||
|
})
|
18
nixos/tests/radarr.nix
Normal file
18
nixos/tests/radarr.nix
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
import ./make-test.nix ({ lib, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
rec {
|
||||||
|
name = "radarr";
|
||||||
|
meta.maintainers = with maintainers; [ etu ];
|
||||||
|
|
||||||
|
nodes.machine =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{ services.radarr.enable = true; };
|
||||||
|
|
||||||
|
testScript = ''
|
||||||
|
$machine->waitForUnit('radarr.service');
|
||||||
|
$machine->waitForOpenPort('7878');
|
||||||
|
$machine->succeed("curl --fail http://localhost:7878/");
|
||||||
|
'';
|
||||||
|
})
|
18
nixos/tests/sonarr.nix
Normal file
18
nixos/tests/sonarr.nix
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
import ./make-test.nix ({ lib, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
rec {
|
||||||
|
name = "sonarr";
|
||||||
|
meta.maintainers = with maintainers; [ etu ];
|
||||||
|
|
||||||
|
nodes.machine =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{ services.sonarr.enable = true; };
|
||||||
|
|
||||||
|
testScript = ''
|
||||||
|
$machine->waitForUnit('sonarr.service');
|
||||||
|
$machine->waitForOpenPort('8989');
|
||||||
|
$machine->succeed("curl --fail http://localhost:8989/");
|
||||||
|
'';
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user