@@ -4450,6 +4450,14 @@ GenericConfigBackendDHCPv6Test::createUpdateClientClass6OptionsTest() {
4450
4450
ASSERT_NO_THROW_LOG (client_class = cbptr_->getClientClass6 (ServerSelector::ALL (), class1->getName ()));
4451
4451
ASSERT_TRUE (client_class);
4452
4452
4453
+ // Verify lifetime values.
4454
+ EXPECT_EQ (30 , client_class->getValid ().getMin ());
4455
+ EXPECT_EQ (60 , client_class->getValid ().get ());
4456
+ EXPECT_EQ (90 , client_class->getValid ().getMax ());
4457
+ EXPECT_EQ (25 , client_class->getPreferred ().getMin ());
4458
+ EXPECT_EQ (55 , client_class->getPreferred ().get ());
4459
+ EXPECT_EQ (85 , client_class->getPreferred ().getMax ());
4460
+
4453
4461
// Validate options belonging to the class.
4454
4462
ASSERT_TRUE (client_class->getCfgOption ());
4455
4463
OptionDescriptor returned_opt_new_posix_timezone =
@@ -4495,6 +4503,14 @@ GenericConfigBackendDHCPv6Test::createUpdateClientClass6OptionsTest() {
4495
4503
ASSERT_NO_THROW_LOG (client_class = cbptr_->getClientClass6 (ServerSelector::ALL (), class1->getName ()));
4496
4504
ASSERT_TRUE (client_class);
4497
4505
4506
+ // Re-check lifetime values. This ensure bindings line up.
4507
+ EXPECT_EQ (30 , client_class->getValid ().getMin ());
4508
+ EXPECT_EQ (60 , client_class->getValid ().get ());
4509
+ EXPECT_EQ (90 , client_class->getValid ().getMax ());
4510
+ EXPECT_EQ (25 , client_class->getPreferred ().getMin ());
4511
+ EXPECT_EQ (55 , client_class->getPreferred ().get ());
4512
+ EXPECT_EQ (85 , client_class->getPreferred ().getMax ());
4513
+
4498
4514
// Ensure that the first option definition is gone.
4499
4515
ASSERT_TRUE (client_class->getCfgOptionDef ());
4500
4516
returned_def_foo = client_class->getCfgOptionDef ()->get (test_option_defs_[0 ]->getOptionSpaceName (),
0 commit comments