1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-10 01:53:09 +09:00

nixosTests.audiobookshelf: migrate to runTest

Part Of #386873
This commit is contained in:
Martin Weinelt 2025-03-13 23:43:22 +01:00
parent bd84275f60
commit add74983e7
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 18 additions and 20 deletions

View file

@ -182,7 +182,7 @@ in {
atop = handleTest ./atop.nix {}; atop = handleTest ./atop.nix {};
atticd = runTest ./atticd.nix; atticd = runTest ./atticd.nix;
atuin = runTest ./atuin.nix; atuin = runTest ./atuin.nix;
audiobookshelf = handleTest ./audiobookshelf.nix {}; audiobookshelf = runTest ./audiobookshelf.nix;
auth-mysql = handleTest ./auth-mysql.nix {}; auth-mysql = handleTest ./auth-mysql.nix {};
authelia = handleTest ./authelia.nix {}; authelia = handleTest ./authelia.nix {};
auto-cpufreq = handleTest ./auto-cpufreq.nix {}; auto-cpufreq = handleTest ./auto-cpufreq.nix {};

View file

@ -1,22 +1,20 @@
import ./make-test-python.nix ( { lib, ... }:
{ lib, ... }: {
{ name = "audiobookshelf";
name = "audiobookshelf"; meta.maintainers = with lib.maintainers; [ wietsedv ];
meta.maintainers = with lib.maintainers; [ wietsedv ];
nodes.machine = nodes.machine =
{ pkgs, ... }: { pkgs, ... }:
{ {
services.audiobookshelf = { services.audiobookshelf = {
enable = true; enable = true;
port = 1234; port = 1234;
};
}; };
};
testScript = '' testScript = ''
machine.wait_for_unit("audiobookshelf.service") machine.wait_for_unit("audiobookshelf.service")
machine.wait_for_open_port(1234) machine.wait_for_open_port(1234)
machine.succeed("curl --fail http://localhost:1234/") machine.succeed("curl --fail http://localhost:1234/")
''; '';
} }
)