From: Marcin Siodelski Date: Fri, 6 Apr 2018 11:56:39 +0000 (+0200) Subject: [master] Fixed broken unit test in lease_cmds after the previous merge. X-Git-Tag: trac5458a_base~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d0f996345309368ca9c6924f63ded1f44791558;p=thirdparty%2Fkea.git [master] Fixed broken unit test in lease_cmds after the previous merge. Okayed on jabber. --- diff --git a/src/hooks/dhcp/lease_cmds/tests/lease_cmds_unittest.cc b/src/hooks/dhcp/lease_cmds/tests/lease_cmds_unittest.cc index d431758cdc..3b86105fff 100644 --- a/src/hooks/dhcp/lease_cmds/tests/lease_cmds_unittest.cc +++ b/src/hooks/dhcp/lease_cmds/tests/lease_cmds_unittest.cc @@ -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); }