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:
Sami Kerola 2013-04-22 23:16:18 +01:00
parent ffffbc96cc
commit ab535d8ab1
5 changed files with 17 additions and 0 deletions

View file

@ -4,6 +4,7 @@ TESTS = \
empty \
full-json \
leading0 \
one-ip \
same-twice \
simple \
v6

1
tests/confs/one-ip Normal file
View file

@ -0,0 +1 @@
range 10.20.30.40;

10
tests/expected/one-ip Normal file
View 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
View 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
View file

@ -0,0 +1 @@
test.sh