mirror of
https://github.com/alexhopeoconnor/dnsmasq-webui.git
synced 2026-10-03 22:12:00 +10:00
1022 B
1022 B
Test data
Used in two ways:
- Unit tests – Parsers and services read from
testdata/(e.g.testdata/leasesfor lease-format tests). - Docker test harness – Run
scripts/prepare-test-mount.shto copy this intotestdata-mount/(gitignored). Compose mountstestdata-mountas/data. leases is excluded from the copy so dnsmasq creates and owns the real leases file in the harness.
Files:
- hosts – Shared by app and dnsmasq (read/write by app,
addn-hostsfor dnsmasq). - dnsmasq.conf – Sample main config (reference only; not used by the test containers).
- dnsmasq-test.conf – Config for dnsmasq when run inside the app container (DHCP-only, paths under
/data). - dnsmasq.d/dhcp.conf – DHCP static hosts; app edits this, dnsmasq loads it via
conf-dir. - dnsmasq.d/01-other.conf – Other snippet (not managed by app).
- leases – For unit tests only. In the Docker harness, dnsmasq creates
/data/leases; the app watches it and shows live leases.