]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: py: Add suport for stateful objects in python tests
authorElise Lennion <elise.lennion@gmail.com>
Thu, 26 Jan 2017 17:18:25 +0000 (15:18 -0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 27 Jan 2017 12:33:20 +0000 (13:33 +0100)
commit153ef09be469ae9de41d912c7885f33ce47d843d
tree5b70d62c060b077f6fa9336d5cbfc9ec63968848
parentf32c90da056aacfb24db1c67a6283e2ecdbe6602
tests: py: Add suport for stateful objects in python tests

This allows to write pytests using the new stateful objects.

To add an object use the symbol '%', followed by the name, type and
specifications (currently used in quota):

%cnt1 type counter;ok # Adds the counter cnt1 to all tables

%qt1 type quota over 25 mbytes;ok # Adds the quota qt1 to all tables

Signed-off-by: Elise Lennion <elise.lennion@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/py/nft-test.py