From b59e461231ca5bedfd0ebd1fdd4da4cc961b1b60 Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Sun, 19 Nov 2017 18:04:32 +0530 Subject: tests: shell: Rename 0025named_limit_0 to 0026named_limit_0 This renames file 0025named_limit_0 to 0026named_limit_0, there is already a test whose prefix is 0025. Signed-off-by: Varsha Rao Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/sets/0025named_limit_0 | 27 --------------------------- tests/shell/testcases/sets/0026named_limit_0 | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 27 deletions(-) delete mode 100755 tests/shell/testcases/sets/0025named_limit_0 create mode 100755 tests/shell/testcases/sets/0026named_limit_0 (limited to 'tests') diff --git a/tests/shell/testcases/sets/0025named_limit_0 b/tests/shell/testcases/sets/0025named_limit_0 deleted file mode 100755 index 91553f34..00000000 --- a/tests/shell/testcases/sets/0025named_limit_0 +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -# This is the testscase: -# * creating valid named limits -# * referencing them from a valid rule - -tmpfile=$(mktemp) -if [ ! -w $tmpfile ] ; then - echo "Failed to create tmp file" >&2 - exit 0 -fi - -trap "rm -rf $tmpfile" EXIT # cleanup if aborted - -echo " -table ip filter { - limit http-traffic { - rate 1/second - } - chain input { - type filter hook input priority 0; policy accept; - limit name tcp dport map { 80 : "http-traffic", 443 : "http-traffic"} - } -}" > $tmpfile - -set -e -$NFT -f $tmpfile diff --git a/tests/shell/testcases/sets/0026named_limit_0 b/tests/shell/testcases/sets/0026named_limit_0 new file mode 100755 index 00000000..91553f34 --- /dev/null +++ b/tests/shell/testcases/sets/0026named_limit_0 @@ -0,0 +1,27 @@ +#!/bin/bash + +# This is the testscase: +# * creating valid named limits +# * referencing them from a valid rule + +tmpfile=$(mktemp) +if [ ! -w $tmpfile ] ; then + echo "Failed to create tmp file" >&2 + exit 0 +fi + +trap "rm -rf $tmpfile" EXIT # cleanup if aborted + +echo " +table ip filter { + limit http-traffic { + rate 1/second + } + chain input { + type filter hook input priority 0; policy accept; + limit name tcp dport map { 80 : "http-traffic", 443 : "http-traffic"} + } +}" > $tmpfile + +set -e +$NFT -f $tmpfile -- cgit v1.2.3