mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 21:45:37 +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.
|
||||
///
|
||||
/// As there is no variation, in this case we return the type of the
|
||||
/// backend.
|
||||
/// For now, memfile can only store data in memory.
|
||||
///
|
||||
/// @return Name of the backend.
|
||||
virtual std::string getName() const {
|
||||
return ("memfile");
|
||||
return ("memory");
|
||||
}
|
||||
|
||||
/// @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));
|
||||
|
||||
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.
|
||||
|
Reference in New Issue
Block a user