nixos/jellyfin: port test to python (#72828)
This commit is contained in:
parent
0214bf46b4
commit
4029748015
|
@ -1,4 +1,4 @@
|
||||||
import ./make-test.nix ({ lib, ...}:
|
import ./make-test-python.nix ({ lib, ...}:
|
||||||
|
|
||||||
{
|
{
|
||||||
name = "jellyfin";
|
name = "jellyfin";
|
||||||
|
@ -9,8 +9,8 @@ import ./make-test.nix ({ lib, ...}:
|
||||||
{ services.jellyfin.enable = true; };
|
{ services.jellyfin.enable = true; };
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
$machine->waitForUnit('jellyfin.service');
|
machine.wait_for_unit("jellyfin.service")
|
||||||
$machine->waitForOpenPort('8096');
|
machine.wait_for_open_port(8096)
|
||||||
$machine->succeed("curl --fail http://localhost:8096/");
|
machine.succeed("curl --fail http://localhost:8096/")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue