Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
7bceb6be
Commit
7bceb6be
authored
May 20, 2016
by
Marcin Siodelski
Browse files
[4317] Updated test for HostReservationIdsParser with "client-id".
parent
2987c3d8
Changes
1
Show whitespace changes
Inline
Side-by-side
src/lib/dhcpsrv/tests/host_reservation_parser_unittest.cc
View file @
7bceb6be
...
@@ -853,7 +853,8 @@ public:
...
@@ -853,7 +853,8 @@ public:
// Test that list of supported DHCPv4 identifiers list is correctly
// Test that list of supported DHCPv4 identifiers list is correctly
// parsed.
// parsed.
TEST_F
(
HostReservationIdsParserTest
,
dhcp4Identifiers
)
{
TEST_F
(
HostReservationIdsParserTest
,
dhcp4Identifiers
)
{
std
::
string
config
=
"[
\"
circuit-id
\"
,
\"
duid
\"
,
\"
hw-address
\"
]"
;
std
::
string
config
=
"[
\"
circuit-id
\"
,
\"
duid
\"
,
\"
hw-address
\"
,
\"
client-id
\"
]"
;
ElementPtr
config_element
=
Element
::
fromJSON
(
config
);
ElementPtr
config_element
=
Element
::
fromJSON
(
config
);
...
@@ -869,6 +870,7 @@ TEST_F(HostReservationIdsParserTest, dhcp4Identifiers) {
...
@@ -869,6 +870,7 @@ TEST_F(HostReservationIdsParserTest, dhcp4Identifiers) {
EXPECT_EQ
(
*
id
++
,
Host
::
IDENT_CIRCUIT_ID
);
EXPECT_EQ
(
*
id
++
,
Host
::
IDENT_CIRCUIT_ID
);
EXPECT_EQ
(
*
id
++
,
Host
::
IDENT_DUID
);
EXPECT_EQ
(
*
id
++
,
Host
::
IDENT_DUID
);
EXPECT_EQ
(
*
id
++
,
Host
::
IDENT_HWADDR
);
EXPECT_EQ
(
*
id
++
,
Host
::
IDENT_HWADDR
);
EXPECT_EQ
(
*
id
++
,
Host
::
IDENT_CLIENT_ID
);
}
}
// Test that list of supported DHCPv6 identifiers list is correctly
// Test that list of supported DHCPv6 identifiers list is correctly
...
@@ -924,6 +926,7 @@ TEST_F(HostReservationIdsParserTest, dhcp4AutoIdentifiers) {
...
@@ -924,6 +926,7 @@ TEST_F(HostReservationIdsParserTest, dhcp4AutoIdentifiers) {
EXPECT_EQ
(
*
id
++
,
Host
::
IDENT_HWADDR
);
EXPECT_EQ
(
*
id
++
,
Host
::
IDENT_HWADDR
);
EXPECT_EQ
(
*
id
++
,
Host
::
IDENT_DUID
);
EXPECT_EQ
(
*
id
++
,
Host
::
IDENT_DUID
);
EXPECT_EQ
(
*
id
++
,
Host
::
IDENT_CIRCUIT_ID
);
EXPECT_EQ
(
*
id
++
,
Host
::
IDENT_CIRCUIT_ID
);
EXPECT_EQ
(
*
id
++
,
Host
::
IDENT_CLIENT_ID
);
}
}
// This test verifies that use of "auto" together with an explicit
// This test verifies that use of "auto" together with an explicit
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment