|
|
63f414 |
From 04b9b7138e4af55f56a82f0b3727b0e70de3a5a0 Mon Sep 17 00:00:00 2001
|
|
|
63f414 |
From: Eric Garver <eric@garver.life>
|
|
|
63f414 |
Date: Thu, 11 Feb 2021 15:10:04 -0500
|
|
|
63f414 |
Subject: [PATCH 18/22] test(ipset): add missing CHECK_IPSET
|
|
|
63f414 |
|
|
|
63f414 |
(cherry picked from commit 61a2f56e889f5a370e28bf98f8dcf2e864a01283)
|
|
|
63f414 |
(cherry picked from commit 95f18c89e22271ec437377f8fed753997f5828aa)
|
|
|
63f414 |
---
|
|
|
63f414 |
src/tests/regression/gh567.at | 1 +
|
|
|
63f414 |
src/tests/regression/rhbz1779835.at | 10 +++++++++-
|
|
|
63f414 |
2 files changed, 10 insertions(+), 1 deletion(-)
|
|
|
63f414 |
|
|
|
63f414 |
diff --git a/src/tests/regression/gh567.at b/src/tests/regression/gh567.at
|
|
|
63f414 |
index 03c3bde4a0fe..7faa9a5b0291 100644
|
|
|
63f414 |
--- a/src/tests/regression/gh567.at
|
|
|
63f414 |
+++ b/src/tests/regression/gh567.at
|
|
|
63f414 |
@@ -1,5 +1,6 @@
|
|
|
63f414 |
FWD_START_TEST([rich rule source w/ mark action])
|
|
|
63f414 |
AT_KEYWORDS(gh567 rich ipset)
|
|
|
63f414 |
+CHECK_IPSET
|
|
|
63f414 |
|
|
|
63f414 |
FWD_CHECK([-q --permanent --new-ipset=Teste --type=hash:net])
|
|
|
63f414 |
FWD_CHECK([-q --permanent --add-rich-rule "rule family=ipv4 source ipset=Teste mark set=2"])
|
|
|
63f414 |
diff --git a/src/tests/regression/rhbz1779835.at b/src/tests/regression/rhbz1779835.at
|
|
|
63f414 |
index 8de5c0353b6e..1c6738bce468 100644
|
|
|
63f414 |
--- a/src/tests/regression/rhbz1779835.at
|
|
|
63f414 |
+++ b/src/tests/regression/rhbz1779835.at
|
|
|
63f414 |
@@ -1,5 +1,6 @@
|
|
|
63f414 |
FWD_START_TEST([ipv6 address with brackets])
|
|
|
63f414 |
-AT_KEYWORDS(rhbz1779835 ipset zone forward_port rich)
|
|
|
63f414 |
+AT_KEYWORDS(rhbz1779835 ipset)
|
|
|
63f414 |
+CHECK_IPSET
|
|
|
63f414 |
|
|
|
63f414 |
IF_HOST_SUPPORTS_IPV6_RULES([], [AT_SKIP_IF([:])])
|
|
|
63f414 |
|
|
|
63f414 |
@@ -10,6 +11,13 @@ FWD_CHECK([-q --permanent --new-ipset=foobar2 --type=hash:net --family=inet6])
|
|
|
63f414 |
FWD_CHECK([[-q --permanent --ipset foobar2 --add-entry='[1234::]/64']])
|
|
|
63f414 |
FWD_RELOAD
|
|
|
63f414 |
|
|
|
63f414 |
+FWD_END_TEST
|
|
|
63f414 |
+
|
|
|
63f414 |
+FWD_START_TEST([ipv6 address with brackets])
|
|
|
63f414 |
+AT_KEYWORDS(rhbz1779835 zone forward_port rich)
|
|
|
63f414 |
+
|
|
|
63f414 |
+IF_HOST_SUPPORTS_IPV6_RULES([], [AT_SKIP_IF([:])])
|
|
|
63f414 |
+
|
|
|
63f414 |
dnl zone source
|
|
|
63f414 |
FWD_CHECK([[-q --zone internal --add-source='[::1234]']])
|
|
|
63f414 |
FWD_CHECK([[-q --zone internal --add-source='[1234::]/64']])
|
|
|
63f414 |
--
|
|
|
63f414 |
2.27.0
|
|
|
63f414 |
|