Commit 24bb934f authored by Yoshitaka Aharen's avatar Yoshitaka Aharen
Browse files

[trac452] add test of the limitation of statistics interval

parent f0b6f321
......@@ -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);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment