NUTS is a Pytest plugin enabling network testing using YAML files.
You can find the whole documentation at https://nuts.readthedocs.io/.
Install nuts using pip:
$ pip install nutsWrite tests in YAML File:
- test_class: TestNapalmBgpNeighbors
test_data:
- host: R1
local_id: 172.16.255.1
local_as: 45001
peer: 172.16.255.2
remote_as: 45002
remote_id: 0.0.0.0
is_enabled: true
is_up: false
- host: R2
peer: 172.16.255.2
is_up: falseRun Pytest:
$ pytest -v| Repository | Description | Documentation |
|---|---|---|
| nuts | Pytest plugin using YAML to execute network unit tests | https://nuts.readthedocs.io/ |
| nuts-containerlab-demo | Demo lab with containerlab to see Nuts in action | |
| nuts-testclient | Container with SSH server containing useful tools for testing | |
| nuts-client-tests | TestCases for (Linux) clients |

