nixosTests.lidarr: Port tests to python

Changed files
+6 -4
nixos
tests
+6 -4
nixos/tests/lidarr.nix
···
-
import ./make-test.nix ({ lib, ... }:
with lib;
···
{ services.lidarr.enable = true; };
testScript = ''
-
$machine->waitForUnit('lidarr.service');
-
$machine->waitForOpenPort('8686');
-
$machine->succeed("curl --fail http://localhost:8686/");
'';
})
···
+
import ./make-test-python.nix ({ lib, ... }:
with lib;
···
{ services.lidarr.enable = true; };
testScript = ''
+
start_all()
+
+
machine.wait_for_unit("lidarr.service")
+
machine.wait_for_open_port("8686")
+
machine.succeed("curl --fail http://localhost:8686/")
'';
})