about summary refs log tree commit diff
path: root/nixos/tests/netbird.nix
blob: ef793cfe988101703e252d6886b52f63879e6c6c (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 = "netbird";

  meta = with pkgs.lib.maintainers; {
    maintainers = [ misuzu ];
  };

  nodes = {
    node = { ... }: {
      services.netbird.enable = true;
    };
  };

  testScript = ''
    start_all()
    node.wait_for_unit("netbird.service")
    node.wait_for_file("/var/run/netbird/sock")
    node.succeed("netbird status | grep -q 'Daemon status: NeedsLogin'")
  '';
})