lol

nixosTests.audiobookshelf: migrate to runTest

Part Of #386873

+18 -20
+1 -1
nixos/tests/all-tests.nix
··· 182 182 atop = handleTest ./atop.nix {}; 183 183 atticd = runTest ./atticd.nix; 184 184 atuin = runTest ./atuin.nix; 185 - audiobookshelf = handleTest ./audiobookshelf.nix {}; 185 + audiobookshelf = runTest ./audiobookshelf.nix; 186 186 auth-mysql = handleTest ./auth-mysql.nix {}; 187 187 authelia = handleTest ./authelia.nix {}; 188 188 auto-cpufreq = handleTest ./auto-cpufreq.nix {};
+17 -19
nixos/tests/audiobookshelf.nix
··· 1 - import ./make-test-python.nix ( 2 - { lib, ... }: 3 - { 4 - name = "audiobookshelf"; 5 - meta.maintainers = with lib.maintainers; [ wietsedv ]; 1 + { lib, ... }: 2 + { 3 + name = "audiobookshelf"; 4 + meta.maintainers = with lib.maintainers; [ wietsedv ]; 6 5 7 - nodes.machine = 8 - { pkgs, ... }: 9 - { 10 - services.audiobookshelf = { 11 - enable = true; 12 - port = 1234; 13 - }; 6 + nodes.machine = 7 + { pkgs, ... }: 8 + { 9 + services.audiobookshelf = { 10 + enable = true; 11 + port = 1234; 14 12 }; 13 + }; 15 14 16 - testScript = '' 17 - machine.wait_for_unit("audiobookshelf.service") 18 - machine.wait_for_open_port(1234) 19 - machine.succeed("curl --fail http://localhost:1234/") 20 - ''; 21 - } 22 - ) 15 + testScript = '' 16 + machine.wait_for_unit("audiobookshelf.service") 17 + machine.wait_for_open_port(1234) 18 + machine.succeed("curl --fail http://localhost:1234/") 19 + ''; 20 + }