about summary refs log tree commit diff
path: root/nixos/tests/iftop.nix
AgeCommit message (Collapse)AuthorFilesLines
2023-05-12nixos/tests/iftop.nix: get rid of `with lib`Anderson Torres1-3/+1
2021-01-10treewide: simplify pkgs.stdenv.lib -> pkgs.libDominik Xaver Hörl1-1/+1
The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
2019-11-26nixos/iftop: port test to python test-driverMaximilian Bosch1-13/+12
2018-06-01nixos/tests/iftop: fix non-deterministic failure (#41309)xeji1-5/+9
- make sure machines are fully booted before sending commands - test that capability setting in iftop module makes a difference
2018-04-07nixos/iftop: add moduleMaximilian Bosch1-0/+30
This patch is heavily inspired by bd0d8ed807d29faa3deee96bafcbbd76c8fa4060 which added a setcap wrapper for `mtr` in order to allow running `mtr` without `sudo`. The need for the capability `cap_net_raw` that can be registered using `setcap` has been documented in the Arch Wiki: https://wiki.archlinux.org/index.php/Capabilities#iftop A simple testcase has been added which starts two machines, one with a setcap wrapper for `iftop`, one without. Both testcases monitor the bandwidth usage of the machine using the options `-t -s 1` once, the machine with setcap wrapper is expected to succeed, the `iftop` on the machine without setcap wrapper is expected to return a non-zero exit code.