BIND 10 trac452, updated. 24bb934f0ad2732c50730187376d96ddadefecbc [trac452] add test of the limitation of statistics interval
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Feb 4 08:41:28 UTC 2011
The branch, trac452 has been updated
via 24bb934f0ad2732c50730187376d96ddadefecbc (commit)
from f0b6f321beecb5145776a730461b61426a52a4f1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 24bb934f0ad2732c50730187376d96ddadefecbc
Author: Yoshitaka Aharen <aharen at jprs.co.jp>
Date: Fri Feb 4 17:40:14 2011 +0900
[trac452] add test of the limitation of statistics interval
-----------------------------------------------------------------------
Summary of changes:
src/bin/auth/tests/config_unittest.cc | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/auth/tests/config_unittest.cc b/src/bin/auth/tests/config_unittest.cc
index 0e0aee9..b8b379e 100644
--- a/src/bin/auth/tests/config_unittest.cc
+++ b/src/bin/auth/tests/config_unittest.cc
@@ -365,5 +365,9 @@ TEST_F(StatisticsIntervalConfigTest, badInterval) {
EXPECT_THROW(parser->build(Element::fromJSON("2.5")),
isc::data::TypeError);
EXPECT_THROW(parser->build(Element::fromJSON("-1")), AuthConfigError);
+ // bounds check: interval value must be equal to or shorter than
+ // 86400 seconds (1 day)
+ EXPECT_NO_THROW(parser->build(Element::fromJSON("86400")));
+ EXPECT_THROW(parser->build(Element::fromJSON("86401")), AuthConfigError);
}
}
More information about the bind10-changes
mailing list