]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: py: Drop stale entries since redundant test case removal
authorPhil Sutter <phil@nwl.cc>
Wed, 13 Aug 2025 12:14:45 +0000 (14:14 +0200)
committerPhil Sutter <phil@nwl.cc>
Mon, 18 Aug 2025 20:57:02 +0000 (22:57 +0200)
Fixed commit left stale JSON equivalents and payload records in place,
drop them.

Fixes: ec1ea13314fa5 ("tests: remove redundant test cases")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Reviewed-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/py/any/meta.t.json
tests/py/ip6/dst.t.json
tests/py/ip6/dst.t.payload.inet
tests/py/ip6/dst.t.payload.ip6
tests/py/ip6/frag.t.json
tests/py/ip6/ip6.t.json

index 8dcd1e13243de6c66edf367ba492b2095769d022..85406efc4d773e6ebdd6494930e9afa76613a0ec 100644 (file)
     }
 ]
 
-# meta cgroup {1048577-1048578}
-[
-    {
-        "match": {
-            "left": {
-                "meta": { "key": "cgroup" }
-            },
-            "op": "==",
-            "right": {
-                "set": [
-                    {
-                        "range": [ 1048577, 1048578 ]
-                    }
-                ]
-            }
-        }
-    }
-]
-
-# meta cgroup != { 1048577-1048578}
-[
-    {
-        "match": {
-            "left": {
-                "meta": { "key": "cgroup" }
-            },
-            "op": "!=",
-            "right": {
-                "set": [
-                    {
-                        "range": [ 1048577, 1048578 ]
-                    }
-                ]
-            }
-        }
-    }
-]
-
 # meta iif . meta oif { "lo" . "lo" }
 [
     {
index e947a76f4f4a90ae838dd2855ea9935e05467265..7ba4572c50bbe99fc2856ac1ed04c3b2336376b0 100644 (file)
         }
     }
 ]
-
-# dst hdrlength != { 33, 55, 67, 88}
-[
-    {
-        "match": {
-            "left": {
-                "exthdr": {
-                    "field": "hdrlength",
-                    "name": "dst"
-                }
-            },
-            "op": "!=",
-            "right": {
-                "set": [
-                    33,
-                    55,
-                    67,
-                    88
-                ]
-            }
-        }
-    }
-]
index 476fdbcd73630e64680634d32d4fd3db95530466..eb7a87d577a3129d5a4e2371ad417738da2634ea 100644 (file)
@@ -117,13 +117,3 @@ ip6 test-ip6 input
   [ cmp eq reg 1 0x0000000a ]
   [ exthdr load ipv6 1b @ 60 + 1 => reg 1 ]
   [ lookup reg 1 set __set%d ]
-
-# dst hdrlength != { 33, 55, 67, 88}
-__set%d test-ip6 3
-__set%d test-ip6 0
-       element 00000021  : 0 [end]     element 00000037  : 0 [end]     element 00000043  : 0 [end]     element 00000058  : 0 [end]
-ip6 test-ip6 input
-  [ meta load nfproto => reg 1 ]
-  [ cmp eq reg 1 0x0000000a ]
-  [ exthdr load ipv6 1b @ 60 + 1 => reg 1 ]
-  [ lookup reg 1 set __set%d 0x1 ]
index af3bab9b1f75f151d4f1935798c07f3f9049b1b8..ac1fc8b39a2b76e6e473f187ba60f4b57efe1a16 100644 (file)
@@ -87,11 +87,3 @@ __set%d test-ip6 0
 ip6 test-ip6 input
   [ exthdr load ipv6 1b @ 60 + 1 => reg 1 ]
   [ lookup reg 1 set __set%d ]
-
-# dst hdrlength != { 33, 55, 67, 88}
-__set%d test-ip6 3
-__set%d test-ip6 0
-       element 00000021  : 0 [end]     element 00000037  : 0 [end]     element 00000043  : 0 [end]     element 00000058  : 0 [end]
-ip6 test-ip6 input
-  [ exthdr load ipv6 1b @ 60 + 1 => reg 1 ]
-  [ lookup reg 1 set __set%d 0x1 ]
index b8c06dfb3429ce0420cbc6ecad50774e1af46c10..6953e872a8f97335b7dbe460e6640bd083687053 100644 (file)
     }
 ]
 
-# frag reserved { 33-55}
-[
-    {
-        "match": {
-            "left": {
-                "exthdr": {
-                    "field": "reserved",
-                    "name": "frag"
-                }
-            },
-           "op": "==",
-            "right": {
-                "set": [
-                    { "range": [ 33, 55 ] }
-                ]
-            }
-        }
-    }
-]
-
-# frag reserved != { 33-55}
-[
-    {
-        "match": {
-            "left": {
-                "exthdr": {
-                    "field": "reserved",
-                    "name": "frag"
-                }
-            },
-            "op": "!=",
-            "right": {
-                "set": [
-                    { "range": [ 33, 55 ] }
-                ]
-            }
-        }
-    }
-]
-
 # frag frag-off 22
 [
     {
     }
 ]
 
-# frag frag-off { 33-55}
-[
-    {
-        "match": {
-            "left": {
-                "exthdr": {
-                    "field": "frag-off",
-                    "name": "frag"
-                }
-            },
-           "op": "==",
-            "right": {
-                "set": [
-                    { "range": [ 33, 55 ] }
-                ]
-            }
-        }
-    }
-]
-
-# frag frag-off != { 33-55}
-[
-    {
-        "match": {
-            "left": {
-                "exthdr": {
-                    "field": "frag-off",
-                    "name": "frag"
-                }
-            },
-            "op": "!=",
-            "right": {
-                "set": [
-                    { "range": [ 33, 55 ] }
-                ]
-            }
-        }
-    }
-]
-
 # frag reserved2 1
 [
     {
         }
     }
 ]
-
-# frag id { 33-55}
-[
-    {
-        "match": {
-            "left": {
-                "exthdr": {
-                    "field": "id",
-                    "name": "frag"
-                }
-            },
-           "op": "==",
-            "right": {
-                "set": [
-                    { "range": [ 33, 55 ] }
-                ]
-            }
-        }
-    }
-]
-
-# frag id != { 33-55}
-[
-    {
-        "match": {
-            "left": {
-                "exthdr": {
-                    "field": "id",
-                    "name": "frag"
-                }
-            },
-            "op": "!=",
-            "right": {
-                "set": [
-                    { "range": [ 33, 55 ] }
-                ]
-            }
-        }
-    }
-]
-
index 49e5a2dd6355a2f6bde5bff53b1ee430ca91e059..72d91cc74688df6f2e0c138b7a02bb6a20acf18e 100644 (file)
     }
 ]
 
-# ip6 nexthdr { 33-44}
-[
-    {
-        "match": {
-            "left": {
-                "payload": {
-                    "field": "nexthdr",
-                    "protocol": "ip6"
-                }
-            },
-           "op": "==",
-            "right": {
-                "set": [
-                    { "range": [ 33, 44 ] }
-                ]
-            }
-        }
-    }
-]
-
-# ip6 nexthdr != { 33-44}
-[
-    {
-        "match": {
-            "left": {
-                "payload": {
-                    "field": "nexthdr",
-                    "protocol": "ip6"
-                }
-            },
-            "op": "!=",
-            "right": {
-                "set": [
-                    { "range": [ 33, 44 ] }
-                ]
-            }
-        }
-    }
-]
-
 # ip6 nexthdr 33-44
 [
     {