Commit 5d0f9963 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[master] Fixed broken unit test in lease_cmds after the previous merge.

Okayed on jabber.
parent 3c22fede
......@@ -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);
}
......
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