]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: py: drop redundant JSON outputs
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 18 Jun 2024 15:31:46 +0000 (17:31 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 25 Jun 2024 15:20:12 +0000 (17:20 +0200)
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>
tests/py/ip/icmp.t.json.output
tests/py/ip6/icmpv6.t.json.output

index 52fd6016e116b4ee71c9289b7c77160015344065..d79e72b596699055f994e97013137d8cac38f182 100644 (file)
@@ -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
 [
     {
index f29b346c0c9baa63c9983426ae36c2387d32a7db..5d33780ee82bac660f568276fa81d79586274384 100644 (file)
     }
 ]
 
-# 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}
 [
     {