git.iko.soy/typeable/nixpkgs
on master help sign in
nixosTests.sonarr: Port tests to python
commitbcf6aa5519c041301042abf38aeff6127b7c4567 authorChristian Kampka <christian@kampka.net> dateSun 15 Dec 2019, 18:24 (7 years ago) parentaeeabe0
1 file changed+4−4
nixos/tests/sonarr.nix+4−4
nixos/tests/sonarr.nix+4−4
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ lib, ... }:
1+import ./make-test-python.nix ({ lib, ... }:
22
33with lib;
44
@@ -11,8 +11,8 @@ with lib;
1111 { services.sonarr.enable = true; };
1212
1313 testScript = ''
14− $machine->waitForUnit('sonarr.service');
15− $machine->waitForOpenPort('8989');
16− $machine->succeed("curl --fail http://localhost:8989/");
14+ machine.wait_for_unit("sonarr.service")
15+ machine.wait_for_open_port("8989")
16+ machine.succeed("curl --fail http://localhost:8989/")
1717 '';
1818})