2022-12-01 15:47:24 +00:00
|
|
|
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)
|
2023-05-20 02:10:21 +00:00
|
|
|
# Test basic functionality
|
2022-12-01 15:47:24 +00:00
|
|
|
machine.succeed("headscale namespaces create test")
|
2023-05-11 22:30:54 +00:00
|
|
|
machine.succeed("headscale preauthkeys -u test create")
|
2022-12-01 15:47:24 +00:00
|
|
|
'';
|
|
|
|
})
|