Skip to content
GitLab
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
cf131c0c
Commit
cf131c0c
authored
Feb 22, 2011
by
Jelte Jansen
Browse files
[master] Re-enabled and updated a few tests
parent
3ebbda21
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/cache/tests/resolver_cache_unittest.cc
View file @
cf131c0c
...
...
@@ -18,6 +18,7 @@
#include
<dns/rrset.h>
#include
"resolver_cache.h"
#include
"cache_test_messagefromfile.h"
#include
"cache_test_sectioncount.h"
using
namespace
isc
::
cache
;
using
namespace
isc
::
dns
;
...
...
@@ -63,7 +64,7 @@ TEST_F(ResolverCacheTest, testUpdateMessage) {
EXPECT_TRUE
(
cache
->
lookup
(
qname
,
RRType
::
SOA
(),
RRClass
::
IN
(),
new_msg
));
EXPECT_FALSE
(
new_msg
.
getHeaderFlag
(
Message
::
HEADERFLAG_AA
));
}
#if 0
TEST_F
(
ResolverCacheTest
,
testUpdateRRset
)
{
Message
msg
(
Message
::
PARSE
);
messageFromFile
(
msg
,
"message_fromWire3"
);
...
...
@@ -86,7 +87,7 @@ TEST_F(ResolverCacheTest, testUpdateRRset) {
cache
->
update
(
rrset_ptr
);
Message
new_msg
(
Message
::
RENDER
);
Question question(qname,
k
lass, RRType::NS());
Question
question
(
qname
,
RRC
lass
::
IN
()
,
RRType
::
NS
());
new_msg
.
addQuestion
(
question
);
EXPECT_TRUE
(
cache
->
lookup
(
qname
,
RRType
::
NS
(),
RRClass
::
IN
(),
new_msg
));
EXPECT_EQ
(
0
,
sectionRRsetCount
(
new_msg
,
Message
::
SECTION_AUTHORITY
));
...
...
@@ -127,11 +128,4 @@ TEST_F(ResolverCacheTest, testLookupClosestRRset) {
EXPECT_FALSE
(
rrset_ptr
);
}
TEST_F(ResolverCacheTest, testHasClass) {
EXPECT_TRUE(cache->getClassCache(RRClass::IN()));
EXPECT_TRUE(cache->getClassCache(RRClass::CH()));
EXPECT_FALSE(cache->getClassCache(RRClass::ANY()));
}
#endif
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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