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