nixosTests.lidarr: Port tests to python
This commit is contained in:
parent
1f2030fdcb
commit
40ed6896e3
|
@ -1,4 +1,4 @@
|
||||||
import ./make-test.nix ({ lib, ... }:
|
import ./make-test-python.nix ({ lib, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
|
@ -11,8 +11,10 @@ with lib;
|
||||||
{ services.lidarr.enable = true; };
|
{ services.lidarr.enable = true; };
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
$machine->waitForUnit('lidarr.service');
|
start_all()
|
||||||
$machine->waitForOpenPort('8686');
|
|
||||||
$machine->succeed("curl --fail http://localhost:8686/");
|
machine.wait_for_unit("lidarr.service")
|
||||||
|
machine.wait_for_open_port("8686")
|
||||||
|
machine.succeed("curl --fail http://localhost:8686/")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue