mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
nixos/tests/broadcast-box: init
This commit is contained in:
parent
4dbade0a18
commit
ab778dc6b6
2 changed files with 22 additions and 0 deletions
|
@ -264,6 +264,7 @@ in
|
||||||
bpf = handleTestOn [ "x86_64-linux" "aarch64-linux" ] ./bpf.nix { };
|
bpf = handleTestOn [ "x86_64-linux" "aarch64-linux" ] ./bpf.nix { };
|
||||||
bpftune = runTest ./bpftune.nix;
|
bpftune = runTest ./bpftune.nix;
|
||||||
breitbandmessung = runTest ./breitbandmessung.nix;
|
breitbandmessung = runTest ./breitbandmessung.nix;
|
||||||
|
broadcast-box = runTest ./broadcast-box.nix;
|
||||||
brscan5 = runTest ./brscan5.nix;
|
brscan5 = runTest ./brscan5.nix;
|
||||||
btrbk = runTest ./btrbk.nix;
|
btrbk = runTest ./btrbk.nix;
|
||||||
btrbk-doas = runTest ./btrbk-doas.nix;
|
btrbk-doas = runTest ./btrbk-doas.nix;
|
||||||
|
|
21
nixos/tests/broadcast-box.nix
Normal file
21
nixos/tests/broadcast-box.nix
Normal file
|
@ -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/")
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue