mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 00:06: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
18
tests/expected/errors
Normal file
18
tests/expected/errors
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
=== output mask
|
||||
dhcpd-pools: return_limit: output mask '88' is illegal
|
||||
=== unknown specifier
|
||||
dhcpd-pools: unknown --skip specifier: okish
|
||||
=== color mode
|
||||
dhcpd-pools: unknown color mode: 'sometimes'
|
||||
=== IPv5
|
||||
dhcpd-pools: unknown --ip-version argument: 5
|
||||
=== missing conf
|
||||
dhcpd-pools: parse_config: ./tests/confs/complete_NXFILE: No such file or directory
|
||||
=== missing leases
|
||||
dhcpd-pools: parse_leases: ./tests/leases/complete_NXFILE: No such file or directory
|
||||
=== html table
|
||||
dhcpd-pools: html table only output format is deprecated
|
||||
=== none existing format
|
||||
dhcpd-pools: unknown output format: 'z'
|
||||
=== broken percent input
|
||||
dhcpd-pools: illegal argument: 'eighty'
|
||||
Loading…
Add table
Add a link
Reference in a new issue