|
|
c8bceb |
From 05be476aa32e84fa8f8d23494ebe37f586f412c6 Mon Sep 17 00:00:00 2001
|
|
|
c8bceb |
From: Eric Garver <eric@garver.life>
|
|
|
c8bceb |
Date: Fri, 30 Aug 2019 13:58:54 -0400
|
|
|
c8bceb |
Subject: [PATCH 98/99] fix: tests/regression/rhbz1723610: better coverage
|
|
|
c8bceb |
|
|
|
c8bceb |
Add more coverage to make sure all rules in the given chain are deleted.
|
|
|
c8bceb |
|
|
|
c8bceb |
(cherry picked from commit 0220c8584512328104bfc816c2daaee2059f6a21)
|
|
|
c8bceb |
(cherry picked from commit a40aa5094387e457cfd4a789ef805dac46132b6e)
|
|
|
c8bceb |
---
|
|
|
c8bceb |
src/tests/regression/rhbz1723610.at | 8 +++++++-
|
|
|
c8bceb |
1 file changed, 7 insertions(+), 1 deletion(-)
|
|
|
c8bceb |
|
|
|
c8bceb |
diff --git a/src/tests/regression/rhbz1723610.at b/src/tests/regression/rhbz1723610.at
|
|
|
c8bceb |
index 35feed2bda9f..70eb226cb6df 100644
|
|
|
c8bceb |
--- a/src/tests/regression/rhbz1723610.at
|
|
|
c8bceb |
+++ b/src/tests/regression/rhbz1723610.at
|
|
|
c8bceb |
@@ -2,15 +2,21 @@ FWD_START_TEST([direct remove-rules per family])
|
|
|
c8bceb |
AT_KEYWORDS(direct rhbz1723610 gh385)
|
|
|
c8bceb |
|
|
|
c8bceb |
FWD_CHECK([-q --permanent --direct --add-rule ipv4 filter OUTPUT 0 -d 127.0.0.1 -p tcp --dport 22 -j ACCEPT])
|
|
|
c8bceb |
+FWD_CHECK([-q --permanent --direct --add-rule ipv4 filter INPUT 0 -d 127.0.0.1 -p tcp --dport 22 -j ACCEPT])
|
|
|
c8bceb |
+FWD_CHECK([-q --permanent --direct --add-rule ipv4 filter INPUT 0 -d 127.0.0.2 -p tcp --dport 22 -j ACCEPT])
|
|
|
c8bceb |
FWD_CHECK([--permanent --direct --get-all-rules], 0, [dnl
|
|
|
c8bceb |
ipv4 filter OUTPUT 0 -d 127.0.0.1 -p tcp --dport 22 -j ACCEPT
|
|
|
c8bceb |
+ipv4 filter INPUT 0 -d 127.0.0.1 -p tcp --dport 22 -j ACCEPT
|
|
|
c8bceb |
+ipv4 filter INPUT 0 -d 127.0.0.2 -p tcp --dport 22 -j ACCEPT
|
|
|
c8bceb |
])
|
|
|
c8bceb |
FWD_RELOAD
|
|
|
c8bceb |
FWD_CHECK([--direct --get-all-rules], 0, [dnl
|
|
|
c8bceb |
ipv4 filter OUTPUT 0 -d 127.0.0.1 -p tcp --dport 22 -j ACCEPT
|
|
|
c8bceb |
+ipv4 filter INPUT 0 -d 127.0.0.1 -p tcp --dport 22 -j ACCEPT
|
|
|
c8bceb |
+ipv4 filter INPUT 0 -d 127.0.0.2 -p tcp --dport 22 -j ACCEPT
|
|
|
c8bceb |
])
|
|
|
c8bceb |
|
|
|
c8bceb |
-FWD_CHECK([-q --permanent --direct --remove-rules ipv6 filter input])
|
|
|
c8bceb |
+FWD_CHECK([-q --permanent --direct --remove-rules ipv6 filter INPUT])
|
|
|
c8bceb |
FWD_CHECK([-q --permanent --direct --remove-rules ipv4 filter INPUT])
|
|
|
c8bceb |
FWD_CHECK([--permanent --direct --get-all-rules], 0, [dnl
|
|
|
c8bceb |
ipv4 filter OUTPUT 0 -d 127.0.0.1 -p tcp --dport 22 -j ACCEPT
|
|
|
c8bceb |
--
|
|
|
c8bceb |
2.20.1
|
|
|
c8bceb |
|