blocklist Test Suite
The DPDK device blocklisting test suite.
This testing suite ensures tests the port blocklisting functionality of testpmd.
- class TestBlocklist
Bases:
TestSuite
DPDK device blocklisting test suite.
- verify_blocklisted_ports(ports_to_block: list[framework.testbed_model.port.Port])
Runs testpmd with the given ports blocklisted and verifies the ports.
- no_blocklisted()
Run testpmd with no blocklisted device.
- Steps:
Run testpmd without specifying allowed or blocked ports.
- Verify:
That no ports were blocked.
- one_port_blocklisted()
Run testpmd with one blocklisted port.
- Steps:
Run testpmd with one only one blocklisted port and allowing all the other ones.
- Verify:
That the port was successfully blocklisted.
- all_but_one_port_blocklisted()
Run testpmd with all but one blocklisted port.
- Steps:
Run testpmd with only one allowed port, blocking all the other ones.
- Verify:
That all specified ports were successfully blocklisted.