Skip to content

Commit

Permalink
test: coverage for rhbz 1715977
Browse files Browse the repository at this point in the history
  • Loading branch information
erig0 committed Jun 7, 2019
1 parent d3bd517 commit 3fb02f8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/tests/regression.at
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ m4_include([regression/gh482.at])
m4_include([regression/gh478.at])
m4_include([regression/gh453.at])
m4_include([regression/gh258.at])
m4_include([regression/rhbz1715977.at])
12 changes: 12 additions & 0 deletions src/tests/regression/rhbz1715977.at
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FWD_START_TEST([rich rule destination with service destination])
AT_KEYWORDS(rich service rhbz1715977)

FWD_CHECK([-q --permanent --zone=internal --add-interface=foobar0])
FWD_CHECK([-q --permanent --zone=internal --add-rich-rule='rule family=ipv4 destination address="192.168.122.235/32" service name="ssh" accept'])
FWD_RELOAD

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])
FWD_CHECK([-q --permanent --zone=internal --add-rich-rule='rule family=ipv4 destination address="192.168.122.235/32" service name="mdns" accept'])
FWD_RELOAD(122, [ignore], [ignore], 251)

FWD_END_TEST([-e '/ERROR: INVALID_RULE: Destination conflict with service/d'])

0 comments on commit 3fb02f8

Please sign in to comment.