Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
ac941ce4
Commit
ac941ce4
authored
Mar 26, 2014
by
Marcin Siodelski
Browse files
[3281] Fixed comments in the unit tests checking subnet ids.
parent
f4ba8105
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp4/tests/config_parser_unittest.cc
View file @
ac941ce4
...
@@ -611,8 +611,7 @@ TEST_F(Dhcp4ParserTest, multipleSubnets) {
...
@@ -611,8 +611,7 @@ TEST_F(Dhcp4ParserTest, multipleSubnets) {
// This test checks that it is possible to assign arbitrary ids for subnets.
// This test checks that it is possible to assign arbitrary ids for subnets.
TEST_F
(
Dhcp4ParserTest
,
multipleSubnetsExplicitIDs
)
{
TEST_F
(
Dhcp4ParserTest
,
multipleSubnetsExplicitIDs
)
{
ConstElementPtr
x
;
ConstElementPtr
x
;
// Collection of four subnets for which subnet ids should be
// Four subnets with arbitrary subnet ids.
// autogenerated - ids are unspecified or set to 0.
string
config
=
"{
\"
interfaces
\"
: [
\"
*
\"
],"
string
config
=
"{
\"
interfaces
\"
: [
\"
*
\"
],"
"
\"
rebind-timer
\"
: 2000, "
"
\"
rebind-timer
\"
: 2000, "
"
\"
renew-timer
\"
: 1000, "
"
\"
renew-timer
\"
: 1000, "
...
@@ -673,8 +672,7 @@ TEST_F(Dhcp4ParserTest, multipleSubnetsExplicitIDs) {
...
@@ -673,8 +672,7 @@ TEST_F(Dhcp4ParserTest, multipleSubnetsExplicitIDs) {
// Check that the configuration with two subnets having the same id is rejected.
// Check that the configuration with two subnets having the same id is rejected.
TEST_F
(
Dhcp4ParserTest
,
multipleSubnetsOverlapingIDs
)
{
TEST_F
(
Dhcp4ParserTest
,
multipleSubnetsOverlapingIDs
)
{
ConstElementPtr
x
;
ConstElementPtr
x
;
// Collection of four subnets for which subnet ids should be
// Four subnets, two of them having the same id.
// autogenerated - ids are unspecified or set to 0.
string
config
=
"{
\"
interfaces
\"
: [
\"
*
\"
],"
string
config
=
"{
\"
interfaces
\"
: [
\"
*
\"
],"
"
\"
rebind-timer
\"
: 2000, "
"
\"
rebind-timer
\"
: 2000, "
"
\"
renew-timer
\"
: 1000, "
"
\"
renew-timer
\"
: 1000, "
...
...
src/bin/dhcp6/tests/config_parser_unittest.cc
View file @
ac941ce4
...
@@ -626,8 +626,7 @@ TEST_F(Dhcp6ParserTest, multipleSubnets) {
...
@@ -626,8 +626,7 @@ TEST_F(Dhcp6ParserTest, multipleSubnets) {
// This checks that it is possible to assign arbitrary ids for subnets.
// This checks that it is possible to assign arbitrary ids for subnets.
TEST_F
(
Dhcp6ParserTest
,
multipleSubnetsExplicitIDs
)
{
TEST_F
(
Dhcp6ParserTest
,
multipleSubnetsExplicitIDs
)
{
ConstElementPtr
x
;
ConstElementPtr
x
;
// Collection of four subnets for which ids should be autogenerated
// Four subnets with arbitrary subnet ids.
// - ids are unspecified or set to 0.
string
config
=
"{
\"
interfaces
\"
: [
\"
*
\"
],"
string
config
=
"{
\"
interfaces
\"
: [
\"
*
\"
],"
"
\"
preferred-lifetime
\"
: 3000,"
"
\"
preferred-lifetime
\"
: 3000,"
"
\"
rebind-timer
\"
: 2000, "
"
\"
rebind-timer
\"
: 2000, "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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