]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Fixed broken unit test in lease_cmds after the previous merge.
authorMarcin Siodelski <marcin@isc.org>
Fri, 6 Apr 2018 11:56:39 +0000 (13:56 +0200)
committerMarcin Siodelski <marcin@isc.org>
Fri, 6 Apr 2018 11:56:39 +0000 (13:56 +0200)
Okayed on jabber.

src/hooks/dhcp/lease_cmds/tests/lease_cmds_unittest.cc

index d431758cdce2a802106c91f3afe58d9a2319749c..3b86105fff313b5b0c2c29ea0d632149eb06d928 100644 (file)
@@ -2199,7 +2199,7 @@ TEST_F(LeaseCmdsTest, Lease6UpdateForceCreate) {
         "    \"command\": \"lease6-update\",\n"
         "    \"arguments\": {"
         "        \"subnet-id\": 66,\n"
-        "        \"ip-address\": \"2001:db8::1\",\n"
+        "        \"ip-address\": \"2001:db8:1::1\",\n"
         "        \"iaid\": 7654321,\n"
         "        \"duid\": \"88:88:88:88:88:88:88:88\",\n"
         "        \"hostname\": \"newhostname.example.org\","
@@ -2210,7 +2210,7 @@ TEST_F(LeaseCmdsTest, Lease6UpdateForceCreate) {
     testCommand(txt, CONTROL_RESULT_SUCCESS, exp_rsp);
 
     // Now check that the lease is really there.
-    Lease6Ptr l = lmptr_->getLease6(Lease::TYPE_NA, IOAddress("2001:db8::1"));
+    Lease6Ptr l = lmptr_->getLease6(Lease::TYPE_NA, IOAddress("2001:db8:1::1"));
     ASSERT_TRUE(l);
 
     // Make sure the lease is correct.
@@ -2236,14 +2236,14 @@ TEST_F(LeaseCmdsTest, Lease6UpdateDoNotForceCreate) {
         "    \"command\": \"lease6-update\",\n"
         "    \"arguments\": {"
         "        \"subnet-id\": 66,\n"
-        "        \"ip-address\": \"2001:db8::1\",\n"
+        "        \"ip-address\": \"2001:db8:1::1\",\n"
         "        \"iaid\": 7654321,\n"
         "        \"duid\": \"88:88:88:88:88:88:88:88\",\n"
         "        \"hostname\": \"newhostname.example.org\","
         "        \"force-create\": false"
         "    }\n"
         "}";
-    string exp_rsp = "failed to update the lease with address 2001:db8::1 - no such lease";
+    string exp_rsp = "failed to update the lease with address 2001:db8:1::1 - no such lease";
     testCommand(txt, CONTROL_RESULT_ERROR, exp_rsp);
 }