nixosTests.lidarr: Port tests to python

wip/yesman
Christian Kampka 5 years ago
parent 1f2030fdcb
commit 40ed6896e3
No known key found for this signature in database
GPG Key ID: B88E140DB4FE1AA5
  1. 10
      nixos/tests/lidarr.nix

@ -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/")
'';
})

Loading…
Cancel
Save