2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-18 14:00:15 +00:00

[1183] getAllRecords already takes zone_id, does not need name

This commit is contained in:
Jelte Jansen
2011-08-18 15:01:51 +02:00
parent 45630ca90e
commit 1b421982a6
6 changed files with 14 additions and 13 deletions

View File

@@ -233,7 +233,7 @@ private:
}
};
public:
virtual IteratorContextPtr getAllRecords(const Name&, int id) const {
virtual IteratorContextPtr getAllRecords(int id) const {
if (id == 42) {
return (IteratorContextPtr(new MockIteratorContext()));
} else if (id == 13) {
@@ -440,12 +440,16 @@ private:
}
};
// This tests the default getRecords behaviour, throwing NotImplemented
TEST(DatabaseConnectionTest, getRecords) {
EXPECT_THROW(NopAccessor().getRecords(Name("."), 1),
isc::NotImplemented);
}
// This tests the default getAllRecords behaviour, throwing NotImplemented
TEST(DatabaseConnectionTest, getAllRecords) {
// The parameters don't matter
EXPECT_THROW(NopAccessor().getRecords(Name("."), 1),
isc::NotImplemented);
EXPECT_THROW(NopAccessor().getAllRecords(Name("."), 1),
EXPECT_THROW(NopAccessor().getAllRecords(1),
isc::NotImplemented);
}