python312Packages.dissect-extfs: 3.11 -> 3.12
[NixPkgs.git] / nixos / tests / fakeroute.nix
blob37b174524ab816bac07ddc6dd5d68dbc245f5719
1 import ./make-test-python.nix ({ lib, pkgs, ...} : {
2   name = "fakeroute";
3   meta.maintainers = with lib.maintainers; [ rnhmjoj ];
5   nodes.machine = { ... }: {
6     imports = [ ../modules/profiles/minimal.nix ];
7     services.fakeroute.enable = true;
8     services.fakeroute.route =
9       [ "216.102.187.130" "4.0.1.122"
10         "198.116.142.34" "63.199.8.242"
11       ];
12     environment.systemPackages = [ pkgs.traceroute ];
13   };
15   testScript =
16     ''
17       start_all()
18       machine.wait_for_unit("fakeroute.service")
19       machine.succeed("traceroute 127.0.0.1 | grep -q 216.102.187.130")
20     '';