Skip to content
GitLab
Menu
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
52707b19
Commit
52707b19
authored
Apr 18, 2012
by
Michal 'vorner' Vaner
Browse files
[1793] Minor editorial fixes
parent
f782145e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bin/auth/command.cc
View file @
52707b19
...
...
@@ -270,7 +270,7 @@ private:
// Unfortunately, we need to walk the list to find the correct data
// source.
// TODO: Make it named sets. These lists are uncomfortable.
for
(
size_t
i
(
0
);
i
<
config
->
size
();
++
i
)
{
for
(
size_t
i
(
0
);
i
<
config
->
size
();
++
i
)
{
// We use the getValue to get defaults as well
const
ConstElementPtr
dsrc_config
(
config
->
get
(
i
));
const
ConstElementPtr
class_config
(
dsrc_config
->
get
(
"class"
));
...
...
@@ -294,7 +294,7 @@ private:
}
// Now we need to walk the zones and find the correct one.
for
(
size_t
i
(
0
);
i
<
zone_list
->
size
();
++
i
)
{
for
(
size_t
i
(
0
);
i
<
zone_list
->
size
();
++
i
)
{
const
ConstElementPtr
zone_config
(
zone_list
->
get
(
i
));
if
(
Name
(
zone_config
->
get
(
"origin"
)
->
stringValue
())
==
origin_
)
{
// The origins are the same, so we consider this config to be
...
...
src/bin/auth/tests/command_unittest.cc
View file @
52707b19
...
...
@@ -56,8 +56,6 @@ using namespace isc::auth::unittest;
namespace
{
const
char
*
const
SPEC_FILE
=
AUTH_OBJ_DIR
"/auth.spec"
;
class
AuthCommandTest
:
public
::
testing
::
Test
{
protected:
AuthCommandTest
()
:
...
...
@@ -262,6 +260,8 @@ TEST_F(AuthCommandTest,
#endif
)
{
const
char
*
const
SPEC_FILE
=
AUTH_OBJ_DIR
"/auth.spec"
;
// Prepare the database first
const
string
test_db
=
TEST_DATA_BUILDDIR
"/auth_test.sqlite3.copied"
;
const
string
bad_db
=
TEST_DATA_BUILDDIR
"/does-not-exist.sqlite3"
;
...
...
@@ -319,6 +319,7 @@ TEST_F(AuthCommandTest,
Element
::
fromJSON
(
"{
\"
origin
\"
:
\"
example.com
\"
}"
));
checkAnswer
(
1
);
// The previous zone is not hurt in any way
EXPECT_EQ
(
ZoneFinder
::
SUCCESS
,
server_
.
getInMemoryClient
(
RRClass
::
IN
())
->
findZone
(
Name
(
"example.org"
)).
zone_finder
->
find
(
Name
(
"example.org"
),
RRType
::
SOA
())
->
code
);
...
...
Write
Preview
Supports
Markdown
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