2023-07-07 17:50:29 +01:00
|
|
|
{
|
|
|
|
name = "twingate";
|
|
|
|
|
|
|
|
nodes.machine.services.twingate.enable = true;
|
|
|
|
|
|
|
|
testScript = { nodes, ... }: ''
|
|
|
|
machine.wait_for_unit("twingate.service")
|
|
|
|
machine.succeed("twingate --version | grep '${nodes.machine.services.twingate.package.version}' >&2")
|
2023-07-22 23:23:26 +01:00
|
|
|
machine.succeed("twingate config log-level 'debug'")
|
|
|
|
machine.systemctl("restart twingate.service")
|
|
|
|
machine.succeed("grep 'debug' /etc/twingate/log_level.conf >&2")
|
|
|
|
machine.succeed("twingate config log-level | grep 'debug' >&2")
|
2023-07-07 17:50:29 +01:00
|
|
|
'';
|
|
|
|
}
|