mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 08:16:59 +00:00
tests: add json tests, and make fail output loud
Gilles reported the full-json is currently broken, which the new check demonstrates. Luckily the issue occurs only when active leases details are being queried, leaving the count to be correct. That said bug is a bug, and that should be corrected. Reported-by: Gilles Bouthenot <gilles.bouthenot@univ-fcomte.fr> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
a768049f3e
commit
d8aae53968
8 changed files with 63 additions and 5 deletions
10
tests/leases/same-twice
Normal file
10
tests/leases/same-twice
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
lease 10.0.0.5 {
|
||||
binding state active;
|
||||
next binding state free;
|
||||
hardware ethernet be:ef:00:00:co:de;
|
||||
}
|
||||
lease 10.0.0.5 {
|
||||
binding state active;
|
||||
next binding state free;
|
||||
hardware ethernet 00:00:00:00:00:00;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue