]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests/shell: Fix flowtable test cases
authorPhil Sutter <phil@nwl.cc>
Mon, 19 Mar 2018 17:02:04 +0000 (18:02 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 20 Mar 2018 12:06:59 +0000 (13:06 +0100)
commita55d79aa68266c790f3767ba240c3bdee247d511
tree169f9dc2049080676c8fb8f6b8388a4b79ac5944
parentfe6a1af86d5a4b89bd116efdab419074261efd34
tests/shell: Fix flowtable test cases

The major problem here was that existence of network interfaces 'eth0'
and 'wlan0' was assumed. Overcome this by just using 'lo' instead, which
exists even in newly created netns by default.

Another minor issue was false naming of 0004delete_after_add0 - the
expected return code is supposed to be separated by '_' from the
remaining filename.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/testcases/flowtable/0001flowtable_0
tests/shell/testcases/flowtable/0002create_flowtable_0
tests/shell/testcases/flowtable/0003add_after_flush_0
tests/shell/testcases/flowtable/0004delete_after_add0 [deleted file]
tests/shell/testcases/flowtable/0004delete_after_add_0 [new file with mode: 0755]
tests/shell/testcases/flowtable/0005delete_in_use_1
tests/shell/testcases/flowtable/dumps/0001flowtable_0.nft