summaryrefslogtreecommitdiffstats
path: root/nixos/tests/twingate.nix
blob: 095b8e380b07d8bace5bafc15712bc29bb0a1b28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
  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")
    '';
}