Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sebastian Schrader
Kea
Commits
2f68445f
Commit
2f68445f
authored
Jan 22, 2015
by
Francis Dupont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spelling
parent
1aa91317
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/bin/dhcp4/tests/config_parser_unittest.cc
src/bin/dhcp4/tests/config_parser_unittest.cc
+5
-5
No files found.
src/bin/dhcp4/tests/config_parser_unittest.cc
View file @
2f68445f
...
...
@@ -295,7 +295,7 @@ public:
EXPECT_TRUE
(
errorContainsPosition
(
x
,
"<string>"
));
}
/// @brief Test invalid option param
a
ter value.
/// @brief Test invalid option param
e
ter value.
///
/// This test function constructs the simple configuration
/// string and injects invalid option configuration into it.
...
...
@@ -2067,7 +2067,7 @@ TEST_F(Dhcp4ParserTest, optionDataEncapsulate) {
EXPECT_TRUE
(
desc
.
option_
);
EXPECT_EQ
(
222
,
desc
.
option_
->
getType
());
// This opton should comprise two sub-options.
// This opt
i
on should comprise two sub-options.
// One of them is 'foo' with code 1.
OptionPtr
option_foo
=
desc
.
option_
->
getOption
(
1
);
ASSERT_TRUE
(
option_foo
);
...
...
@@ -2510,7 +2510,7 @@ TEST_F(Dhcp4ParserTest, DISABLED_Uint32Parser) {
TEST_F
(
Dhcp4ParserTest
,
stdOptionDataEncapsulate
)
{
// The configuration is two stage process in this test.
// In the first sta
h
e we create definitions of suboptions
// In the first sta
g
e we create definitions of suboptions
// that we will add to the base option.
// Let's create some dummy options: foo and foo2.
string
config
=
"{
\"
interfaces
\"
: [
\"
*
\"
],"
...
...
@@ -3346,7 +3346,7 @@ TEST_F(Dhcp4ParserTest, reservations) {
ASSERT_TRUE
(
hosts_cfg
);
// Let's create an object holding hardware address of the host having
// a reservation in the subnet having id of 234. For simlicity the
// a reservation in the subnet having id of 234. For sim
p
licity the
// address is a collection of numbers from 1 to 6.
std
::
vector
<
uint8_t
>
hwaddr_vec
;
for
(
int
i
=
1
;
i
<
7
;
++
i
)
{
...
...
@@ -3396,7 +3396,7 @@ TEST_F(Dhcp4ParserTest, reservations) {
}
// This test verfies that the bogus host reservation would trigger a
// This test ver
i
fies that the bogus host reservation would trigger a
// server configuration error.
TEST_F
(
Dhcp4ParserTest
,
reservationBogus
)
{
// Case 1: misspelled hw-address parameter.
...
...
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