diff options
author | Francis Dupont <fdupont@isc.org> | 2024-01-12 15:35:52 +0100 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2024-01-17 11:06:16 +0100 |
commit | d84201cb87a468236e2ce3bf3783ec6903c869ad (patch) | |
tree | b6ce6633e0a9f708ef40adc104f8682d6cfba7d3 /src/lib/dhcpsrv/tests | |
parent | [#3149] Moved to getLeases6 overload (diff) | |
download | kea-d84201cb87a468236e2ce3bf3783ec6903c869ad.tar.xz kea-d84201cb87a468236e2ce3bf3783ec6903c869ad.zip |
[#3149] Added testGetLeases6SubnetIdPaged
Diffstat (limited to 'src/lib/dhcpsrv/tests')
-rw-r--r-- | src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc | 15 | ||||
-rw-r--r-- | src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc | 13 | ||||
-rw-r--r-- | src/lib/dhcpsrv/tests/pgsql_lease_mgr_unittest.cc | 13 |
3 files changed, 41 insertions, 0 deletions
diff --git a/src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc b/src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc index b91c21f723..e0a211bddd 100644 --- a/src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc +++ b/src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc @@ -1103,6 +1103,21 @@ TEST_F(MemfileLeaseMgrTest, getLeases6SubnetIdMultiThread) { testGetLeases6SubnetId(); } +/// @brief This test checks that all IPv6 leases for a specified subnet id +/// with paging are returned. +TEST_F(MemfileLeaseMgrTest, getLeases6SubnetIdPaged) { + startBackend(V6); + testGetLeases6SubnetIdPaged(); +} + +/// @brief This test checks that all IPv6 leases for a specified subnet id +/// with paging are returned. +TEST_F(MemfileLeaseMgrTest, getLeases6SubnetIdPagedMultiThread) { + startBackend(V6); + MultiThreadingMgr::instance().setMode(true); + testGetLeases6SubnetIdPaged(); +} + /// @brief This test checks that all IPv6 leases with a specified hostname are returned. TEST_F(MemfileLeaseMgrTest, getLeases6Hostname) { startBackend(V6); diff --git a/src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc b/src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc index a5737ef253..8a8fdb84f9 100644 --- a/src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc +++ b/src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc @@ -534,6 +534,19 @@ TEST_F(MySqlLeaseMgrTest, getLeases6SubnetIdMultiThreading) { testGetLeases6SubnetId(); } +/// @brief This test checks that all IPv6 leases for a specified subnet id +/// with paging are returned. +TEST_F(MySqlLeaseMgrTest, getLeases6SubnetIdPaged) { + testGetLeases6SubnetIdPaged(); +} + +/// @brief This test checks that all IPv6 leases for a specified subnet id +/// with paging are returned. +TEST_F(MySqlLeaseMgrTest, getLeases6SubnetIdPagedMultiThreading) { + MultiThreadingTest mt(true); + testGetLeases6SubnetIdPaged(); +} + /// @brief This test checks that all IPv6 leases with a specified hostname are returned. TEST_F(MySqlLeaseMgrTest, getLeases6Hostname) { testGetLeases6Hostname(); diff --git a/src/lib/dhcpsrv/tests/pgsql_lease_mgr_unittest.cc b/src/lib/dhcpsrv/tests/pgsql_lease_mgr_unittest.cc index 15eb78c4dd..7b9e1d188e 100644 --- a/src/lib/dhcpsrv/tests/pgsql_lease_mgr_unittest.cc +++ b/src/lib/dhcpsrv/tests/pgsql_lease_mgr_unittest.cc @@ -501,6 +501,19 @@ TEST_F(PgSqlLeaseMgrTest, getLeases6SubnetIdMultiThreading) { testGetLeases6SubnetId(); } +/// @brief This test checks that all IPv6 leases for a specified subnet id +/// with paging are returned. +TEST_F(PgSqlLeaseMgrTest, getLeases6SubnetIdPaged) { + testGetLeases6SubnetIdPaged(); +} + +/// @brief This test checks that all IPv6 leases for a specified subnet id +/// with paging are returned. +TEST_F(PgSqlLeaseMgrTest, getLeases6SubnetIdPagedMultiThreading) { + MultiThreadingTest mt(true); + testGetLeases6SubnetIdPaged(); +} + /// @brief This test checks that all IPv6 leases with a specified hostname are returned. TEST_F(PgSqlLeaseMgrTest, getLeases6Hostname) { testGetLeases6Hostname(); |