|
|
c8bceb |
From 18ca39a4e89297e61819aeab83b6e77c05d97f44 Mon Sep 17 00:00:00 2001
|
|
|
c8bceb |
From: Eric Garver <eric@garver.life>
|
|
|
c8bceb |
Date: Thu, 6 Jun 2019 11:51:11 -0400
|
|
|
c8bceb |
Subject: [PATCH 63/73] test: coverage for rhbz 1715977
|
|
|
c8bceb |
|
|
|
c8bceb |
(cherry picked from commit 3fb02f8d6648906bdf089a4734c939c809f85583)
|
|
|
c8bceb |
(cherry picked from commit 819e7196c1aa79998b3b094805c51e4caf49a572)
|
|
|
c8bceb |
---
|
|
|
c8bceb |
src/tests/regression.at | 1 +
|
|
|
c8bceb |
src/tests/regression/rhbz1715977.at | 13 +++++++++++++
|
|
|
c8bceb |
2 files changed, 14 insertions(+)
|
|
|
c8bceb |
create mode 100644 src/tests/regression/rhbz1715977.at
|
|
|
c8bceb |
|
|
|
c8bceb |
diff --git a/src/tests/regression.at b/src/tests/regression.at
|
|
|
c8bceb |
index 00690fc6459e..3438c97f4633 100644
|
|
|
c8bceb |
--- a/src/tests/regression.at
|
|
|
c8bceb |
+++ b/src/tests/regression.at
|
|
|
c8bceb |
@@ -20,3 +20,4 @@ m4_include([regression/gh482.at])
|
|
|
c8bceb |
m4_include([regression/gh478.at])
|
|
|
c8bceb |
m4_include([regression/gh453.at])
|
|
|
c8bceb |
m4_include([regression/gh258.at])
|
|
|
c8bceb |
+m4_include([regression/rhbz1715977.at])
|
|
|
c8bceb |
diff --git a/src/tests/regression/rhbz1715977.at b/src/tests/regression/rhbz1715977.at
|
|
|
c8bceb |
new file mode 100644
|
|
|
c8bceb |
index 000000000000..0a05b14f9e3e
|
|
|
c8bceb |
--- /dev/null
|
|
|
c8bceb |
+++ b/src/tests/regression/rhbz1715977.at
|
|
|
c8bceb |
@@ -0,0 +1,13 @@
|
|
|
c8bceb |
+FWD_START_TEST([rich rule destination with service destination])
|
|
|
c8bceb |
+AT_KEYWORDS(rich service rhbz1715977)
|
|
|
c8bceb |
+
|
|
|
c8bceb |
+FWD_CHECK([-q --permanent --zone=internal --add-interface=foobar0])
|
|
|
c8bceb |
+FWD_CHECK([-q --permanent --zone=internal --add-rich-rule='rule family=ipv4 destination address="192.168.122.235/32" service name="ssh" accept'])
|
|
|
c8bceb |
+FWD_RELOAD
|
|
|
c8bceb |
+
|
|
|
c8bceb |
+FWD_CHECK([-q --zone=internal --add-rich-rule='rule family=ipv4 destination address="192.168.122.235/32" service name="mdns" accept'], 122, [ignore], [ignore])
|
|
|
c8bceb |
+FWD_CHECK([-q --permanent --zone=internal --add-rich-rule='rule family=ipv4 destination address="192.168.122.235/32" service name="mdns" accept'])
|
|
|
c8bceb |
+FWD_RELOAD
|
|
|
c8bceb |
+FWD_GREP_LOG([WARNING: internal: INVALID_RULE: Destination conflict with service.])
|
|
|
c8bceb |
+
|
|
|
c8bceb |
+FWD_END_TEST([-e '/INVALID_RULE: Destination conflict with service/d'])
|
|
|
c8bceb |
--
|
|
|
c8bceb |
2.20.1
|
|
|
c8bceb |
|