testUpdateLease4();
}
+/// @brief Lease4 update tests
+TEST_F(MySqlLeaseMgrTest, updateLease4MultiThreading) {
+ MultiThreadingMgr::instance().setMode(true);
+ testUpdateLease4();
+}
+
/// @brief Lease4 concurrent update tests
///
/// Checks that we are not able to concurrently update a lease in the database.
testConcurrentUpdateLease4();
}
-/// @brief Lease4 update tests
-TEST_F(MySqlLeaseMgrTest, updateLease4MultiThreading) {
+/// @brief Lease4 concurrent update tests
+///
+/// Checks that we are not able to concurrently update a lease in the database.
+TEST_F(MySqlLeaseMgrTest, concurrentUpdateLease4MultiThreading) {
MultiThreadingMgr::instance().setMode(true);
- testUpdateLease4();
+ testConcurrentUpdateLease4();
}
/// @brief Check GetLease4 methods - access by Hardware Address
testUpdateLease6();
}
+/// @brief Lease6 update tests
+TEST_F(MySqlLeaseMgrTest, updateLease6MultiThreading) {
+ MultiThreadingMgr::instance().setMode(true);
+ testUpdateLease6();
+}
+
/// @brief Lease6 concurrent update tests
///
/// Checks that we are not able to concurrently update a lease in the database.
testConcurrentUpdateLease6();
}
-/// @brief Lease6 update tests
-TEST_F(MySqlLeaseMgrTest, updateLease6MultiThreading) {
+/// @brief Lease6 concurrent update tests
+///
+/// Checks that we are not able to concurrently update a lease in the database.
+TEST_F(MySqlLeaseMgrTest, concurrentUpdateLease6MultiThreading) {
MultiThreadingMgr::instance().setMode(true);
- testUpdateLease6();
+ testConcurrentUpdateLease6();
}
/// @brief DHCPv4 Lease recreation tests
// Tidy up after the test
destroyPgSQLSchema();
+ LeaseMgrFactory::destroy();
}
/// @brief Check that database can be opened with Multi-Threading
testUpdateLease4();
}
+/// @brief Lease4 update tests
+TEST_F(PgSqlLeaseMgrTest, updateLease4MultiThreading) {
+ MultiThreadingMgr::instance().setMode(true);
+ testUpdateLease4();
+}
+
/// @brief Lease4 concurrent update tests
///
/// Checks that we are not able to concurrently update a lease in the database.
testConcurrentUpdateLease4();
}
-/// @brief Lease4 update tests
-TEST_F(PgSqlLeaseMgrTest, updateLease4MultiThreading) {
+/// @brief Lease4 concurrent update tests
+///
+/// Checks that we are not able to concurrently update a lease in the database.
+TEST_F(PgSqlLeaseMgrTest, concurrentUpdateLease4MultiThreading) {
MultiThreadingMgr::instance().setMode(true);
- testUpdateLease4();
+ testConcurrentUpdateLease4();
}
/// @brief Check GetLease4 methods - access by Hardware Address
testUpdateLease6();
}
+/// @brief Lease6 update tests
+TEST_F(PgSqlLeaseMgrTest, updateLease6MultiThreading) {
+ MultiThreadingMgr::instance().setMode(true);
+ testUpdateLease6();
+}
+
/// @brief Lease6 concurrent update tests
///
/// Checks that we are not able to concurrently update a lease in the database.
testConcurrentUpdateLease6();
}
-/// @brief Lease6 update tests
-TEST_F(PgSqlLeaseMgrTest, updateLease6MultiThreading) {
+/// @brief Lease6 concurrent update tests
+///
+/// Checks that we are not able to concurrently update a lease in the database.
+TEST_F(PgSqlLeaseMgrTest, concurrentUpdateLease6MultiThreading) {
MultiThreadingMgr::instance().setMode(true);
- testUpdateLease6();
+ testConcurrentUpdateLease6();
}
/// @brief DHCPv4 Lease recreation tests