nixpkgs/nixos/tests/netbird.nix

24 lines
477 B
Nix
Raw Normal View History

import ./make-test-python.nix (
{ pkgs, lib, ... }:
{
name = "netbird";
2022-08-14 19:59:15 +03:00
meta.maintainers = with pkgs.lib.maintainers; [ ];
2022-08-14 19:59:15 +03:00
nodes = {
node =
{ ... }:
{
services.netbird.enable = true;
};
2022-08-14 19:59:15 +03:00
};
testScript = ''
start_all()
node.wait_for_unit("netbird-wt0.service")
node.wait_for_file("/var/run/netbird/sock")
node.succeed("netbird status | grep -q 'Daemon status: NeedsLogin'")
'';
}
)