mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 22:15:23 +00:00
Test fixes in dhcpv6.
This commit is contained in:
@@ -130,7 +130,7 @@ TEST_F(Dhcpv6SrvTest, DUID) {
|
|||||||
vector<uint8_t> mac(len-8);
|
vector<uint8_t> mac(len-8);
|
||||||
vector<uint8_t> zeros(len-8, 0);
|
vector<uint8_t> zeros(len-8, 0);
|
||||||
data.readVector(mac, len-8);
|
data.readVector(mac, len-8);
|
||||||
EXPECT_NE(mac, zeros);
|
EXPECT_TRUE(mac != zeros);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case DUID_EN: {
|
case DUID_EN: {
|
||||||
@@ -139,8 +139,12 @@ TEST_F(Dhcpv6SrvTest, DUID) {
|
|||||||
vector<uint8_t> content(len-2);
|
vector<uint8_t> content(len-2);
|
||||||
data.readVector(content, len-2);
|
data.readVector(content, len-2);
|
||||||
EXPECT_FALSE(isRangeZero(content.begin(), content.end()));
|
EXPECT_FALSE(isRangeZero(content.begin(), content.end()));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case DUID_LL: {
|
||||||
|
// not supported yet
|
||||||
|
cout << "Test not implemented for DUID-LL yet." << endl;
|
||||||
}
|
}
|
||||||
case DUID_LL: // not supported yet
|
|
||||||
case DUID_UUID: // not supported yet
|
case DUID_UUID: // not supported yet
|
||||||
default:
|
default:
|
||||||
cout << "Not supported duid type=" << duid_type << endl;
|
cout << "Not supported duid type=" << duid_type << endl;
|
||||||
|
Reference in New Issue
Block a user