mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 00:06:59 +00:00
tests: add a test for one ip range
A regression test for commit ffffbc9 fix.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
ffffbc96cc
commit
ab535d8ab1
5 changed files with 17 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ TESTS = \
|
||||||
empty \
|
empty \
|
||||||
full-json \
|
full-json \
|
||||||
leading0 \
|
leading0 \
|
||||||
|
one-ip \
|
||||||
same-twice \
|
same-twice \
|
||||||
simple \
|
simple \
|
||||||
v6
|
v6
|
||||||
|
|
|
||||||
1
tests/confs/one-ip
Normal file
1
tests/confs/one-ip
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
range 10.20.30.40;
|
||||||
10
tests/expected/one-ip
Normal file
10
tests/expected/one-ip
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
Ranges:
|
||||||
|
shared net name first ip last ip max cur percent touch t+c t+c perc
|
||||||
|
All networks 10.20.30.40 - 10.20.30.40 1 1 100.000 0 1 100.000
|
||||||
|
|
||||||
|
Shared networks:
|
||||||
|
name max cur percent touch t+c t+c perc
|
||||||
|
|
||||||
|
Sum of all ranges:
|
||||||
|
name max cur percent touch t+c t+c perc
|
||||||
|
All networks 1 1 100.000 0 1 100.000
|
||||||
4
tests/leases/one-ip
Normal file
4
tests/leases/one-ip
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
lease 10.20.30.40 {
|
||||||
|
binding state active;
|
||||||
|
hardware ethernet 00:00:00:00:00:00;
|
||||||
|
}
|
||||||
1
tests/one-ip
Symbolic link
1
tests/one-ip
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
test.sh
|
||||||
Loading…
Add table
Add a link
Reference in a new issue