mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-11 07:15:54 +03:00
22 lines
443 B
Nix
22 lines
443 B
Nix
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-wt0.service")
|
|
node.wait_for_file("/var/run/netbird/sock")
|
|
node.succeed("netbird status | grep -q 'Daemon status: NeedsLogin'")
|
|
'';
|
|
})
|