a3d4720129
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
17 lines
510 B
Nix
17 lines
510 B
Nix
import ./make-test-python.nix ({ pkgs, lib, ... }: {
|
|
name = "headscale";
|
|
meta.maintainers = with lib.maintainers; [ misterio77 ];
|
|
|
|
nodes.machine = { ... }: {
|
|
services.headscale.enable = true;
|
|
environment.systemPackages = [ pkgs.headscale ];
|
|
};
|
|
|
|
testScript = ''
|
|
machine.wait_for_unit("headscale")
|
|
machine.wait_for_open_port(8080)
|
|
# Test basic funcionality
|
|
machine.succeed("headscale namespaces create test")
|
|
machine.succeed("headscale preauthkeys -n test create")
|
|
'';
|
|
})
|