diff options
author | Phil Sutter <phil@nwl.cc> | 2017-08-15 01:43:05 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-08-15 12:36:11 +0200 |
commit | b2506e5504fed23ca9229ea398cab8998aa03712 (patch) | |
tree | ce41bfbe414f660041837fb289799cbb2c2ba1ca /tests/monitor/testcases/simple.t | |
parent | 0155bc4df3e9985e4784baff7752959e1b817900 (diff) |
tests: Merge monitor and echo test suites
The two test suites were pretty similar already, and since echo output
is supposed to be identical to monitor output apart from delete
commands, they can be merged together with litte effort.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/monitor/testcases/simple.t')
-rw-r--r-- | tests/monitor/testcases/simple.t | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/monitor/testcases/simple.t b/tests/monitor/testcases/simple.t new file mode 100644 index 00000000..e4dc073e --- /dev/null +++ b/tests/monitor/testcases/simple.t @@ -0,0 +1,20 @@ +# first the setup +I add table ip t +I add chain ip t c +O - + +I add rule ip t c accept +O - + +I add rule ip t c tcp dport { 22, 80, 443 } accept +O - + +I insert rule ip t c counter accept +O add rule ip t c counter packets 0 bytes 0 accept + +I replace rule ip t c handle 2 accept comment "foo bar" +O delete rule ip t c handle 2 +O add rule ip t c accept comment "foo bar" + +I add counter ip t cnt +O add counter ip t cnt { packets 0 bytes 0 } |