nixosTests.lidarr: Port tests to python

gstqt5
Christian Kampka 2019-12-15 15:46:22 +01:00
parent 1f2030fdcb
commit 40ed6896e3
No known key found for this signature in database
GPG Key ID: B88E140DB4FE1AA5
1 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
import ./make-test.nix ({ lib, ... }:
import ./make-test-python.nix ({ lib, ... }:
with lib;
@ -11,8 +11,10 @@ with lib;
{ services.lidarr.enable = true; };
testScript = ''
$machine->waitForUnit('lidarr.service');
$machine->waitForOpenPort('8686');
$machine->succeed("curl --fail http://localhost:8686/");
start_all()
machine.wait_for_unit("lidarr.service")
machine.wait_for_open_port("8686")
machine.succeed("curl --fail http://localhost:8686/")
'';
})