summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/nft-f
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2019-08-09 11:16:00 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2019-08-09 12:36:45 +0200
commiteb14363d44cea5f9fe283825a89894575136adf1 (patch)
tree78c27edb597f2b903fc8b8d33566759f087d69f4 /tests/shell/testcases/nft-f
parentdba4a9b4b5fe2c4b6929be799fdb9332fc653e1b (diff)
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 <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/nft-f')
-rwxr-xr-xtests/shell/testcases/nft-f/0021priority_variable_017
-rwxr-xr-xtests/shell/testcases/nft-f/0022priority_variable_017
-rwxr-xr-xtests/shell/testcases/nft-f/0023priority_variable_118
-rwxr-xr-xtests/shell/testcases/nft-f/0024priority_variable_118
-rw-r--r--tests/shell/testcases/nft-f/0025policy_variable_017
-rw-r--r--tests/shell/testcases/nft-f/0026policy_variable_017
-rw-r--r--tests/shell/testcases/nft-f/0027policy_variable_118
-rw-r--r--tests/shell/testcases/nft-f/0028policy_variable_118
8 files changed, 0 insertions, 140 deletions
diff --git a/tests/shell/testcases/nft-f/0021priority_variable_0 b/tests/shell/testcases/nft-f/0021priority_variable_0
deleted file mode 100755
index 2b143dbb..00000000
--- a/tests/shell/testcases/nft-f/0021priority_variable_0
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-# Tests use of variables in priority specification
-
-set -e
-
-RULESET="
-define pri = filter
-
-table inet global {
- chain prerouting {
- type filter hook prerouting priority \$pri
- policy accept
- }
-}"
-
-$NFT -f - <<< "$RULESET"
diff --git a/tests/shell/testcases/nft-f/0022priority_variable_0 b/tests/shell/testcases/nft-f/0022priority_variable_0
deleted file mode 100755
index 51bc5eb1..00000000
--- a/tests/shell/testcases/nft-f/0022priority_variable_0
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-# Tests use of variables in priority specification
-
-set -e
-
-RULESET="
-define pri = 10
-
-table inet global {
- chain prerouting {
- type filter hook prerouting priority \$pri
- policy accept
- }
-}"
-
-$NFT -f - <<< "$RULESET"
diff --git a/tests/shell/testcases/nft-f/0023priority_variable_1 b/tests/shell/testcases/nft-f/0023priority_variable_1
deleted file mode 100755
index eddaf5b9..00000000
--- a/tests/shell/testcases/nft-f/0023priority_variable_1
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash
-
-# Tests use of variables in priority specification
-
-set -e
-
-RULESET="
-define pri = *
-
-table inet global {
- chain prerouting {
- type filter hook prerouting priority \$pri
- policy accept
- }
-}"
-
-$NFT -f - <<< "$RULESET" && exit 1
-exit 0
diff --git a/tests/shell/testcases/nft-f/0024priority_variable_1 b/tests/shell/testcases/nft-f/0024priority_variable_1
deleted file mode 100755
index 592cb56b..00000000
--- a/tests/shell/testcases/nft-f/0024priority_variable_1
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash
-
-# Tests use of variables in priority specification
-
-set -e
-
-RULESET="
-define pri = { 127.0.0.1 }
-
-table inet global {
- chain prerouting {
- type filter hook prerouting priority \$pri
- policy accept
- }
-}"
-
-$NFT -f - <<< "$RULESET" && exit 1
-exit 0
diff --git a/tests/shell/testcases/nft-f/0025policy_variable_0 b/tests/shell/testcases/nft-f/0025policy_variable_0
deleted file mode 100644
index b88e9680..00000000
--- a/tests/shell/testcases/nft-f/0025policy_variable_0
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-# Tests use of variables in chain policy
-
-set -e
-
-RULESET="
-define default_policy = \"accept\"
-
-table inet global {
- chain prerouting {
- type filter hook prerouting priority filter
- policy \$default_policy
- }
-}"
-
-$NFT -f - <<< "$RULESET"
diff --git a/tests/shell/testcases/nft-f/0026policy_variable_0 b/tests/shell/testcases/nft-f/0026policy_variable_0
deleted file mode 100644
index d4d98ede..00000000
--- a/tests/shell/testcases/nft-f/0026policy_variable_0
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/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"
diff --git a/tests/shell/testcases/nft-f/0027policy_variable_1 b/tests/shell/testcases/nft-f/0027policy_variable_1
deleted file mode 100644
index ae35516c..00000000
--- a/tests/shell/testcases/nft-f/0027policy_variable_1
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash
-
-# Tests use of variables in chain policy
-
-set -e
-
-RULESET="
-define default_policy = { 127.0.0.1 }
-
-table inet global {
- chain prerouting {
- type filter hook prerouting priority filter
- policy \$default_policy
- }
-}"
-
-$NFT -f - <<< "$RULESET" && exit 1
-exit 0
diff --git a/tests/shell/testcases/nft-f/0028policy_variable_1 b/tests/shell/testcases/nft-f/0028policy_variable_1
deleted file mode 100644
index 027eb015..00000000
--- a/tests/shell/testcases/nft-f/0028policy_variable_1
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash
-
-# Tests use of variables in priority specification
-
-set -e
-
-RULESET="
-define default_policy = *
-
-table inet global {
- chain prerouting {
- type filter hook prerouting priority filter
- policy \$default_policy
- }
-}"
-
-$NFT -f - <<< "$RULESET" && exit 1
-exit 0