From: Tomek Mrugalski Date: Wed, 17 Jan 2018 13:41:58 +0000 (+0100) Subject: [github36] Merge branch 'cassandra-host-data-source-stress-test' of https://github... X-Git-Tag: trac5502_base~5^2~7^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cd7d3144301c4e722506a31a647f81444c00aa9;p=thirdparty%2Fkea.git [github36] Merge branch 'cassandra-host-data-source-stress-test' of https://github.com/andreipavelQ/kea into github36 # Conflicts: # src/lib/dhcpsrv/tests/cql_host_data_source_unittest.cc --- 1cd7d3144301c4e722506a31a647f81444c00aa9 diff --cc src/lib/dhcpsrv/tests/cql_host_data_source_unittest.cc index e8b5544da1,ec24d550e8..bb55133616 --- a/src/lib/dhcpsrv/tests/cql_host_data_source_unittest.cc +++ b/src/lib/dhcpsrv/tests/cql_host_data_source_unittest.cc @@@ -511,56 -513,14 +511,66 @@@ TEST_F(CqlHostDataSourceTest, testAddRo DbOperationError); } +// This test checks that siaddr, sname, file fields can be retrieved +/// from a database for a host. +/// @todo: Uncomment this after 5507 is implemented. +TEST_F(CqlHostDataSourceTest, DISABLED_messageFields) { + testMessageFields4(); +} + +// Check that delete(subnet-id, addr4) works. +/// @todo: Uncomment this after #5506 is implemented. +TEST_F(CqlHostDataSourceTest, DISABLED_deleteByAddr4) { + testDeleteByAddr4(); +} + +// Check that delete(subnet4-id, identifier-type, identifier) works. +/// @todo: Uncomment this after #5506 is implemented. +TEST_F(CqlHostDataSourceTest, DISABLED_deleteById4) { + testDeleteById4(); +} + +// Check that delete(subnet4-id, identifier-type, identifier) works, +// even when options are present. +/// @todo: Uncomment this after #5506 is implemented. +TEST_F(CqlHostDataSourceTest, DISABLED_deleteById4Options) { + testDeleteById4Options(); +} + +// Check that delete(subnet6-id, identifier-type, identifier) works. +/// @todo: Uncomment this after #5506 is implemented. +TEST_F(CqlHostDataSourceTest, DISABLED_deleteById6) { + testDeleteById6(); +} + +// Check that delete(subnet6-id, identifier-type, identifier) works, +// even when options are present. +/// @todo: Uncomment this after #5506 is implemented. +TEST_F(CqlHostDataSourceTest, DISABLED_deleteById6Options) { + testDeleteById6Options(); +} + +// Tests that multiple reservations without IPv4 addresses can be +// specified within a subnet. +/// @todo: Uncomment this after #5506 is implemented. +TEST_F(CqlHostDataSourceTest, DISABLED_testMultipleHostsNoAddress4) { + testMultipleHostsNoAddress4(); +} + +// Tests that multiple hosts can be specified within an IPv6 subnet. +/// @todo: Uncomment this after #5506 is implemented. +TEST_F(CqlHostDataSourceTest, DISABLED_testMultipleHosts6) { + testMultipleHosts6(); +} + + TEST_F(CqlHostDataSourceTest, DISABLED_stressTest) { + // Run with 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4092, 8192, + // 16384 & 32768 hosts. + for (unsigned int i = 0X0001U; i < 0xfffdU; i <<= 1) { + initializeTest(); + stressTest(i); + destroyTest(); + } + } + } // namespace