add unit tests for lease limits
Unit tests for lease limits were neglected. This issue was spun off #2448 (closed) which was merged so that we can be more agile with system testing the feature. Here are some pointers.
-
src/hooks/dhcp/limits/libloadtests/limits_unit_tests_load_unload.cc
is a bit more focused on the loading and unloading of libraries, but it also has tests that check if a packet is dropped or not according to the configure rate limit. Tests for lease limiting could follow in these footsteps and be added to the same file. -
Create src/hooks/dhcp/limits/tests/limits_unit_tests_lease_limiting.cc
and get inspiration fromsrc/hooks/dhcp/limits/tests/limits_unit_tests_rate_limiting.cc
for unit test ideas, and don't necessarily stop there.