summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2024-06-18 17:31:46 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2024-06-25 17:20:12 +0200
commitf13fd62ef1e2755ed5eef11adbe0e8a479528f72 (patch)
tree078cd516e38b13c57d33e9db1a5349e5a3e53e2d
parent6ef04f99382c074c3669de31cf0a70651662b261 (diff)
tests: py: drop redundant JSON outputs
8abe71f862e6 ("tests: py: Warn if recorded JSON output matches the input") adds a warning on duplicated JSON outputs. Remove them when running tests with -j: WARNING: Recorded JSON output matches input for: icmp code { 2, 4, 54, 33, 56} Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--tests/py/ip/icmp.t.json.output24
-rw-r--r--tests/py/ip6/icmpv6.t.json.output62
2 files changed, 0 insertions, 86 deletions
diff --git a/tests/py/ip/icmp.t.json.output b/tests/py/ip/icmp.t.json.output
index 52fd6016..d79e72b5 100644
--- a/tests/py/ip/icmp.t.json.output
+++ b/tests/py/ip/icmp.t.json.output
@@ -1,27 +1,3 @@
-# icmp code { 2, 4, 54, 33, 56}
-[
- {
- "match": {
- "left": {
- "payload": {
- "field": "code",
- "protocol": "icmp"
- }
- },
- "op": "==",
- "right": {
- "set": [
- 2,
- 4,
- 33,
- 54,
- 56
- ]
- }
- }
- }
-]
-
# icmp id 1245 log
[
{
diff --git a/tests/py/ip6/icmpv6.t.json.output b/tests/py/ip6/icmpv6.t.json.output
index f29b346c..5d33780e 100644
--- a/tests/py/ip6/icmpv6.t.json.output
+++ b/tests/py/ip6/icmpv6.t.json.output
@@ -93,68 +93,6 @@
}
]
-# icmpv6 code 4
-[
- {
- "match": {
- "left": {
- "payload": {
- "field": "code",
- "protocol": "icmpv6"
- }
- },
- "op": "==",
- "right": 4
- }
- }
-]
-
-# icmpv6 code 3-66
-[
- {
- "match": {
- "left": {
- "payload": {
- "field": "code",
- "protocol": "icmpv6"
- }
- },
- "op": "==",
- "right": {
- "range": [
- 3,
- 66
- ]
- }
- }
- }
-]
-
-# icmpv6 code {5, 6, 7} accept
-[
- {
- "match": {
- "left": {
- "payload": {
- "field": "code",
- "protocol": "icmpv6"
- }
- },
- "op": "==",
- "right": {
- "set": [
- 5,
- 6,
- 7
- ]
- }
- }
- },
- {
- "accept": null
- }
-]
-
# icmpv6 code { 3-66}
[
{