path: root/tests/shell/testcases/rule_management/0001addposition_0
diff options
authorPhil Sutter <>2018-05-09 16:03:43 +0200
committerPablo Neira Ayuso <>2018-05-09 18:29:21 +0200
commita4dab4ecde114e0b3a6537a5cc7accd60dd25f17 (patch)
tree04948f8b4ed5ac23f346a18e6a68ea4bd8d039a5 /tests/shell/testcases/rule_management/0001addposition_0
parent816d8c7659c1d90ce6827baaa939820a3bae2ae0 (diff)
tests/shell: Extend rule_management/0001addposition_0
Combine it with 0002insertposition_0 due to the many similarities, extend it to test 'handle' and 'index' parameters as well and rename the testcase accordingly. Also add a new 0002addinsertlocation_1 which tests that wrong argument to all of the location parameters fails. Signed-off-by: Phil Sutter <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'tests/shell/testcases/rule_management/0001addposition_0')
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/shell/testcases/rule_management/0001addposition_0 b/tests/shell/testcases/rule_management/0001addposition_0
deleted file mode 100755
index ee90d923..00000000
--- a/tests/shell/testcases/rule_management/0001addposition_0
+++ /dev/null
@@ -1,11 +0,0 @@
-# tests for Netfilter bug #965 and the related fix
-# (regarding rule management with a given position/handle spec)
-set -e
-$NFT add table t
-$NFT add chain t c
-$NFT add rule t c accept # should have handle 2
-$NFT add rule t c accept # should have handle 3
-$NFT add rule t c position 2 drop