about summary refs log tree commit diff
path: root/nixpkgs/nixos/tests/technitium-dns-server.nix
blob: 016c9d4ecead5b3d705e3a12f8b1ab8277d2e943 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import ./make-test-python.nix ({pkgs, lib, ...}:
{
  name = "technitium-dns-server";

  nodes = {
    machine = {pkgs, ...}: {
      services.technitium-dns-server = {
        enable = true;
        openFirewall = true;
      };
    };
  };

  testScript = ''
    start_all()
    machine.wait_for_unit("technitium-dns-server.service")
    machine.wait_for_open_port(53)
  '';

  meta.maintainers = with lib.maintainers; [ fabianrig ];
})