mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 01:53:09 +09:00
parent
bd84275f60
commit
add74983e7
2 changed files with 18 additions and 20 deletions
|
@ -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 {};
|
||||||
|
|
|
@ -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/")
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue