clan-core/checks/zt-tcp-relay/default.nix

21 lines
481 B
Nix
Raw Normal View History

2024-01-12 13:25:31 +00:00
(import ../lib/container-test.nix) ({ pkgs, ... }: {
name = "zt-tcp-relay";
nodes.machine = { self, ... }: {
imports = [
self.nixosModules.clanCore
self.clanModules.zt-tcp-relay
{
clanCore.machineName = "machine";
clanCore.clanDir = ./.;
}
];
};
testScript = ''
start_all()
machine.wait_for_unit("zt-tcp-relay.service")
out = machine.succeed("${pkgs.netcat}/bin/nc -z -v localhost 4443")
print(out)
'';
})