about summary refs log tree commit diff
path: root/nixos/tests/twingate.nix
blob: f8bede09d9f2629270568e651dd265993d42bbdc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
  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")
    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")
  '';
}