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
ISC Open Source Projects
Kea
Commits
0f244147
Commit
0f244147
authored
Jan 17, 2013
by
JINMEI Tatuya
Browse files
[2573] Merge branch 'trac2573' of
ssh://git.bind10.isc.org/var/bind10/git/bind10
into trac2573
parents
9423db0d
24e0b47e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/tests/zone_loader_unittest.cc
View file @
0f244147
...
...
@@ -180,7 +180,7 @@ protected:
};
// Use the loader to load an unsigned zone.
TEST_F
(
ZoneLoaderTest
,
copyUnsigned
)
{
TEST_F
(
ZoneLoaderTest
,
copyUnsigned
)
{
prepareSource
(
Name
::
ROOT_NAME
(),
"root.zone"
);
ZoneLoader
loader
(
destination_client_
,
Name
::
ROOT_NAME
(),
source_client_
);
// It gets the updater directly in the constructor
...
...
@@ -201,7 +201,7 @@ TEST_F(ZoneLoaderTest , copyUnsigned) {
EXPECT_EQ
(
34
,
destination_client_
.
rrsets_
.
size
());
// Check various counters. getRRCount should be identical of the RRs
// we've seen.
p
rogress is still "unknown" in the copy operation.
// we've seen.
P
rogress is still "unknown" in the copy operation.
EXPECT_EQ
(
destination_client_
.
rrsets_
.
size
(),
loader
.
getRRCount
());
EXPECT_EQ
(
ZoneLoader
::
PROGRESS_UNKNOWN
,
loader
.
getProgress
());
...
...
@@ -232,7 +232,7 @@ TEST_F(ZoneLoaderTest, copyUnsignedIncremental) {
// Not committed yet, we didn't complete the loading
EXPECT_FALSE
(
destination_client_
.
commit_called_
);
// Check we can get intermediate counters.
p
rogress is always "unknown"
// Check we can get intermediate counters.
P
rogress is always "unknown"
// in case of copy.
EXPECT_EQ
(
destination_client_
.
rrsets_
.
size
(),
loader
.
getRRCount
());
EXPECT_EQ
(
ZoneLoader
::
PROGRESS_UNKNOWN
,
loader
.
getProgress
());
...
...
@@ -361,7 +361,7 @@ TEST_F(ZoneLoaderTest, loadUnsignedIncremental) {
EXPECT_EQ
(
10
,
destination_client_
.
rrsets_
.
size
());
EXPECT_FALSE
(
destination_client_
.
commit_called_
);
// Check we can get intermediate counters.
e
xpected progress is calculated
// Check we can get intermediate counters.
E
xpected progress is calculated
// based on the size of the zone file and the offset to the end of 10th RR
// (subject to future changes to the file, but we assume it's a rare
// event.). The expected value should be the exact expression that
...
...
@@ -377,7 +377,7 @@ TEST_F(ZoneLoaderTest, loadUnsignedIncremental) {
EXPECT_EQ
(
34
,
destination_client_
.
rrsets_
.
size
());
EXPECT_TRUE
(
destination_client_
.
commit_called_
);
// Counters are updated accordingly.
p
rogress should reach 100%.
// Counters are updated accordingly.
P
rogress should reach 100%.
EXPECT_EQ
(
destination_client_
.
rrsets_
.
size
(),
loader
.
getRRCount
());
EXPECT_EQ
(
1
,
loader
.
getProgress
());
...
...
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