mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-10-01 11:22:13 +00:00
[1063] Few more tests
This commit is contained in:
@@ -272,6 +272,8 @@ private:
|
||||
addCurName("delegation.example.org.");
|
||||
addRecord("A", "3600", "", "192.0.2.1");
|
||||
addCurName("ns.delegation.example.org.");
|
||||
addRecord("A", "3600", "", "192.0.2.1");
|
||||
addCurName("deep.below.delegation.example.org.");
|
||||
|
||||
addRecord("A", "3600", "", "192.0.2.1");
|
||||
addRecord("DNAME", "3600", "", "dname.example.com.");
|
||||
@@ -775,6 +777,11 @@ TEST_F(DatabaseClientTest, findDelegation) {
|
||||
isc::dns::RRTTL(3600), ZoneFinder::DELEGATION, expected_rdatas_,
|
||||
expected_sig_rdatas_,
|
||||
isc::dns::Name("delegation.example.org."));
|
||||
doFindTest(finder, isc::dns::Name("deep.below.delegation.example.org."),
|
||||
isc::dns::RRType::AAAA(), isc::dns::RRType::NS(),
|
||||
isc::dns::RRTTL(3600), ZoneFinder::DELEGATION, expected_rdatas_,
|
||||
expected_sig_rdatas_,
|
||||
isc::dns::Name("delegation.example.org."));
|
||||
EXPECT_FALSE(current_database_->searchRunning());
|
||||
|
||||
// Even when we check directly at the delegation point, we should get
|
||||
@@ -811,6 +818,11 @@ TEST_F(DatabaseClientTest, findDelegation) {
|
||||
isc::dns::RRTTL(3600), ZoneFinder::DNAME, expected_rdatas_,
|
||||
expected_sig_rdatas_, isc::dns::Name("dname.example.org."));
|
||||
EXPECT_FALSE(current_database_->searchRunning());
|
||||
doFindTest(finder, isc::dns::Name("really.deep.below.dname.example.org."),
|
||||
isc::dns::RRType::AAAA(), isc::dns::RRType::DNAME(),
|
||||
isc::dns::RRTTL(3600), ZoneFinder::DNAME, expected_rdatas_,
|
||||
expected_sig_rdatas_, isc::dns::Name("dname.example.org."));
|
||||
EXPECT_FALSE(current_database_->searchRunning());
|
||||
|
||||
// Asking direcly for DNAME should give SUCCESS
|
||||
doFindTest(finder, isc::dns::Name("dname.example.org."),
|
||||
|
Reference in New Issue
Block a user