mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-04 16:05:17 +00:00
[2404] Alter memfile "getName()" to return "memory"
This reflects the fact that at the moment, the data is stored in memory and not in a backing file.
This commit is contained in:
@@ -199,12 +199,11 @@ public:
|
|||||||
|
|
||||||
/// @brief Returns backend name.
|
/// @brief Returns backend name.
|
||||||
///
|
///
|
||||||
/// As there is no variation, in this case we return the type of the
|
/// For now, memfile can only store data in memory.
|
||||||
/// backend.
|
|
||||||
///
|
///
|
||||||
/// @return Name of the backend.
|
/// @return Name of the backend.
|
||||||
virtual std::string getName() const {
|
virtual std::string getName() const {
|
||||||
return ("memfile");
|
return ("memory");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @brief Returns description of the backend.
|
/// @brief Returns description of the backend.
|
||||||
|
@@ -53,7 +53,7 @@ TEST_F(MemfileLeaseMgrTest, getTypeAndName) {
|
|||||||
boost::scoped_ptr<Memfile_LeaseMgr> lease_mgr(new Memfile_LeaseMgr(pmap));
|
boost::scoped_ptr<Memfile_LeaseMgr> lease_mgr(new Memfile_LeaseMgr(pmap));
|
||||||
|
|
||||||
EXPECT_EQ(std::string("memfile"), lease_mgr->getType());
|
EXPECT_EQ(std::string("memfile"), lease_mgr->getType());
|
||||||
EXPECT_EQ(std::string("memfile"), lease_mgr->getName());
|
EXPECT_EQ(std::string("memory"), lease_mgr->getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Checks that adding/getting/deleting a Lease6 object works.
|
// Checks that adding/getting/deleting a Lease6 object works.
|
||||||
|
Reference in New Issue
Block a user