diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index b03125926e88..a2236c4f779b 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -264,6 +264,7 @@ in bpf = handleTestOn [ "x86_64-linux" "aarch64-linux" ] ./bpf.nix { }; bpftune = runTest ./bpftune.nix; breitbandmessung = runTest ./breitbandmessung.nix; + broadcast-box = runTest ./broadcast-box.nix; brscan5 = runTest ./brscan5.nix; btrbk = runTest ./btrbk.nix; btrbk-doas = runTest ./btrbk-doas.nix; diff --git a/nixos/tests/broadcast-box.nix b/nixos/tests/broadcast-box.nix new file mode 100644 index 000000000000..005cfc3dcd59 --- /dev/null +++ b/nixos/tests/broadcast-box.nix @@ -0,0 +1,21 @@ +{ pkgs, ... }: +{ + name = "broadcast-box"; + meta = { inherit (pkgs.broadcast-box.meta) maintainers; }; + + nodes.machine = { + services.broadcast-box = { + enable = true; + web = { + host = "127.0.0.1"; + port = 8080; + }; + }; + }; + + testScript = '' + machine.wait_for_unit("broadcast-box.service") + machine.wait_for_open_port(8080) + machine.succeed("curl --fail http://localhost:8080/") + ''; +}