Commit 7bceb6be authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[4317] Updated test for HostReservationIdsParser with "client-id".

parent 2987c3d8
...@@ -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
......
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