2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[4097a] Added check of other options to Dhcp4ParserTest.optionDataDefaultsGlobal

This commit is contained in:
Francis Dupont
2015-11-25 11:47:01 +01:00
parent 525a66ecee
commit 52887c0ca1

View File

@@ -1887,6 +1887,12 @@ TEST_F(Dhcp4ParserTest, optionDataDefaultsGlobal) {
0x01
};
testOption(*range.first, 23, foo2_expected, sizeof(foo2_expected));
// Check that options with other option codes are not returned.
for (uint8_t code = 24; code < 35; ++code) {
range = idx.equal_range(code);
EXPECT_EQ(0, std::distance(range.first, range.second));
}
}
// Goal of this test is to verify that subnet option data is configured