1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00
nixpkgs/nixos/tests/twingate.nix
2023-07-23 01:24:51 +03:00

15 lines
512 B
Nix

{
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")
'';
}