Skip to content

Commit

Permalink
test(ipset): add missing CHECK_IPSET
Browse files Browse the repository at this point in the history
  • Loading branch information
erig0 committed Feb 24, 2021
1 parent 0531fc1 commit 61a2f56
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/tests/regression/gh567.at
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FWD_START_TEST([rich rule source w/ mark action])
AT_KEYWORDS(gh567 rich ipset)
CHECK_IPSET

FWD_CHECK([-q --permanent --new-ipset=Teste --type=hash:net])
FWD_CHECK([-q --permanent --add-rich-rule "rule family=ipv4 source ipset=Teste mark set=2"])
Expand Down
10 changes: 9 additions & 1 deletion src/tests/regression/rhbz1779835.at
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FWD_START_TEST([ipv6 address with brackets])
AT_KEYWORDS(rhbz1779835 ipset zone forward_port rich)
AT_KEYWORDS(rhbz1779835 ipset)
CHECK_IPSET

IF_HOST_SUPPORTS_IPV6_RULES([], [AT_SKIP_IF([:])])

Expand All @@ -10,6 +11,13 @@ FWD_CHECK([-q --permanent --new-ipset=foobar2 --type=hash:net --family=inet6])
FWD_CHECK([[-q --permanent --ipset foobar2 --add-entry='[1234::]/64']])
FWD_RELOAD

FWD_END_TEST

FWD_START_TEST([ipv6 address with brackets])
AT_KEYWORDS(rhbz1779835 zone forward_port rich)

IF_HOST_SUPPORTS_IPV6_RULES([], [AT_SKIP_IF([:])])

dnl zone source
FWD_CHECK([[-q --zone internal --add-source='[::1234]']])
FWD_CHECK([[-q --zone internal --add-source='[1234::]/64']])
Expand Down

0 comments on commit 61a2f56

Please sign in to comment.