2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

[1793] Fix variable name

We have camelCase in many places, but variable names are not one of
those.
This commit is contained in:
Michal 'vorner' Vaner
2012-04-19 11:07:35 +02:00
parent 52707b1951
commit 438b5b183c

View File

@@ -274,7 +274,7 @@ TEST_F(AuthCommandTest,
isc::testutils::MockSession session; isc::testutils::MockSession session;
// The session should not take care of anything or start anything, we // The session should not take care of anything or start anything, we
// need it only to hold the config we're going to put into it. // need it only to hold the config we're going to put into it.
ModuleCCSession moduleSession(SPEC_FILE, session, NULL, NULL, false, ModuleCCSession module_session(SPEC_FILE, session, NULL, NULL, false,
false); false);
// This describes the data source in the configuration // This describes the data source in the configuration
const ElementPtr const ElementPtr
@@ -290,8 +290,8 @@ TEST_F(AuthCommandTest,
" ]" " ]"
" }" " }"
"]}")); "]}"));
moduleSession.setLocalConfig(map); module_session.setLocalConfig(map);
server_.setConfigSession(&moduleSession); server_.setConfigSession(&module_session);
// The loadzone command needs the zone to be already loaded, because // The loadzone command needs the zone to be already loaded, because
// it is used for reloading only // it is used for reloading only
@@ -324,7 +324,7 @@ TEST_F(AuthCommandTest,
findZone(Name("example.org")).zone_finder-> findZone(Name("example.org")).zone_finder->
find(Name("example.org"), RRType::SOA())->code); find(Name("example.org"), RRType::SOA())->code);
moduleSession.setLocalConfig(Element::fromJSON("{\"datasources\": []}")); module_session.setLocalConfig(Element::fromJSON("{\"datasources\": []}"));
result_ = execAuthServerCommand(server_, "loadzone", result_ = execAuthServerCommand(server_, "loadzone",
Element::fromJSON("{\"origin\": \"example.org\"}")); Element::fromJSON("{\"origin\": \"example.org\"}"));
checkAnswer(1); checkAnswer(1);
@@ -348,7 +348,7 @@ TEST_F(AuthCommandTest,
" ]" " ]"
" }" " }"
"]}")); "]}"));
moduleSession.setLocalConfig(mapBad); module_session.setLocalConfig(mapBad);
result_ = execAuthServerCommand(server_, "loadzone", result_ = execAuthServerCommand(server_, "loadzone",
Element::fromJSON("{\"origin\": \"example.com\"}")); Element::fromJSON("{\"origin\": \"example.com\"}"));
checkAnswer(1); checkAnswer(1);
@@ -365,7 +365,7 @@ TEST_F(AuthCommandTest,
" \"zones\": [[]]" " \"zones\": [[]]"
" }" " }"
"]}")); "]}"));
moduleSession.setLocalConfig(broken); module_session.setLocalConfig(broken);
checkAnswer(1); checkAnswer(1);
// The previous zone is not hurt in any way // The previous zone is not hurt in any way
EXPECT_EQ(ZoneFinder::SUCCESS, server_.getInMemoryClient(RRClass::IN())-> EXPECT_EQ(ZoneFinder::SUCCESS, server_.getInMemoryClient(RRClass::IN())->