diff options
author | Francis Dupont <fdupont@isc.org> | 2023-07-06 23:04:23 +0200 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2023-07-06 23:04:23 +0200 |
commit | 47693d30ea2774225d461679310fd4a33686abf1 (patch) | |
tree | cd5267cb2f542a0eac5bce7f4f328b22258aae19 /src/lib/dhcpsrv/tests | |
parent | [#2869] Checkpoint add delete cascade (diff) | |
download | kea-47693d30ea2774225d461679310fd4a33686abf1.tar.xz kea-47693d30ea2774225d461679310fd4a33686abf1.zip |
[#2869] Finished delete cascade
Diffstat (limited to 'src/lib/dhcpsrv/tests')
-rw-r--r-- | src/lib/dhcpsrv/tests/mysql_lease_extended_info_unittest.cc | 11 | ||||
-rw-r--r-- | src/lib/dhcpsrv/tests/pgsql_lease_extended_info_unittest.cc | 11 |
2 files changed, 20 insertions, 2 deletions
diff --git a/src/lib/dhcpsrv/tests/mysql_lease_extended_info_unittest.cc b/src/lib/dhcpsrv/tests/mysql_lease_extended_info_unittest.cc index a3c8be9c23..ed491ccb59 100644 --- a/src/lib/dhcpsrv/tests/mysql_lease_extended_info_unittest.cc +++ b/src/lib/dhcpsrv/tests/mysql_lease_extended_info_unittest.cc @@ -8,7 +8,7 @@ #include <asiolink/io_address.h> #include <cc/data.h> -#include <dhcpsrv/testutils/generic_extended_info_unittest.h> +#include <dhcpsrv/testutils/generic_lease_extended_info_unittest.h> #include <mysql/testutils/mysql_schema.h> #include <dhcpsrv/mysql_lease_mgr.h> @@ -172,6 +172,15 @@ TEST_F(MySqlExtendedInfoTest, enableTablesMultiThreading) { testEnableTables(); } +TEST_F(MySqlExtendedInfoTest, deleteCascade) { + testDeleteCascade(); +} + +TEST_F(MySqlExtendedInfoTest, deleteCascadeMultiThreading) { + MultiThreadingTest mt(true); + testDeleteCascade(); +} + TEST_F(MySqlExtendedInfoTest, getLeases6ByRelayId) { testGetLeases6ByRelayId(); } diff --git a/src/lib/dhcpsrv/tests/pgsql_lease_extended_info_unittest.cc b/src/lib/dhcpsrv/tests/pgsql_lease_extended_info_unittest.cc index e9f803893b..bdb6cd8ecb 100644 --- a/src/lib/dhcpsrv/tests/pgsql_lease_extended_info_unittest.cc +++ b/src/lib/dhcpsrv/tests/pgsql_lease_extended_info_unittest.cc @@ -8,7 +8,7 @@ #include <asiolink/io_address.h> #include <cc/data.h> -#include <dhcpsrv/testutils/generic_extended_info_unittest.h> +#include <dhcpsrv/testutils/generic_lease_extended_info_unittest.h> #include <pgsql/testutils/pgsql_schema.h> #include <dhcpsrv/pgsql_lease_mgr.h> @@ -172,6 +172,15 @@ TEST_F(PgSqlExtendedInfoTest, enableTablesMultiThreading) { testEnableTables(); } +TEST_F(PgSqlExtendedInfoTest, deleteCascade) { + testDeleteCascade(); +} + +TEST_F(PgSqlExtendedInfoTest, deleteCascadeMultiThreading) { + MultiThreadingTest mt(true); + testDeleteCascade(); +} + TEST_F(PgSqlExtendedInfoTest, getLeases6ByRelayId) { testGetLeases6ByRelayId(); } |