|
|
ea8ea4 |
From b8a6e4326dd162f32b51f87824a8fcc0f67985d6 Mon Sep 17 00:00:00 2001
|
|
|
ea8ea4 |
From: Eric Garver <eric@garver.life>
|
|
|
ea8ea4 |
Date: Tue, 25 Feb 2020 16:12:26 -0500
|
|
|
ea8ea4 |
Subject: [PATCH 150/154] test: ipset: coverage for ipv6 addresses with
|
|
|
ea8ea4 |
brackets
|
|
|
ea8ea4 |
|
|
|
ea8ea4 |
Coverage for rhbz 1779835
|
|
|
ea8ea4 |
|
|
|
ea8ea4 |
(cherry picked from commit ff9cd7a4c6183bca5d75bb53e98fc89eee822643)
|
|
|
ea8ea4 |
(cherry picked from commit 09247fec566cd36156b52d4747bdd531c72c73fd)
|
|
|
ea8ea4 |
---
|
|
|
ea8ea4 |
src/tests/regression/regression.at | 1 +
|
|
|
ea8ea4 |
src/tests/regression/rhbz1779835.at | 11 +++++++++++
|
|
|
ea8ea4 |
2 files changed, 12 insertions(+)
|
|
|
ea8ea4 |
create mode 100644 src/tests/regression/rhbz1779835.at
|
|
|
ea8ea4 |
|
|
|
ea8ea4 |
diff --git a/src/tests/regression/regression.at b/src/tests/regression/regression.at
|
|
|
ea8ea4 |
index 4532d730fbe7..19d38274dcee 100644
|
|
|
ea8ea4 |
--- a/src/tests/regression/regression.at
|
|
|
ea8ea4 |
+++ b/src/tests/regression/regression.at
|
|
|
ea8ea4 |
@@ -25,3 +25,4 @@ m4_include([regression/rhbz1723610.at])
|
|
|
ea8ea4 |
m4_include([regression/rhbz1734765.at])
|
|
|
ea8ea4 |
m4_include([regression/gh509.at])
|
|
|
ea8ea4 |
m4_include([regression/gh567.at])
|
|
|
ea8ea4 |
+m4_include([regression/rhbz1779835.at])
|
|
|
ea8ea4 |
diff --git a/src/tests/regression/rhbz1779835.at b/src/tests/regression/rhbz1779835.at
|
|
|
ea8ea4 |
new file mode 100644
|
|
|
ea8ea4 |
index 000000000000..2662271eb459
|
|
|
ea8ea4 |
--- /dev/null
|
|
|
ea8ea4 |
+++ b/src/tests/regression/rhbz1779835.at
|
|
|
ea8ea4 |
@@ -0,0 +1,11 @@
|
|
|
ea8ea4 |
+FWD_START_TEST([ipv6 address with brackets])
|
|
|
ea8ea4 |
+AT_KEYWORDS(rhbz1779835 ipset)
|
|
|
ea8ea4 |
+
|
|
|
ea8ea4 |
+dnl ipset
|
|
|
ea8ea4 |
+FWD_CHECK([-q --permanent --new-ipset=foobar --type=hash:ip --family=inet6])
|
|
|
ea8ea4 |
+FWD_CHECK([[-q --permanent --ipset foobar --add-entry='[1234::4321]']])
|
|
|
ea8ea4 |
+FWD_CHECK([-q --permanent --new-ipset=foobar2 --type=hash:net --family=inet6])
|
|
|
ea8ea4 |
+FWD_CHECK([[-q --permanent --ipset foobar2 --add-entry='[1234::]/64']])
|
|
|
ea8ea4 |
+FWD_RELOAD
|
|
|
ea8ea4 |
+
|
|
|
ea8ea4 |
+FWD_END_TEST
|
|
|
ea8ea4 |
--
|
|
|
ea8ea4 |
2.25.2
|
|
|
ea8ea4 |
|