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/nft-f/0021priority_variable_0 | 17 ----------------- tests/shell/testcases/nft-f/0022priority_variable_0 | 17 ----------------- tests/shell/testcases/nft-f/0023priority_variable_1 | 18 ------------------ tests/shell/testcases/nft-f/0024priority_variable_1 | 18 ------------------ tests/shell/testcases/nft-f/0025policy_variable_0 | 17 ----------------- tests/shell/testcases/nft-f/0026policy_variable_0 | 17 ----------------- tests/shell/testcases/nft-f/0027policy_variable_1 | 18 ------------------ tests/shell/testcases/nft-f/0028policy_variable_1 | 18 ------------------ 8 files changed, 140 deletions(-) delete mode 100755 tests/shell/testcases/nft-f/0021priority_variable_0 delete mode 100755 tests/shell/testcases/nft-f/0022priority_variable_0 delete mode 100755 tests/shell/testcases/nft-f/0023priority_variable_1 delete mode 100755 tests/shell/testcases/nft-f/0024priority_variable_1 delete mode 100644 tests/shell/testcases/nft-f/0025policy_variable_0 delete mode 100644 tests/shell/testcases/nft-f/0026policy_variable_0 delete mode 100644 tests/shell/testcases/nft-f/0027policy_variable_1 delete mode 100644 tests/shell/testcases/nft-f/0028policy_variable_1 (limited to 'tests/shell/testcases/nft-f') 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 -- cgit v1.2.3