Blame SOURCES/0041-test-rich-source-address-with-netmask.patch

343241
From 0be3d6ba5d6a1cb17c965a5454cc156fbb2ac867 Mon Sep 17 00:00:00 2001
343241
From: Eric Garver <eric@garver.life>
343241
Date: Wed, 15 Sep 2021 13:47:01 -0400
343241
Subject: [PATCH 41/50] test(rich): source address with netmask
343241
343241
Coverage: rhbz1917766
343241
(cherry picked from commit 9e9f94061b129e22e8c6fc2f8985d782bfe09689)
343241
(cherry picked from commit 498c6b221ebbca09401ae5f98498c6a148ae602f)
343241
---
343241
 src/tests/regression/regression.at  |  1 +
343241
 src/tests/regression/rhbz1917766.at | 24 ++++++++++++++++++++++++
343241
 2 files changed, 25 insertions(+)
343241
 create mode 100644 src/tests/regression/rhbz1917766.at
343241
343241
diff --git a/src/tests/regression/regression.at b/src/tests/regression/regression.at
343241
index ba41a56b29b5..f9d42d6e2765 100644
343241
--- a/src/tests/regression/regression.at
343241
+++ b/src/tests/regression/regression.at
343241
@@ -43,3 +43,4 @@ m4_include([regression/rhbz1940928.at])
343241
 m4_include([regression/rhbz1936896.at])
343241
 m4_include([regression/rhbz1914935.at])
343241
 m4_include([regression/gh696.at])
343241
+m4_include([regression/rhbz1917766.at])
343241
diff --git a/src/tests/regression/rhbz1917766.at b/src/tests/regression/rhbz1917766.at
343241
new file mode 100644
343241
index 000000000000..b25d0a2f9740
343241
--- /dev/null
343241
+++ b/src/tests/regression/rhbz1917766.at
343241
@@ -0,0 +1,24 @@
343241
+FWD_START_TEST([rich rule source with netmask])
343241
+AT_KEYWORDS(rich rhbz1917766)
343241
+
343241
+dnl Note: IPv6 only supports CIDR notation. It does not support address/netmask
343241
+dnl notation.
343241
+
343241
+FWD_CHECK([            --zone public --add-rich-rule='rule family=ipv4 source address="192.168.1.0/255.255.255.0" accept'], 0, [ignore])
343241
+FWD_CHECK([--permanent --zone public --add-rich-rule='rule family=ipv4 source address="192.168.1.0/255.255.255.0" accept'], 0, [ignore])
343241
+
343241
+AT_DATA([./zones/foobar.xml], [dnl
343241
+
343241
+<zone>
343241
+  <short>foobar</short>
343241
+  <description>foobar</description>
343241
+  <rule family="ipv4">
343241
+    <source address="192.168.0.1/255.255.255.240"/>
343241
+    <accept/>
343241
+  </rule>
343241
+</zone>
343241
+])
343241
+FWD_RELOAD()
343241
+FWD_CHECK([--zone foobar --add-interface foobar0], 0, [ignore])
343241
+
343241
+FWD_END_TEST()
343241
-- 
343241
2.27.0
343241