diff options
author | misuzu <bakalolka@gmail.com> | 2022-08-14 19:59:15 +0300 |
---|---|---|
committer | misuzu <bakalolka@gmail.com> | 2022-08-22 16:37:43 +0300 |
commit | c1ba9c9c8bbd14378871254126d67e921e118a8b (patch) | |
tree | 617ce355bc8e90e561cccab0e2a12043a2fcfcdb /nixos/tests/netbird.nix | |
parent | 5fcdceb0b2edf283c4bd041e751a380b45bd2243 (diff) |
nixosTests.netbird: init
Diffstat (limited to 'nixos/tests/netbird.nix')
-rw-r--r-- | nixos/tests/netbird.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/nixos/tests/netbird.nix b/nixos/tests/netbird.nix new file mode 100644 index 0000000000000..ef793cfe98810 --- /dev/null +++ b/nixos/tests/netbird.nix @@ -0,0 +1,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'") + ''; +}) |