From 7e6c6d92d2a1e770e55e8e27314f55df9b198ce9 Mon Sep 17 00:00:00 2001 From: Elise Lennion Date: Thu, 26 Jan 2017 15:21:45 -0200 Subject: tests: py: Add tests for stateful objects These test for adding counters and quotas, to tables of different families, and for referencing the objects in rules. Signed-off-by: Elise Lennion Signed-off-by: Pablo Neira Ayuso --- tests/py/any/objects.t | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/py/any/objects.t (limited to 'tests/py/any/objects.t') diff --git a/tests/py/any/objects.t b/tests/py/any/objects.t new file mode 100644 index 00000000..d44696da --- /dev/null +++ b/tests/py/any/objects.t @@ -0,0 +1,13 @@ +:output;type filter hook output priority 0 +:ingress;type filter hook ingress device lo priority 0 + +*ip;test-ip4;output +*ip6;test-ip6;output +*inet;test-inet;output +*arp;test-arp;output +*bridge;test-bridge;output +*netdev;test-netdev;ingress + +%cnt1 type counter;ok +%qt1 type quota 25 mbytes;ok +%qt2 type quota over 1 kbytes;ok -- cgit v1.2.3