]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1389] Added DHCPV4 unit tests
authorThomas Markwalder <tmark@isc.org>
Thu, 27 Aug 2020 18:19:59 +0000 (14:19 -0400)
committerTomek Mrugalski <tomek@isc.org>
Fri, 25 Sep 2020 07:36:03 +0000 (07:36 +0000)
src/bin/dhcp4/tests/fqdn_unittest.cc
    Changed exmple.org to example.com
    TEST_F(NameDhcpv4SrvTest, ddnsSharedNetworkTest) - new test

src/bin/dhcp4/tests/fqdn_unittest.cc

index 37b340f425bc457f080afb149af64f79ca591121..16d162d9a1b85cb0a1f6c71773bac9963ca7633e 100644 (file)
@@ -267,7 +267,7 @@ const char* CONFIGS[] = {
             "\"qualifying-suffix\": \"fake-suffix.isc.org.\""
         "}"
     "}",
-    // 10 
+    // 10
     // D2 enabled
     // shared-network with two subnets with
     // different DDNS parameters
@@ -298,7 +298,6 @@ const char* CONFIGS[] = {
     "           \"ddns-qualifying-suffix\": \"two.example.com.\" \n"
     "       }] \n"
     "   }] \n"
->>>>>>> [#1389] Added DHCPV4 unit tests
     "}"
 };
 
@@ -335,16 +334,9 @@ public:
     NameDhcpv4SrvTest()
         : Dhcpv4SrvTest(),
           d2_mgr_(CfgMgr::instance().getD2ClientMgr()),
-<<<<<<< HEAD
           iface_mgr_test_config_(true)
     {
         srv_ = boost::make_shared<NakedDhcpv4Srv>(0);
-=======
-          srv_(),
-          iface_mgr_test_config_(true)
-    {
-        srv_ = boost::shared_ptr<NakedDhcpv4Srv>(new NakedDhcpv4Srv(0));
->>>>>>> [#1389] Added DHCPV4 unit tests
         IfaceMgr::instance().openSockets4();
         // Config DDNS to be enabled, all controls off
         enableD2();
@@ -2455,11 +2447,12 @@ TEST_F(NameDhcpv4SrvTest, processReuseExpired) {
             ASSERT_NO_THROW(LeaseMgrFactory::instance().deleteLease(lease));
         }
     }
+}
 
 // Verifies that the DDNS parameters used for a lease in subnet in
 // shared-network belong to lease's subnet.  This checks that we
 // get the right results even when the allocation engine changes the
-// subnet chosen.
+// subnet choice.
 TEST_F(NameDhcpv4SrvTest, ddnsSharedNetworkTest) {
     // Load a configuration with D2 enabled
     ASSERT_NO_FATAL_FAILURE(configure(CONFIGS[10], *srv_));