mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 06:31:20 +00:00
nixos/jackett: port test to python
This commit is contained in:
parent
caa0cadaed
commit
32ef9dbfea
@ -1,4 +1,4 @@
|
|||||||
import ./make-test.nix ({ lib, ... }:
|
import ./make-test-python.nix ({ lib, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
@ -11,8 +11,9 @@ with lib;
|
|||||||
{ services.jackett.enable = true; };
|
{ services.jackett.enable = true; };
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
$machine->waitForUnit('jackett.service');
|
machine.start()
|
||||||
$machine->waitForOpenPort('9117');
|
machine.wait_for_unit("jackett.service")
|
||||||
$machine->succeed("curl --fail http://localhost:9117/");
|
machine.wait_for_open_port(9117)
|
||||||
|
machine.succeed("curl --fail http://localhost:9117/")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user