about summary refs log tree commit diff
path: root/nixos/tests/deconz.nix
blob: cbe721ba4925139096882cf5bd54f957c3db785f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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}")
  '';
})