diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2023-09-17 20:04:28 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2023-10-16 20:49:41 +0200 |
commit | f561e395bd8b59aff8fe04df30692c4ae9b2bf83 (patch) | |
tree | f8e2fb16c44c00a93830332fe282acc38a4cd414 /nixos/tests/deconz.nix | |
parent | 4164383dd4f63c5725f099e618665fe0130b49ef (diff) |
nixos/tests/deconz: init
Diffstat (limited to 'nixos/tests/deconz.nix')
-rw-r--r-- | nixos/tests/deconz.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nixos/tests/deconz.nix b/nixos/tests/deconz.nix new file mode 100644 index 0000000000000..cbe721ba49251 --- /dev/null +++ b/nixos/tests/deconz.nix @@ -0,0 +1,28 @@ +import ./make-test-python.nix ({ pkgs, lib, ... }: +let + httpPort = 800; +in +{ + name = "deconz"; + + meta.maintainers = with lib.maintainers; [ + bjornfor + ]; + + nodes.machine = { config, pkgs, lib, ... }: { + nixpkgs.config.allowUnfree = true; + services.deconz = { + enable = true; + inherit httpPort; + extraArgs = [ + "--dbg-err=2" + "--dbg-info=2" + ]; + }; + }; + + testScript = '' + machine.wait_for_unit("deconz.service") + machine.succeed("curl -sfL http://localhost:${toString httpPort}") + ''; +}) |