Skip to contentSkip to conversation

tests: shell: Add test for chain rename.

PATCH Applied Varsha 2 participants 3 messages Oct 2, 2017 netfilter

lore
Share & tools
lore

Varsha

author
#0 lore raw

PATCH 1/1 tests: shell: Add test for chain rename.

From: Varsha Rao <[email protected]>

This patch adds tests for chain rename use case.

---
 tests/shell/testcases/chains/0013rename_1 | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100755 tests/shell/testcases/chains/0013rename_1
tests/shell/testcases/chains/0013rename_1 new file +9 -0
new file mode 100755
index 0000000..a69d855
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+set -e
+
+$NFT add table t
+$NFT add chain t c1
+# kernel should return EEXIST
+$NFT rename chain t c1 c2 2>/dev/null
+echo "E: Renamed chain with non existing chain" >&2
Signature · 1 line
2.13.6
author
#1 lore raw
Quoted 4 lines · Varsha

From: Varsha Rao <[email protected]>

This patch adds tests for chain rename use case.

Kindly ignore this patch as commit message is not proper.

Thanks,
Varsha