diff options
author | Marcin Siodelski <marcin@isc.org> | 2015-10-06 16:52:25 +0200 |
---|---|---|
committer | Marcin Siodelski <marcin@isc.org> | 2015-10-06 16:52:25 +0200 |
commit | bbead46461687e1ff462842cd0daa34e94ef6d40 (patch) | |
tree | 365b29316ceab041519f9df5eda17d4e24c5a012 /src/lib/dhcpsrv/tests/expiration_config_parser_unittest.cc | |
parent | [3974] Attached parser for expired leases processing to global parser. (diff) | |
download | kea-bbead46461687e1ff462842cd0daa34e94ef6d40.tar.xz kea-bbead46461687e1ff462842cd0daa34e94ef6d40.zip |
[3974] Small updates to the expiration parser tests.
As a result of the review.
Diffstat (limited to 'src/lib/dhcpsrv/tests/expiration_config_parser_unittest.cc')
-rw-r--r-- | src/lib/dhcpsrv/tests/expiration_config_parser_unittest.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/dhcpsrv/tests/expiration_config_parser_unittest.cc b/src/lib/dhcpsrv/tests/expiration_config_parser_unittest.cc index f9da76ad3c..82f870aa36 100644 --- a/src/lib/dhcpsrv/tests/expiration_config_parser_unittest.cc +++ b/src/lib/dhcpsrv/tests/expiration_config_parser_unittest.cc @@ -140,6 +140,11 @@ ExpirationConfigParserTest::testOutOfRange(const std::string& param, addParam(param, max_value); EXPECT_NO_THROW(renderConfig()) << "test for in range value of '" << param << "' failed"; + + // Value of 0 should be accepted. + addParam(param, 0); + EXPECT_NO_THROW(renderConfig()) + << "test for zero value of '" << param << "' failed"; } |