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
1
tests/confs/binding-states
Symbolic link
1
tests/confs/binding-states
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
complete
|
||||
31
tests/confs/cidr-v4
Normal file
31
tests/confs/cidr-v4
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
shared-network example1 {
|
||||
subnet 10.0.0.0 netmask 255.255.255.0 {
|
||||
pool {
|
||||
range 10.0.0.1/27;
|
||||
}
|
||||
}
|
||||
subnet 10.1.0.0 netmask 255.255.255.0 {
|
||||
pool {
|
||||
range 10.1.0.1/27;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
shared-network example2 {
|
||||
subnet 10.2.0.0 netmask 255.255.255.0 {
|
||||
pool {
|
||||
range 10.2.0.1/27;
|
||||
}
|
||||
}
|
||||
subnet 10.3.0.0 netmask 255.255.255.0 {
|
||||
pool {
|
||||
range 10.3.0.1/27;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
subnet 10.4.0.0 netmask 255.255.255.0 {
|
||||
pool {
|
||||
range 10.4.0.1/28;
|
||||
}
|
||||
}
|
||||
10
tests/confs/cidr-v6
Normal file
10
tests/confs/cidr-v6
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
subnet6 dead:abba:1000::/56 {
|
||||
range6 dead:abba:1000::2/120;
|
||||
prefix6 dead:abba:1000:0100:: dead:abba:1000:ff00::/56;
|
||||
}
|
||||
|
||||
subnet6 dead:abba:40ff::/56 {
|
||||
range6 dead:abba:4000::2/120;
|
||||
prefix6 dead:abba:4000:0100:: dead:abba:4000:ff00::/56;
|
||||
}
|
||||
|
||||
1
tests/confs/formats
Symbolic link
1
tests/confs/formats
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
complete
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
shared-network example1 {
|
||||
subnet 10.0.0.0 netmask 255.255.255.0 {
|
||||
pool {
|
||||
range 10.0.0.1 10.0.0.20;
|
||||
}
|
||||
}
|
||||
subnet 10.1.0.0 netmask 255.255.255.0 {
|
||||
pool {
|
||||
range 10.1.0.1 10.1.0.20;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
shared-network example2 {
|
||||
subnet 10.2.0.0 netmask 255.255.255.0 {
|
||||
pool {
|
||||
range 10.2.0.1 10.2.0.20;
|
||||
}
|
||||
}
|
||||
subnet 10.3.0.0 netmask 255.255.255.0 {
|
||||
pool {
|
||||
range 10.3.0.1 10.3.0.20;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
subnet 10.4.0.0 netmask 255.255.255.0 {
|
||||
pool {
|
||||
range 10.4.0.1 10.4.0.20;
|
||||
}
|
||||
}
|
||||
1
tests/confs/shnet-alarm
Symbolic link
1
tests/confs/shnet-alarm
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
complete
|
||||
1
tests/confs/shufled
Symbolic link
1
tests/confs/shufled
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
complete
|
||||
1
tests/confs/statuses
Symbolic link
1
tests/confs/statuses
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
complete
|
||||
Loading…
Add table
Add a link
Reference in a new issue