nixos/radarr: port test to python
This commit is contained in:
parent
3803abae68
commit
9ca60eda5a
|
@ -1,4 +1,4 @@
|
||||||
import ./make-test.nix ({ lib, ... }:
|
import ./make-test-python.nix ({ lib, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
|
@ -11,8 +11,8 @@ with lib;
|
||||||
{ services.radarr.enable = true; };
|
{ services.radarr.enable = true; };
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
$machine->waitForUnit('radarr.service');
|
machine.wait_for_unit("radarr.service")
|
||||||
$machine->waitForOpenPort('7878');
|
machine.wait_for_open_port("7878")
|
||||||
$machine->succeed("curl --fail http://localhost:7878/");
|
machine.succeed("curl --fail http://localhost:7878/")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user