nixos/jellyfin: port test to python (#72828)

This commit is contained in:
Minijackson 2019-11-08 18:03:40 +01:00
parent 0214bf46b4
commit 4029748015
No known key found for this signature in database
GPG Key ID: FEA888C9F5D64F62

View File

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