diff options
author | Christian Kampka <christian@kampka.net> | 2019-12-15 15:46:22 +0100 |
---|---|---|
committer | Christian Kampka <christian@kampka.net> | 2019-12-16 12:52:31 +0100 |
commit | 40ed6896e361a648aff34bfe5c70b61cbbf12d6b (patch) | |
tree | 1ff2844b0db1ce5714a2b71c8ac1f4b240a1451a /nixos/tests/lidarr.nix | |
parent | 1f2030fdcb2ae86a821d44a40509b0c479c06055 (diff) |
nixosTests.lidarr: Port tests to python
Diffstat (limited to 'nixos/tests/lidarr.nix')
-rw-r--r-- | nixos/tests/lidarr.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/nixos/tests/lidarr.nix b/nixos/tests/lidarr.nix index 85fcbd21d8c09..d3f83e5d9145b 100644 --- a/nixos/tests/lidarr.nix +++ b/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/") ''; }) |