|
@@ -8,11 +8,11 @@
|
|
|
|
|
|
#include <asiolink/io_address.h>
|
|
|
#include <dhcpsrv/lease_mgr_factory.h>
|
|
|
-#include <dhcpsrv/dscsql_connection.h>
|
|
|
-#include <dhcpsrv/dscsql_lease_mgr.h>
|
|
|
+#include <dhcpsrv/cql_connection.h>
|
|
|
+#include <dhcpsrv/cql_lease_mgr.h>
|
|
|
#include <dhcpsrv/tests/test_utils.h>
|
|
|
#include <dhcpsrv/tests/generic_lease_mgr_unittest.h>
|
|
|
-#include <dhcpsrv/testutils/dscsql_schema.h>
|
|
|
+#include <dhcpsrv/testutils/cql_schema.h>
|
|
|
#include <exceptions/exceptions.h>
|
|
|
|
|
|
#include <gtest/gtest.h>
|
|
@@ -32,29 +32,29 @@ using namespace std;
|
|
|
namespace {
|
|
|
|
|
|
|
|
|
-/// @brief Test fixture class for testing DataStax Cassandra Lease Manager
|
|
|
+/// @brief Test fixture class for testing Cassandra Lease Manager
|
|
|
///
|
|
|
/// Opens the database prior to each test and closes it afterwards.
|
|
|
/// All pending transactions are deleted prior to closure.
|
|
|
|
|
|
-class DSCSqlLeaseMgrTest : public GenericLeaseMgrTest {
|
|
|
+class CqlLeaseMgrTest : public GenericLeaseMgrTest {
|
|
|
public:
|
|
|
/// @brief Constructor
|
|
|
///
|
|
|
/// Deletes everything from the database and opens it.
|
|
|
- DSCSqlLeaseMgrTest() {
|
|
|
+ CqlLeaseMgrTest() {
|
|
|
|
|
|
// Ensure schema is the correct one.
|
|
|
- destroyDSCSQLSchema();
|
|
|
- createDSCSQLSchema();
|
|
|
+ destroyCqlSchema();
|
|
|
+ createCqlSchema();
|
|
|
|
|
|
// Connect to the database
|
|
|
try {
|
|
|
- LeaseMgrFactory::create(validDSCSQLConnectionString());
|
|
|
+ LeaseMgrFactory::create(validCqlConnectionString());
|
|
|
} catch (...) {
|
|
|
std::cerr << "*** ERROR: unable to open database. The test\n"
|
|
|
"*** environment is broken and must be fixed before\n"
|
|
|
- "*** the DSC SQL tests will run correctly.\n"
|
|
|
+ "*** the CQL tests will run correctly.\n"
|
|
|
"*** The reason for the problem is described in the\n"
|
|
|
"*** accompanying exception output.\n";
|
|
|
throw;
|
|
@@ -66,10 +66,10 @@ public:
|
|
|
///
|
|
|
/// Rolls back all pending transactions. The deletion of lmptr_ will close
|
|
|
/// the database. Then reopen it and delete everything created by the test.
|
|
|
- virtual ~DSCSqlLeaseMgrTest() {
|
|
|
+ virtual ~CqlLeaseMgrTest() {
|
|
|
lmptr_->rollback();
|
|
|
LeaseMgrFactory::destroy();
|
|
|
- destroyDSCSQLSchema();
|
|
|
+ destroyCqlSchema();
|
|
|
}
|
|
|
|
|
|
/// @brief Reopen the database
|
|
@@ -77,11 +77,11 @@ public:
|
|
|
/// Closes the database and re-open it. Anything committed should be
|
|
|
/// visible.
|
|
|
///
|
|
|
- /// Parameter is ignored for DSC SQL backend as the v4 and v6 leases share
|
|
|
+ /// Parameter is ignored for CQL backend as the v4 and v6 leases share
|
|
|
/// the same database.
|
|
|
void reopen(Universe) {
|
|
|
LeaseMgrFactory::destroy();
|
|
|
- LeaseMgrFactory::create(validConnectionString());
|
|
|
+ LeaseMgrFactory::create(validCqlConnectionString());
|
|
|
lmptr_ = &(LeaseMgrFactory::instance());
|
|
|
}
|
|
|
|
|
@@ -89,28 +89,28 @@ public:
|
|
|
|
|
|
/// @brief Check that database can be opened
|
|
|
///
|
|
|
-/// This test checks if the DSCSqlLeaseMgr can be instantiated. This happens
|
|
|
+/// This test checks if the CqlLeaseMgr can be instantiated. This happens
|
|
|
/// only if the database can be opened. Note that this is not part of the
|
|
|
-/// DSCSqlLeaseMgr test fixure set. This test checks that the database can be
|
|
|
+/// CqlLeaseMgr test fixure set. This test checks that the database can be
|
|
|
/// opened: the fixtures assume that and check basic operations.
|
|
|
|
|
|
-TEST(DSCSqlOpenTest, OpenDatabase) {
|
|
|
+TEST(CQLOpenTest, OpenDatabase) {
|
|
|
|
|
|
// Schema needs to be created for the test to work.
|
|
|
- destroyDSCSQLSchema();
|
|
|
- createDSCSQLSchema();
|
|
|
+ destroyCqlSchema();
|
|
|
+ createCqlSchema();
|
|
|
|
|
|
// Check that lease manager open the database opens correctly and tidy up.
|
|
|
// If it fails, print the error message.
|
|
|
try {
|
|
|
- LeaseMgrFactory::create(validDSCSQLConnectionString());
|
|
|
+ LeaseMgrFactory::create(validCqlConnectionString());
|
|
|
EXPECT_NO_THROW((void) LeaseMgrFactory::instance());
|
|
|
LeaseMgrFactory::destroy();
|
|
|
} catch (const isc::Exception& ex) {
|
|
|
FAIL() << "*** ERROR: unable to open database, reason:\n"
|
|
|
<< " " << ex.what() << "\n"
|
|
|
<< "*** The test environment is broken and must be fixed\n"
|
|
|
- << "*** before the DSC SQL tests will run correctly.\n";
|
|
|
+ << "*** before the CQL tests will run correctly.\n";
|
|
|
}
|
|
|
|
|
|
// Check that attempting to get an instance of the lease manager when
|
|
@@ -129,32 +129,32 @@ TEST(DSCSqlOpenTest, OpenDatabase) {
|
|
|
|
|
|
// Check that invalid login data causes an exception.
|
|
|
EXPECT_THROW(LeaseMgrFactory::create(connectionString(
|
|
|
- DSCSQL_VALID_TYPE, INVALID_NAME, VALID_HOST, VALID_USER, VALID_PASSWORD)),
|
|
|
+ CQL_VALID_TYPE, INVALID_NAME, VALID_HOST, VALID_USER, VALID_PASSWORD)),
|
|
|
DbOpenError);
|
|
|
EXPECT_THROW(LeaseMgrFactory::create(connectionString(
|
|
|
- DSCSQL_VALID_TYPE, VALID_NAME, INVALID_HOST, VALID_USER, VALID_PASSWORD)),
|
|
|
+ CQL_VALID_TYPE, VALID_NAME, INVALID_HOST, VALID_USER, VALID_PASSWORD)),
|
|
|
DbOpenError);
|
|
|
EXPECT_THROW(LeaseMgrFactory::create(connectionString(
|
|
|
- DSCSQL_VALID_TYPE, VALID_NAME, VALID_HOST, INVALID_USER, VALID_PASSWORD)),
|
|
|
+ CQL_VALID_TYPE, VALID_NAME, VALID_HOST, INVALID_USER, VALID_PASSWORD)),
|
|
|
DbOpenError);
|
|
|
EXPECT_THROW(LeaseMgrFactory::create(connectionString(
|
|
|
- DSCSQL_VALID_TYPE, VALID_NAME, VALID_HOST, VALID_USER, INVALID_PASSWORD)),
|
|
|
+ CQL_VALID_TYPE, VALID_NAME, VALID_HOST, VALID_USER, INVALID_PASSWORD)),
|
|
|
DbOpenError);
|
|
|
|
|
|
// Check for missing parameters
|
|
|
EXPECT_THROW(LeaseMgrFactory::create(connectionString(
|
|
|
- DSCSQL_VALID_TYPE, NULL, VALID_HOST, INVALID_USER, VALID_PASSWORD)),
|
|
|
+ CQL_VALID_TYPE, NULL, VALID_HOST, INVALID_USER, VALID_PASSWORD)),
|
|
|
NoDatabaseName);
|
|
|
|
|
|
// Tidy up after the test
|
|
|
- destroyDSCSQLSchema();
|
|
|
+ destroyCqlSchema();
|
|
|
}
|
|
|
|
|
|
/// @brief Check the getType() method
|
|
|
///
|
|
|
/// getType() returns a string giving the type of the backend, which should
|
|
|
/// always be "cassandra".
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, getType) {
|
|
|
+TEST_F(CqlLeaseMgrTest, getType) {
|
|
|
EXPECT_EQ(std::string("cassandra"), lmptr_->getType());
|
|
|
}
|
|
|
|
|
@@ -167,7 +167,7 @@ TEST_F(DSCSqlLeaseMgrTest, getType) {
|
|
|
/// expire_time = cltt + valid_lifetime
|
|
|
///
|
|
|
/// This test checks that the conversion is correct.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, checkTimeConversion) {
|
|
|
+TEST_F(CqlLeaseMgrTest, checkTimeConversion) {
|
|
|
const time_t cltt = time(NULL);
|
|
|
|
|
|
time_t converted_cltt = 0;
|
|
@@ -176,17 +176,17 @@ TEST_F(DSCSqlLeaseMgrTest, checkTimeConversion) {
|
|
|
|
|
|
|
|
|
/// @brief Check getName() returns correct database name
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, getName) {
|
|
|
+TEST_F(CqlLeaseMgrTest, getName) {
|
|
|
EXPECT_EQ(std::string("keatest"), lmptr_->getName());
|
|
|
}
|
|
|
|
|
|
/// @brief Check that getVersion() returns the expected version
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, checkVersion) {
|
|
|
+TEST_F(CqlLeaseMgrTest, checkVersion) {
|
|
|
// Check version
|
|
|
pair<uint32_t, uint32_t> version;
|
|
|
ASSERT_NO_THROW(version = lmptr_->getVersion());
|
|
|
- EXPECT_EQ(CURRENT_VERSION_VERSION, version.first);
|
|
|
- EXPECT_EQ(CURRENT_VERSION_MINOR, version.second);
|
|
|
+ EXPECT_EQ(CQL_CURRENT_VERSION, version.first);
|
|
|
+ EXPECT_EQ(CQL_CURRENT_MINOR, version.second);
|
|
|
}
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
@@ -197,29 +197,29 @@ TEST_F(DSCSqlLeaseMgrTest, checkVersion) {
|
|
|
///
|
|
|
/// Checks that the addLease, getLease4 (by address) and deleteLease (with an
|
|
|
/// IPv4 address) works.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, basicLease4) {
|
|
|
+TEST_F(CqlLeaseMgrTest, basicLease4) {
|
|
|
testBasicLease4();
|
|
|
}
|
|
|
|
|
|
/// @brief Check that Lease4 code safely handles invalid dates.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, maxDate4) {
|
|
|
+TEST_F(CqlLeaseMgrTest, maxDate4) {
|
|
|
testMaxDate4();
|
|
|
}
|
|
|
|
|
|
/// @brief Lease4 update tests
|
|
|
///
|
|
|
/// Checks that we are able to update a lease in the database.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, updateLease4) {
|
|
|
+TEST_F(CqlLeaseMgrTest, updateLease4) {
|
|
|
testUpdateLease4();
|
|
|
}
|
|
|
|
|
|
/// @brief Check GetLease4 methods - access by Hardware Address
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, getLease4HWAddr1) {
|
|
|
+TEST_F(CqlLeaseMgrTest, getLease4HWAddr1) {
|
|
|
testGetLease4HWAddr1();
|
|
|
}
|
|
|
|
|
|
/// @brief Check GetLease4 methods - access by Hardware Address
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, getLease4HWAddr2) {
|
|
|
+TEST_F(CqlLeaseMgrTest, getLease4HWAddr2) {
|
|
|
testGetLease4HWAddr2();
|
|
|
}
|
|
|
|
|
@@ -227,7 +227,7 @@ TEST_F(DSCSqlLeaseMgrTest, getLease4HWAddr2) {
|
|
|
//
|
|
|
// Check that the system can cope with getting a hardware address of
|
|
|
// any size.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, getLease4HWAddrSize) {
|
|
|
+TEST_F(CqlLeaseMgrTest, getLease4HWAddrSize) {
|
|
|
testGetLease4HWAddrSize();
|
|
|
}
|
|
|
|
|
@@ -235,7 +235,7 @@ TEST_F(DSCSqlLeaseMgrTest, getLease4HWAddrSize) {
|
|
|
///
|
|
|
/// Adds leases to the database and checks that they can be accessed via
|
|
|
/// a combination of hardware address and subnet ID
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, getLease4HwaddrSubnetId) {
|
|
|
+TEST_F(CqlLeaseMgrTest, getLease4HwaddrSubnetId) {
|
|
|
testGetLease4HWAddrSubnetId();
|
|
|
}
|
|
|
|
|
@@ -243,12 +243,12 @@ TEST_F(DSCSqlLeaseMgrTest, getLease4HwaddrSubnetId) {
|
|
|
//
|
|
|
// Check that the system can cope with getting a hardware address of
|
|
|
// any size.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, getLease4HWAddrSubnetIdSize) {
|
|
|
+TEST_F(CqlLeaseMgrTest, getLease4HWAddrSubnetIdSize) {
|
|
|
testGetLease4HWAddrSubnetIdSize();
|
|
|
}
|
|
|
|
|
|
// This test was derived from memfile.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, getLease4ClientId) {
|
|
|
+TEST_F(CqlLeaseMgrTest, getLease4ClientId) {
|
|
|
testGetLease4ClientId();
|
|
|
}
|
|
|
|
|
@@ -256,14 +256,14 @@ TEST_F(DSCSqlLeaseMgrTest, getLease4ClientId) {
|
|
|
///
|
|
|
/// Adds leases to the database and checks that they can be accessed via
|
|
|
/// the Client ID.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, getLease4ClientId2) {
|
|
|
+TEST_F(CqlLeaseMgrTest, getLease4ClientId2) {
|
|
|
testGetLease4ClientId2();
|
|
|
}
|
|
|
|
|
|
// @brief Get Lease4 by client ID (2)
|
|
|
//
|
|
|
// Check that the system can cope with a client ID of any size.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, getLease4ClientIdSize) {
|
|
|
+TEST_F(CqlLeaseMgrTest, getLease4ClientIdSize) {
|
|
|
testGetLease4ClientIdSize();
|
|
|
}
|
|
|
|
|
@@ -271,7 +271,7 @@ TEST_F(DSCSqlLeaseMgrTest, getLease4ClientIdSize) {
|
|
|
///
|
|
|
/// Adds leases to the database and checks that they can be accessed via
|
|
|
/// a combination of client and subnet IDs.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, getLease4ClientIdSubnetId) {
|
|
|
+TEST_F(CqlLeaseMgrTest, getLease4ClientIdSubnetId) {
|
|
|
testGetLease4ClientIdSubnetId();
|
|
|
}
|
|
|
|
|
@@ -280,7 +280,7 @@ TEST_F(DSCSqlLeaseMgrTest, getLease4ClientIdSubnetId) {
|
|
|
/// Checks that the addLease, getLease4(by address), getLease4(hwaddr,subnet_id),
|
|
|
/// updateLease4() and deleteLease (IPv4 address) can handle NULL client-id.
|
|
|
/// (client-id is optional and may not be present)
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, lease4NullClientId) {
|
|
|
+TEST_F(CqlLeaseMgrTest, lease4NullClientId) {
|
|
|
testLease4NullClientId();
|
|
|
}
|
|
|
|
|
@@ -288,7 +288,7 @@ TEST_F(DSCSqlLeaseMgrTest, lease4NullClientId) {
|
|
|
///
|
|
|
/// Checks that the it is not possible to create a lease when the hostname
|
|
|
/// length exceeds 255 characters.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, lease4InvalidHostname) {
|
|
|
+TEST_F(CqlLeaseMgrTest, lease4InvalidHostname) {
|
|
|
testLease4InvalidHostname();
|
|
|
}
|
|
|
|
|
@@ -298,7 +298,7 @@ TEST_F(DSCSqlLeaseMgrTest, lease4InvalidHostname) {
|
|
|
|
|
|
// Test checks whether simple add, get and delete operations are possible
|
|
|
// on Lease6
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, testAddGetDelete6) {
|
|
|
+TEST_F(CqlLeaseMgrTest, testAddGetDelete6) {
|
|
|
testAddGetDelete6(false);
|
|
|
}
|
|
|
|
|
@@ -306,12 +306,12 @@ TEST_F(DSCSqlLeaseMgrTest, testAddGetDelete6) {
|
|
|
///
|
|
|
/// Checks that the addLease, getLease6 (by address) and deleteLease (with an
|
|
|
/// IPv6 address) works.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, basicLease6) {
|
|
|
+TEST_F(CqlLeaseMgrTest, basicLease6) {
|
|
|
testBasicLease6();
|
|
|
}
|
|
|
|
|
|
/// @brief Check that Lease6 code safely handles invalid dates.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, maxDate6) {
|
|
|
+TEST_F(CqlLeaseMgrTest, maxDate6) {
|
|
|
testMaxDate6();
|
|
|
}
|
|
|
|
|
@@ -319,7 +319,7 @@ TEST_F(DSCSqlLeaseMgrTest, maxDate6) {
|
|
|
///
|
|
|
/// Checks that the it is not possible to create a lease when the hostname
|
|
|
/// length exceeds 255 characters.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, lease6InvalidHostname) {
|
|
|
+TEST_F(CqlLeaseMgrTest, lease6InvalidHostname) {
|
|
|
testLease6InvalidHostname();
|
|
|
}
|
|
|
|
|
@@ -327,12 +327,12 @@ TEST_F(DSCSqlLeaseMgrTest, lease6InvalidHostname) {
|
|
|
///
|
|
|
/// Adds leases to the database and checks that they can be accessed via
|
|
|
/// a combination of DUID and IAID.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, getLeases6DuidIaid) {
|
|
|
+TEST_F(CqlLeaseMgrTest, getLeases6DuidIaid) {
|
|
|
testGetLeases6DuidIaid();
|
|
|
}
|
|
|
|
|
|
// Check that the system can cope with a DUID of allowed size.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, getLeases6DuidSize) {
|
|
|
+TEST_F(CqlLeaseMgrTest, getLeases6DuidSize) {
|
|
|
testGetLeases6DuidSize();
|
|
|
}
|
|
|
|
|
@@ -342,7 +342,7 @@ TEST_F(DSCSqlLeaseMgrTest, getLeases6DuidSize) {
|
|
|
/// with alternating subnet_ids.
|
|
|
/// It then verifies that all of getLeases6() method variants correctly
|
|
|
/// discriminate between the leases based on lease type alone.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, lease6LeaseTypeCheck) {
|
|
|
+TEST_F(CqlLeaseMgrTest, lease6LeaseTypeCheck) {
|
|
|
testLease6LeaseTypeCheck();
|
|
|
}
|
|
|
|
|
@@ -350,19 +350,19 @@ TEST_F(DSCSqlLeaseMgrTest, lease6LeaseTypeCheck) {
|
|
|
///
|
|
|
/// Adds leases to the database and checks that they can be accessed via
|
|
|
/// a combination of DIUID and IAID.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, getLease6DuidIaidSubnetId) {
|
|
|
+TEST_F(CqlLeaseMgrTest, getLease6DuidIaidSubnetId) {
|
|
|
testGetLease6DuidIaidSubnetId();
|
|
|
}
|
|
|
|
|
|
// Test checks that getLease6() works with different DUID sizes
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, getLease6DuidIaidSubnetIdSize) {
|
|
|
+TEST_F(CqlLeaseMgrTest, getLease6DuidIaidSubnetIdSize) {
|
|
|
testGetLease6DuidIaidSubnetIdSize();
|
|
|
}
|
|
|
|
|
|
/// @brief Lease6 update tests
|
|
|
///
|
|
|
/// Checks that we are able to update a lease in the database.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, updateLease6) {
|
|
|
+TEST_F(CqlLeaseMgrTest, updateLease6) {
|
|
|
testUpdateLease6();
|
|
|
}
|
|
|
|
|
@@ -371,7 +371,7 @@ TEST_F(DSCSqlLeaseMgrTest, updateLease6) {
|
|
|
/// Checks that the lease can be created, deleted and recreated with
|
|
|
/// different parameters. It also checks that the re-created lease is
|
|
|
/// correctly stored in the lease database.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, testRecreateLease4) {
|
|
|
+TEST_F(CqlLeaseMgrTest, testRecreateLease4) {
|
|
|
testRecreateLease4();
|
|
|
}
|
|
|
|
|
@@ -380,22 +380,22 @@ TEST_F(DSCSqlLeaseMgrTest, testRecreateLease4) {
|
|
|
/// Checks that the lease can be created, deleted and recreated with
|
|
|
/// different parameters. It also checks that the re-created lease is
|
|
|
/// correctly stored in the lease database.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, testRecreateLease6) {
|
|
|
+TEST_F(CqlLeaseMgrTest, testRecreateLease6) {
|
|
|
testRecreateLease6();
|
|
|
}
|
|
|
|
|
|
/// @brief Checks that null DUID is not allowed.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, nullDuid) {
|
|
|
+TEST_F(CqlLeaseMgrTest, nullDuid) {
|
|
|
testNullDuid();
|
|
|
}
|
|
|
|
|
|
/// @brief Tests whether memfile can store and retrieve hardware addresses
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, testLease6Mac) {
|
|
|
+TEST_F(CqlLeaseMgrTest, testLease6Mac) {
|
|
|
testLease6MAC();
|
|
|
}
|
|
|
|
|
|
/// @brief Tests whether memfile can store and retrieve hardware addresses
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, testLease6HWTypeAndSource) {
|
|
|
+TEST_F(CqlLeaseMgrTest, testLease6HWTypeAndSource) {
|
|
|
testLease6HWTypeAndSource();
|
|
|
}
|
|
|
|
|
@@ -406,7 +406,7 @@ TEST_F(DSCSqlLeaseMgrTest, testLease6HWTypeAndSource) {
|
|
|
/// whether only expired leases are returned, and that they are returned in
|
|
|
/// the order from most to least expired. It also checks that the lease
|
|
|
/// which is marked as 'reclaimed' is not returned.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, getExpiredLeases4) {
|
|
|
+TEST_F(CqlLeaseMgrTest, getExpiredLeases4) {
|
|
|
testGetExpiredLeases4();
|
|
|
}
|
|
|
|
|
@@ -417,17 +417,17 @@ TEST_F(DSCSqlLeaseMgrTest, getExpiredLeases4) {
|
|
|
/// whether only expired leases are returned, and that they are returned in
|
|
|
/// the order from most to least expired. It also checks that the lease
|
|
|
/// which is marked as 'reclaimed' is not returned.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, getExpiredLeases6) {
|
|
|
+TEST_F(CqlLeaseMgrTest, getExpiredLeases6) {
|
|
|
testGetExpiredLeases6();
|
|
|
}
|
|
|
|
|
|
/// @brief Check that expired reclaimed DHCPv6 leases are removed.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, deleteExpiredReclaimedLeases6) {
|
|
|
+TEST_F(CqlLeaseMgrTest, deleteExpiredReclaimedLeases6) {
|
|
|
testDeleteExpiredReclaimedLeases6();
|
|
|
}
|
|
|
|
|
|
/// @brief Check that expired reclaimed DHCPv4 leases are removed.
|
|
|
-TEST_F(DSCSqlLeaseMgrTest, deleteExpiredReclaimedLeases4) {
|
|
|
+TEST_F(CqlLeaseMgrTest, deleteExpiredReclaimedLeases4) {
|
|
|
testDeleteExpiredReclaimedLeases4();
|
|
|
}
|
|
|
|