diff options
Diffstat (limited to 'src/lib/dhcpsrv/tests/host_unittest.cc')
-rw-r--r-- | src/lib/dhcpsrv/tests/host_unittest.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/dhcpsrv/tests/host_unittest.cc b/src/lib/dhcpsrv/tests/host_unittest.cc index fb7cac2746..3c4c448e69 100644 --- a/src/lib/dhcpsrv/tests/host_unittest.cc +++ b/src/lib/dhcpsrv/tests/host_unittest.cc @@ -665,19 +665,20 @@ TEST_F(HostTest, setValues) { ASSERT_NO_THROW(host.reset(new Host("01:02:03:04:05:06", "hw-address", SubnetID(1), SubnetID(2), IOAddress("192.0.2.3"), - "some-host.example.org"))); + "some-host.eXAMple.org"))); ASSERT_EQ(1, host->getIPv4SubnetID()); ASSERT_EQ(2, host->getIPv6SubnetID()); ASSERT_EQ("192.0.2.3", host->getIPv4Reservation().toText()); - ASSERT_EQ("some-host.example.org", host->getHostname()); + ASSERT_EQ("some-host.eXAMple.org", host->getHostname()); + ASSERT_EQ("some-host.example.org", host->getLowerHostname()); ASSERT_FALSE(host->getContext()); ASSERT_FALSE(host->getNegative()); host->setIPv4SubnetID(SubnetID(123)); host->setIPv6SubnetID(SubnetID(234)); host->setIPv4Reservation(IOAddress("10.0.0.1")); - host->setHostname("other-host.example.org"); + host->setHostname("other-host.eXAMple.org"); host->setNextServer(IOAddress("192.0.2.2")); host->setServerHostname("server-hostname.example.org"); host->setBootFileName("bootfile.efi"); @@ -690,7 +691,8 @@ TEST_F(HostTest, setValues) { EXPECT_EQ(123, host->getIPv4SubnetID()); EXPECT_EQ(234, host->getIPv6SubnetID()); EXPECT_EQ("10.0.0.1", host->getIPv4Reservation().toText()); - EXPECT_EQ("other-host.example.org", host->getHostname()); + EXPECT_EQ("other-host.eXAMple.org", host->getHostname()); + ASSERT_EQ("other-host.example.org", host->getLowerHostname()); EXPECT_EQ("192.0.2.2", host->getNextServer().toText()); EXPECT_EQ("server-hostname.example.org", host->getServerHostname()); EXPECT_EQ("bootfile.efi", host->getBootFileName()); |