Permalink
Browse files

tests/regression: add coverage for rhbz 1404076

  • Loading branch information...
erig0 committed Aug 21, 2018
1 parent 2925de3 commit 3fb707228ced1b45c059b8c745dac6482232b887
Showing with 18 additions and 0 deletions.
  1. +1 −0 src/tests/regression.at
  2. +17 −0 src/tests/regression/rhbz1404076.at
@@ -11,3 +11,4 @@ m4_include([regression/pr323.at])
m4_include([regression/rhbz1506742.at])
m4_include([regression/rhbz1594657.at])
m4_include([regression/rhbz1571957.at])
m4_include([regression/rhbz1404076.at])
@@ -0,0 +1,17 @@
FWD_START_TEST([query single port added with range])

dnl add a set of ports by range, then query a specific port inside that range.
FWD_CHECK([-q --add-port=8080-8090/tcp])
FWD_CHECK([-q --query-port=8085/tcp])
FWD_CHECK([-q --query-port=webcache/tcp]) dnl named port
FWD_CHECK([-q --query-port=8091/tcp], 1) dnl negative test
FWD_CHECK([-q --query-port=8085/udp], 1) dnl negative test

dnl same thing, but for permanent configuration.
FWD_CHECK([-q --permanent --add-port=8080-8090/tcp])
FWD_CHECK([-q --permanent --query-port=8085/tcp])
FWD_CHECK([-q --permanent --query-port=webcache/tcp]) dnl named port
FWD_CHECK([-q --permanent --query-port=8091/tcp], 1) dnl negative test
FWD_CHECK([-q --permanent --query-port=8085/udp], 1) dnl negative test

FWD_END_TEST

0 comments on commit 3fb7072

Please sign in to comment.