1 import ./make-test-python.nix {
5 server = { pkgs, ... }: {
6 environment.systemPackages = [ pkgs.dnsutils ];
13 "printer.lan" = "192.168.178.3,2001:0db8:85a3:08d3:1319:8a2e:0370:7344";
17 default = [ "8.8.8.8" "1.1.1.1" ];
28 with subtest("Service test"):
29 server.wait_for_unit("blocky.service")
30 server.wait_for_open_port(53)
31 server.wait_for_open_port(5000)
32 server.succeed("dig @127.0.0.1 +short -x 192.168.178.3 | grep -qF printer.lan")