nixosTests.audiobookshelf: migrate to runTest

Part Of #386873

Changed files
+18 -20
nixos
+1 -1
nixos/tests/all-tests.nix
···
atop = handleTest ./atop.nix {};
atticd = runTest ./atticd.nix;
atuin = runTest ./atuin.nix;
-
audiobookshelf = handleTest ./audiobookshelf.nix {};
auth-mysql = handleTest ./auth-mysql.nix {};
authelia = handleTest ./authelia.nix {};
auto-cpufreq = handleTest ./auto-cpufreq.nix {};
···
atop = handleTest ./atop.nix {};
atticd = runTest ./atticd.nix;
atuin = runTest ./atuin.nix;
+
audiobookshelf = runTest ./audiobookshelf.nix;
auth-mysql = handleTest ./auth-mysql.nix {};
authelia = handleTest ./authelia.nix {};
auto-cpufreq = handleTest ./auto-cpufreq.nix {};
+17 -19
nixos/tests/audiobookshelf.nix
···
-
import ./make-test-python.nix (
-
{ lib, ... }:
-
{
-
name = "audiobookshelf";
-
meta.maintainers = with lib.maintainers; [ wietsedv ];
-
nodes.machine =
-
{ pkgs, ... }:
-
{
-
services.audiobookshelf = {
-
enable = true;
-
port = 1234;
-
};
};
-
testScript = ''
-
machine.wait_for_unit("audiobookshelf.service")
-
machine.wait_for_open_port(1234)
-
machine.succeed("curl --fail http://localhost:1234/")
-
'';
-
}
-
)
···
+
{ lib, ... }:
+
{
+
name = "audiobookshelf";
+
meta.maintainers = with lib.maintainers; [ wietsedv ];
+
nodes.machine =
+
{ pkgs, ... }:
+
{
+
services.audiobookshelf = {
+
enable = true;
+
port = 1234;
};
+
};
+
testScript = ''
+
machine.wait_for_unit("audiobookshelf.service")
+
machine.wait_for_open_port(1234)
+
machine.succeed("curl --fail http://localhost:1234/")
+
'';
+
}