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
Sebastian Schrader
Kea
Commits
10079452
Commit
10079452
authored
Jun 19, 2015
by
Tomek Mrugalski
🛰
Browse files
[3795] Changes after review:
- comments in pkt6-receive-drop fixed
parent
b4ecbba0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp6/tests/sarr_unittest.cc
View file @
10079452
...
...
@@ -362,7 +362,7 @@ TEST_F(SARRTest, pkt6ReceiveDropStat1) {
client
.
useServerId
(
bogus_srv_id
);
client
.
doRequest
();
// Ok, let's check the statistic
s
.
None
should be
present
.
// Ok, let's check the statistic.
pkt6-receive-drop
should be
set to 1
.
using
namespace
isc
::
stats
;
StatsMgr
&
mgr
=
StatsMgr
::
instance
();
...
...
@@ -373,8 +373,7 @@ TEST_F(SARRTest, pkt6ReceiveDropStat1) {
}
// This test verifies that pkt6-receive-drop is increased properly when the
// client's packet is rejected due to having too many client-id options
// (exactly one is expected).
// client's packet is rejected due to being unicast communication.
TEST_F
(
SARRTest
,
pkt6ReceiveDropStat2
)
{
// Let's use one of the existing configurations and tell the client to
...
...
@@ -387,7 +386,7 @@ TEST_F(SARRTest, pkt6ReceiveDropStat2) {
client
.
setDestAddress
(
asiolink
::
IOAddress
(
"2001:db8::1"
));
// Pretend it's unicast
client
.
doSolicit
();
// Ok, let's check the statistic
s
.
None
should be
present
.
// Ok, let's check the statistic.
pkt6-receive-drop
should be
set to 1
.
using
namespace
isc
::
stats
;
StatsMgr
&
mgr
=
StatsMgr
::
instance
();
...
...
@@ -398,7 +397,8 @@ TEST_F(SARRTest, pkt6ReceiveDropStat2) {
}
// This test verifies that pkt6-receive-drop is increased properly when the
// client's packet is rejected due to having too many
// client's packet is rejected due to having too many client-id options
// (exactly one is expected).
TEST_F
(
SARRTest
,
pkt6ReceiveDropStat3
)
{
// Let's use one of the existing configurations and tell the client to
...
...
@@ -416,7 +416,7 @@ TEST_F(SARRTest, pkt6ReceiveDropStat3) {
client
.
useServerId
(
client
.
getClientId
());
client
.
doSolicit
();
// Ok, let's check the statistic
s
.
None
should be
present
.
// Ok, let's check the statistic.
pkt6-receive-drop
should be
set to 1
.
using
namespace
isc
::
stats
;
StatsMgr
&
mgr
=
StatsMgr
::
instance
();
...
...
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