nixosTests.bazarr: migrate to runTest

Part of #386873

Changed files
+21 -23
nixos
+1 -1
nixos/tests/all-tests.nix
···
};
ayatana-indicators = runTest ./ayatana-indicators.nix;
babeld = runTest ./babeld.nix;
-
bazarr = handleTest ./bazarr.nix {};
+
bazarr = runTest ./bazarr.nix;
bcachefs = handleTestOn ["x86_64-linux" "aarch64-linux"] ./bcachefs.nix {};
beanstalkd = handleTest ./beanstalkd.nix {};
bees = handleTest ./bees.nix {};
+20 -22
nixos/tests/bazarr.nix
···
-
import ./make-test-python.nix (
-
{ lib, ... }:
+
{ lib, ... }:
-
let
-
port = 42069;
-
in
-
{
-
name = "bazarr";
-
meta.maintainers = with lib.maintainers; [ d-xo ];
+
let
+
port = 42069;
+
in
+
{
+
name = "bazarr";
+
meta.maintainers = with lib.maintainers; [ d-xo ];
-
nodes.machine =
-
{ pkgs, ... }:
-
{
-
services.bazarr = {
-
enable = true;
-
listenPort = port;
-
};
+
nodes.machine =
+
{ pkgs, ... }:
+
{
+
services.bazarr = {
+
enable = true;
+
listenPort = port;
};
+
};
-
testScript = ''
-
machine.wait_for_unit("bazarr.service")
-
machine.wait_for_open_port(${toString port})
-
machine.succeed("curl --fail http://localhost:${toString port}/")
-
'';
-
}
-
)
+
testScript = ''
+
machine.wait_for_unit("bazarr.service")
+
machine.wait_for_open_port(${toString port})
+
machine.succeed("curl --fail http://localhost:${toString port}/")
+
'';
+
}