mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 08:16:59 +00:00
tests: improve coverage
Add error condition checks. Add lease file binding states. Check all output formats. Check leases file that is in mad order, cse all sorting methods when checking this. Use json output to check status classfications. Add cidr range checks. Add conf include and comment parsing input checks. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
2849dde21b
commit
447241e6c3
33 changed files with 1059 additions and 51 deletions
16
tests/expected/cidr-v4
Normal file
16
tests/expected/cidr-v4
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
Ranges:
|
||||
shared net name first ip last ip max cur percent touch t+c t+c perc
|
||||
example1 10.0.0.1 - 10.0.0.31 31 11 35.484 0 11 35.484
|
||||
example1 10.1.0.1 - 10.1.0.31 31 10 32.258 0 10 32.258
|
||||
example2 10.2.0.1 - 10.2.0.31 31 8 25.806 0 8 25.806
|
||||
example2 10.3.0.1 - 10.3.0.31 31 9 29.032 0 9 29.032
|
||||
All networks 10.4.0.1 - 10.4.0.15 15 5 33.333 0 5 33.333
|
||||
|
||||
Shared networks:
|
||||
name max cur percent touch t+c t+c perc
|
||||
example1 62 21 33.871 0 21 33.871
|
||||
example2 62 17 27.419 0 17 27.419
|
||||
|
||||
Sum of all ranges:
|
||||
name max cur percent touch t+c t+c perc
|
||||
All networks 139 43 30.935 0 43 30.935
|
||||
Loading…
Add table
Add a link
Reference in a new issue