From eb14363d44cea5f9fe283825a89894575136adf1 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 9 Aug 2019 11:16:00 +0200 Subject: tests: shell: move chain priority and policy to chain folder Move new chain tests for variable priority and policy to chain folder. Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/chains/0036policy_variable_0 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 tests/shell/testcases/chains/0036policy_variable_0 (limited to 'tests/shell/testcases/chains/0036policy_variable_0') diff --git a/tests/shell/testcases/chains/0036policy_variable_0 b/tests/shell/testcases/chains/0036policy_variable_0 new file mode 100755 index 00000000..d4d98ede --- /dev/null +++ b/tests/shell/testcases/chains/0036policy_variable_0 @@ -0,0 +1,17 @@ +#!/bin/bash + +# Tests use of variables in chain policy + +set -e + +RULESET=" +define default_policy = \"drop\" + +table inet global { + chain prerouting { + type filter hook prerouting priority filter + policy \$default_policy + } +}" + +$NFT -f - <<< "$RULESET" -- cgit v1.2.3