1 import ./make-test-python.nix ({ lib, ... }: {
3 meta.maintainers = with lib.maintainers; [ joachifm ];
5 nodes.client = { pkgs, ... }: {
6 boot.kernelParams = [ "audit=0" "apparmor=0" "quiet" ];
7 networking.firewall.enable = false;
8 networking.useDHCP = false;
10 environment.systemPackages = [ pkgs.netcat ];
11 services.tor.enable = true;
12 services.tor.client.enable = true;
13 services.tor.settings.ControlPort = 9051;
17 client.wait_for_unit("tor.service")
18 client.wait_for_open_port(9051)
19 assert "514 Authentication required." in client.succeed(
20 "echo GETINFO version | nc 127.0.0.1 9051"