-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
dnsmasq's internal knowledge about the leases is hidden in memory.
For that reason, we use a --dhcp-script to persistently mirror this state in the auth_dhcp_leases table (also for unauth).
Furthermore, dnsmasq bootstraps this state by passing said script the init command.
To ensure correctness of this synchronization, we should add unit tests for the lease_server.
Mainly, this means extending test stubs like the following:
hades/tests/test_lease_sync.py
Lines 69 to 70 in d8a48d4
| def test_add_lease(): | |
| pass |
The lease server is not completely untested, however: Some bats tests check whether the lease invalidation on refresh works correctly, which at least uses
- the capability of dnsmasq to correctly reconstruct the lease state using the
initcommand - the capability of the lease server to accept the
deletecommand and delete the corresponding row in the leases table
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels