Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
5d0f9963
Commit
5d0f9963
authored
Apr 06, 2018
by
Marcin Siodelski
Browse files
[master] Fixed broken unit test in lease_cmds after the previous merge.
Okayed on jabber.
parent
3c22fede
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hooks/dhcp/lease_cmds/tests/lease_cmds_unittest.cc
View file @
5d0f9963
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment