]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: Add tests for <lease/> to cover dnsmasq settings
authorJulio Faracco <jcfaracco@gmail.com>
Wed, 22 Apr 2020 20:05:58 +0000 (17:05 -0300)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 23 Apr 2020 08:59:33 +0000 (10:59 +0200)
New tests are required to cover some new XML syntax entry for
<lease/> option. This includes schema testing and other features
like unit attribute and lease value. This commit includes hostsfile
checks adding new files for each test case that is manipulating <host/>
tag.

Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
32 files changed:
tests/networkxml2confdata/dhcp6-nat-network.hostsfile [new file with mode: 0644]
tests/networkxml2confdata/dhcp6-network.hostsfile [new file with mode: 0644]
tests/networkxml2confdata/dhcp6host-routed-network.hostsfile [new file with mode: 0644]
tests/networkxml2confdata/leasetime-hours.conf [new file with mode: 0644]
tests/networkxml2confdata/leasetime-hours.hostsfile [new file with mode: 0644]
tests/networkxml2confdata/leasetime-hours.xml [new file with mode: 0644]
tests/networkxml2confdata/leasetime-infinite.conf [new file with mode: 0644]
tests/networkxml2confdata/leasetime-infinite.hostsfile [new file with mode: 0644]
tests/networkxml2confdata/leasetime-infinite.xml [new file with mode: 0644]
tests/networkxml2confdata/leasetime-minutes.conf [new file with mode: 0644]
tests/networkxml2confdata/leasetime-minutes.hostsfile [new file with mode: 0644]
tests/networkxml2confdata/leasetime-minutes.xml [new file with mode: 0644]
tests/networkxml2confdata/leasetime-seconds.conf [new file with mode: 0644]
tests/networkxml2confdata/leasetime-seconds.hostsfile [new file with mode: 0644]
tests/networkxml2confdata/leasetime-seconds.xml [new file with mode: 0644]
tests/networkxml2confdata/nat-network-dns-srv-record-minimal.hostsfile [new file with mode: 0644]
tests/networkxml2confdata/nat-network-dns-srv-record.hostsfile [new file with mode: 0644]
tests/networkxml2confdata/nat-network-dns-txt-record.hostsfile [new file with mode: 0644]
tests/networkxml2confdata/nat-network-mtu.hostsfile [new file with mode: 0644]
tests/networkxml2confdata/nat-network-name-with-quotes.hostsfile [new file with mode: 0644]
tests/networkxml2confdata/nat-network.hostsfile [new file with mode: 0644]
tests/networkxml2confdata/ptr-domains-auto.hostsfile [new file with mode: 0644]
tests/networkxml2conftest.c
tests/networkxml2xmlin/leasetime-hours.xml [new symlink]
tests/networkxml2xmlin/leasetime-infinite.xml [new symlink]
tests/networkxml2xmlin/leasetime-minutes.xml [new symlink]
tests/networkxml2xmlin/leasetime-seconds.xml [new symlink]
tests/networkxml2xmlout/leasetime-hours.xml [new symlink]
tests/networkxml2xmlout/leasetime-infinite.xml [new symlink]
tests/networkxml2xmlout/leasetime-minutes.xml [new symlink]
tests/networkxml2xmlout/leasetime-seconds.xml [new symlink]
tests/networkxml2xmltest.c

diff --git a/tests/networkxml2confdata/dhcp6-nat-network.hostsfile b/tests/networkxml2confdata/dhcp6-nat-network.hostsfile
new file mode 100644 (file)
index 0000000..de659b9
--- /dev/null
@@ -0,0 +1,7 @@
+00:16:3e:77:e2:ed,192.168.122.10,a.example.com
+00:16:3e:3e:a9:1a,192.168.122.11,b.example.com
+id:0:4:7e:7d:f0:7d:a8:bc:c5:d2:13:32:11:ed:16:ea:84:63,[2001:db8:ac10:fd01::1:20]
+paul,[2001:db8:ac10:fd01::1:21]
+id:0:3:0:1:0:16:3e:11:22:33,peter.xyz,[2001:db8:ac10:fd01::1:22]
+id:0:3:0:1:0:16:3e:44:55:33,[2001:db8:ac10:fd01::1:23]
+id:0:1:0:1:18:aa:62:fe:0:16:3e:44:55:66,badbob,[2001:db8:ac10:fd01::1:24]
diff --git a/tests/networkxml2confdata/dhcp6-network.hostsfile b/tests/networkxml2confdata/dhcp6-network.hostsfile
new file mode 100644 (file)
index 0000000..9dfb172
--- /dev/null
@@ -0,0 +1,5 @@
+id:0:4:7e:7d:f0:7d:a8:bc:c5:d2:13:32:11:ed:16:ea:84:63,[2001:db8:ac10:fd01::1:20]
+paul,[2001:db8:ac10:fd01::1:21]
+id:0:3:0:1:0:16:3e:11:22:33,peter.xyz,[2001:db8:ac10:fd01::1:22]
+id:0:3:0:1:0:16:3e:44:55:33,[2001:db8:ac10:fd01::1:23]
+id:0:1:0:1:18:aa:62:fe:0:16:3e:44:55:66,badbob,[2001:db8:ac10:fd01::1:24]
diff --git a/tests/networkxml2confdata/dhcp6host-routed-network.hostsfile b/tests/networkxml2confdata/dhcp6host-routed-network.hostsfile
new file mode 100644 (file)
index 0000000..de659b9
--- /dev/null
@@ -0,0 +1,7 @@
+00:16:3e:77:e2:ed,192.168.122.10,a.example.com
+00:16:3e:3e:a9:1a,192.168.122.11,b.example.com
+id:0:4:7e:7d:f0:7d:a8:bc:c5:d2:13:32:11:ed:16:ea:84:63,[2001:db8:ac10:fd01::1:20]
+paul,[2001:db8:ac10:fd01::1:21]
+id:0:3:0:1:0:16:3e:11:22:33,peter.xyz,[2001:db8:ac10:fd01::1:22]
+id:0:3:0:1:0:16:3e:44:55:33,[2001:db8:ac10:fd01::1:23]
+id:0:1:0:1:18:aa:62:fe:0:16:3e:44:55:66,badbob,[2001:db8:ac10:fd01::1:24]
diff --git a/tests/networkxml2confdata/leasetime-hours.conf b/tests/networkxml2confdata/leasetime-hours.conf
new file mode 100644 (file)
index 0000000..1599d46
--- /dev/null
@@ -0,0 +1,16 @@
+##WARNING:  THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
+##OVERWRITTEN AND LOST.  Changes to this configuration should be made using:
+##    virsh net-edit default
+## or other application using the libvirt API.
+##
+## dnsmasq conf file created by libvirt
+strict-order
+except-interface=lo
+bind-dynamic
+interface=virbr0
+dhcp-range=192.168.122.2,192.168.122.254,255.255.255.0,1h
+dhcp-no-override
+dhcp-authoritative
+dhcp-lease-max=253
+dhcp-hostsfile=/var/lib/libvirt/dnsmasq/default.hostsfile
+addn-hosts=/var/lib/libvirt/dnsmasq/default.addnhosts
diff --git a/tests/networkxml2confdata/leasetime-hours.hostsfile b/tests/networkxml2confdata/leasetime-hours.hostsfile
new file mode 100644 (file)
index 0000000..fb6bca4
--- /dev/null
@@ -0,0 +1,2 @@
+00:16:3e:77:e2:ed,192.168.122.10,a.example.com,2h
+00:16:3e:3e:a9:1a,192.168.122.11,b.example.com,3h
diff --git a/tests/networkxml2confdata/leasetime-hours.xml b/tests/networkxml2confdata/leasetime-hours.xml
new file mode 100644 (file)
index 0000000..5c8bec8
--- /dev/null
@@ -0,0 +1,21 @@
+<network>
+  <name>default</name>
+  <uuid>81ff0d90-c91e-6742-64da-4a736edb9a9b</uuid>
+  <forward dev='eth1' mode='nat'>
+    <interface dev='eth1'/>
+  </forward>
+  <bridge name='virbr0' stp='on' delay='0'/>
+  <ip address='192.168.122.1' netmask='255.255.255.0'>
+    <dhcp>
+      <range start='192.168.122.2' end='192.168.122.254'>
+        <lease expiry='1' unit='hours'/>
+      </range>
+      <host mac='00:16:3e:77:e2:ed' name='a.example.com' ip='192.168.122.10'>
+        <lease expiry='2' unit='hours'/>
+      </host>
+      <host mac='00:16:3e:3e:a9:1a' name='b.example.com' ip='192.168.122.11'>
+        <lease expiry='3' unit='hours'/>
+      </host>
+    </dhcp>
+  </ip>
+</network>
diff --git a/tests/networkxml2confdata/leasetime-infinite.conf b/tests/networkxml2confdata/leasetime-infinite.conf
new file mode 100644 (file)
index 0000000..883ced6
--- /dev/null
@@ -0,0 +1,16 @@
+##WARNING:  THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
+##OVERWRITTEN AND LOST.  Changes to this configuration should be made using:
+##    virsh net-edit default
+## or other application using the libvirt API.
+##
+## dnsmasq conf file created by libvirt
+strict-order
+except-interface=lo
+bind-dynamic
+interface=virbr0
+dhcp-range=192.168.122.2,192.168.122.254,255.255.255.0,infinite
+dhcp-no-override
+dhcp-authoritative
+dhcp-lease-max=253
+dhcp-hostsfile=/var/lib/libvirt/dnsmasq/default.hostsfile
+addn-hosts=/var/lib/libvirt/dnsmasq/default.addnhosts
diff --git a/tests/networkxml2confdata/leasetime-infinite.hostsfile b/tests/networkxml2confdata/leasetime-infinite.hostsfile
new file mode 100644 (file)
index 0000000..e92bdc6
--- /dev/null
@@ -0,0 +1,2 @@
+00:16:3e:77:e2:ed,192.168.122.10,a.example.com,infinite
+00:16:3e:3e:a9:1a,192.168.122.11,b.example.com,infinite
diff --git a/tests/networkxml2confdata/leasetime-infinite.xml b/tests/networkxml2confdata/leasetime-infinite.xml
new file mode 100644 (file)
index 0000000..a5a9e6c
--- /dev/null
@@ -0,0 +1,21 @@
+<network>
+  <name>default</name>
+  <uuid>81ff0d90-c91e-6742-64da-4a736edb9a9b</uuid>
+  <forward dev='eth1' mode='nat'>
+    <interface dev='eth1'/>
+  </forward>
+  <bridge name='virbr0' stp='on' delay='0'/>
+  <ip address='192.168.122.1' netmask='255.255.255.0'>
+    <dhcp>
+      <range start='192.168.122.2' end='192.168.122.254'>
+        <lease expiry='0'/>
+      </range>
+      <host mac='00:16:3e:77:e2:ed' name='a.example.com' ip='192.168.122.10'>
+        <lease expiry='0'/>
+      </host>
+      <host mac='00:16:3e:3e:a9:1a' name='b.example.com' ip='192.168.122.11'>
+        <lease expiry='0'/>
+      </host>
+    </dhcp>
+  </ip>
+</network>
diff --git a/tests/networkxml2confdata/leasetime-minutes.conf b/tests/networkxml2confdata/leasetime-minutes.conf
new file mode 100644 (file)
index 0000000..c093501
--- /dev/null
@@ -0,0 +1,16 @@
+##WARNING:  THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
+##OVERWRITTEN AND LOST.  Changes to this configuration should be made using:
+##    virsh net-edit default
+## or other application using the libvirt API.
+##
+## dnsmasq conf file created by libvirt
+strict-order
+except-interface=lo
+bind-dynamic
+interface=virbr0
+dhcp-range=192.168.122.2,192.168.122.254,255.255.255.0,10m
+dhcp-no-override
+dhcp-authoritative
+dhcp-lease-max=253
+dhcp-hostsfile=/var/lib/libvirt/dnsmasq/default.hostsfile
+addn-hosts=/var/lib/libvirt/dnsmasq/default.addnhosts
diff --git a/tests/networkxml2confdata/leasetime-minutes.hostsfile b/tests/networkxml2confdata/leasetime-minutes.hostsfile
new file mode 100644 (file)
index 0000000..787d82f
--- /dev/null
@@ -0,0 +1,2 @@
+00:16:3e:77:e2:ed,192.168.122.10,a.example.com,20m
+00:16:3e:3e:a9:1a,192.168.122.11,b.example.com,30m
diff --git a/tests/networkxml2confdata/leasetime-minutes.xml b/tests/networkxml2confdata/leasetime-minutes.xml
new file mode 100644 (file)
index 0000000..1cbc285
--- /dev/null
@@ -0,0 +1,21 @@
+<network>
+  <name>default</name>
+  <uuid>81ff0d90-c91e-6742-64da-4a736edb9a9b</uuid>
+  <forward dev='eth1' mode='nat'>
+    <interface dev='eth1'/>
+  </forward>
+  <bridge name='virbr0' stp='on' delay='0'/>
+  <ip address='192.168.122.1' netmask='255.255.255.0'>
+    <dhcp>
+      <range start='192.168.122.2' end='192.168.122.254'>
+        <lease expiry='10' unit='minutes'/>
+      </range>
+      <host mac='00:16:3e:77:e2:ed' name='a.example.com' ip='192.168.122.10'>
+        <lease expiry='20' unit='minutes'/>
+      </host>
+      <host mac='00:16:3e:3e:a9:1a' name='b.example.com' ip='192.168.122.11'>
+        <lease expiry='30' unit='minutes'/>
+      </host>
+    </dhcp>
+  </ip>
+</network>
diff --git a/tests/networkxml2confdata/leasetime-seconds.conf b/tests/networkxml2confdata/leasetime-seconds.conf
new file mode 100644 (file)
index 0000000..8b2a81c
--- /dev/null
@@ -0,0 +1,16 @@
+##WARNING:  THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
+##OVERWRITTEN AND LOST.  Changes to this configuration should be made using:
+##    virsh net-edit default
+## or other application using the libvirt API.
+##
+## dnsmasq conf file created by libvirt
+strict-order
+except-interface=lo
+bind-dynamic
+interface=virbr0
+dhcp-range=192.168.122.2,192.168.122.254,255.255.255.0,200s
+dhcp-no-override
+dhcp-authoritative
+dhcp-lease-max=253
+dhcp-hostsfile=/var/lib/libvirt/dnsmasq/default.hostsfile
+addn-hosts=/var/lib/libvirt/dnsmasq/default.addnhosts
diff --git a/tests/networkxml2confdata/leasetime-seconds.hostsfile b/tests/networkxml2confdata/leasetime-seconds.hostsfile
new file mode 100644 (file)
index 0000000..ce77f2d
--- /dev/null
@@ -0,0 +1,2 @@
+00:16:3e:77:e2:ed,192.168.122.10,a.example.com,300s
+00:16:3e:3e:a9:1a,192.168.122.11,b.example.com,400s
diff --git a/tests/networkxml2confdata/leasetime-seconds.xml b/tests/networkxml2confdata/leasetime-seconds.xml
new file mode 100644 (file)
index 0000000..9d8efc2
--- /dev/null
@@ -0,0 +1,21 @@
+<network>
+  <name>default</name>
+  <uuid>81ff0d90-c91e-6742-64da-4a736edb9a9b</uuid>
+  <forward dev='eth1' mode='nat'>
+    <interface dev='eth1'/>
+  </forward>
+  <bridge name='virbr0' stp='on' delay='0'/>
+  <ip address='192.168.122.1' netmask='255.255.255.0'>
+    <dhcp>
+      <range start='192.168.122.2' end='192.168.122.254'>
+        <lease expiry='200' unit='seconds'/>
+      </range>
+      <host mac='00:16:3e:77:e2:ed' name='a.example.com' ip='192.168.122.10'>
+        <lease expiry='300' unit='seconds'/>
+      </host>
+      <host mac='00:16:3e:3e:a9:1a' name='b.example.com' ip='192.168.122.11'>
+        <lease expiry='400' unit='seconds'/>
+      </host>
+    </dhcp>
+  </ip>
+</network>
diff --git a/tests/networkxml2confdata/nat-network-dns-srv-record-minimal.hostsfile b/tests/networkxml2confdata/nat-network-dns-srv-record-minimal.hostsfile
new file mode 100644 (file)
index 0000000..deb3f00
--- /dev/null
@@ -0,0 +1,2 @@
+00:16:3e:77:e2:ed,192.168.122.10,a.example.com
+00:16:3e:3e:a9:1a,192.168.122.11,b.example.com
diff --git a/tests/networkxml2confdata/nat-network-dns-srv-record.hostsfile b/tests/networkxml2confdata/nat-network-dns-srv-record.hostsfile
new file mode 100644 (file)
index 0000000..deb3f00
--- /dev/null
@@ -0,0 +1,2 @@
+00:16:3e:77:e2:ed,192.168.122.10,a.example.com
+00:16:3e:3e:a9:1a,192.168.122.11,b.example.com
diff --git a/tests/networkxml2confdata/nat-network-dns-txt-record.hostsfile b/tests/networkxml2confdata/nat-network-dns-txt-record.hostsfile
new file mode 100644 (file)
index 0000000..deb3f00
--- /dev/null
@@ -0,0 +1,2 @@
+00:16:3e:77:e2:ed,192.168.122.10,a.example.com
+00:16:3e:3e:a9:1a,192.168.122.11,b.example.com
diff --git a/tests/networkxml2confdata/nat-network-mtu.hostsfile b/tests/networkxml2confdata/nat-network-mtu.hostsfile
new file mode 100644 (file)
index 0000000..deb3f00
--- /dev/null
@@ -0,0 +1,2 @@
+00:16:3e:77:e2:ed,192.168.122.10,a.example.com
+00:16:3e:3e:a9:1a,192.168.122.11,b.example.com
diff --git a/tests/networkxml2confdata/nat-network-name-with-quotes.hostsfile b/tests/networkxml2confdata/nat-network-name-with-quotes.hostsfile
new file mode 100644 (file)
index 0000000..deb3f00
--- /dev/null
@@ -0,0 +1,2 @@
+00:16:3e:77:e2:ed,192.168.122.10,a.example.com
+00:16:3e:3e:a9:1a,192.168.122.11,b.example.com
diff --git a/tests/networkxml2confdata/nat-network.hostsfile b/tests/networkxml2confdata/nat-network.hostsfile
new file mode 100644 (file)
index 0000000..deb3f00
--- /dev/null
@@ -0,0 +1,2 @@
+00:16:3e:77:e2:ed,192.168.122.10,a.example.com
+00:16:3e:3e:a9:1a,192.168.122.11,b.example.com
diff --git a/tests/networkxml2confdata/ptr-domains-auto.hostsfile b/tests/networkxml2confdata/ptr-domains-auto.hostsfile
new file mode 100644 (file)
index 0000000..deb3f00
--- /dev/null
@@ -0,0 +1,2 @@
+00:16:3e:77:e2:ed,192.168.122.10,a.example.com
+00:16:3e:3e:a9:1a,192.168.122.11,b.example.com
index 83b89dd361acab38f01cfebb1777802a42afb0f0..5d0bba79240e042eb4fab9ada2dbcdccb2ce4564 100644 (file)
@@ -16,7 +16,8 @@
 #define VIR_FROM_THIS VIR_FROM_NONE
 
 static int
-testCompareXMLToConfFiles(const char *inxml, const char *outconf, dnsmasqCapsPtr caps)
+testCompareXMLToConfFiles(const char *inxml, const char *outconf,
+                          char *outhostsfile, dnsmasqCapsPtr caps)
 {
     char *confactual = NULL;
     char *hostsfileactual = NULL;
@@ -63,6 +64,20 @@ testCompareXMLToConfFiles(const char *inxml, const char *outconf, dnsmasqCapsPtr
     if (virTestCompareToFile(confactual, outconf) < 0)
         goto fail;
 
+    if (virFileExists(outhostsfile)) {
+        if (!hostsfileactual) {
+            VIR_TEST_DEBUG("%s: hostsfile exists but the configuration did "
+                           "not specify any host", outhostsfile);
+            goto fail;
+        } else if (virTestCompareToFile(hostsfileactual, outhostsfile) < 0) {
+            goto fail;
+        }
+    } else if (hostsfileactual) {
+        VIR_TEST_DEBUG("%s: file does not exist but actual data was expected",
+                       outhostsfile);
+        goto fail;
+    }
+
     ret = 0;
 
  fail:
@@ -88,14 +103,17 @@ testCompareXMLToConfHelper(const void *data)
     const testInfo *info = data;
     char *inxml = NULL;
     char *outconf = NULL;
+    char *outhostsfile = NULL;
 
     inxml = g_strdup_printf("%s/networkxml2confdata/%s.xml", abs_srcdir, info->name);
     outconf = g_strdup_printf("%s/networkxml2confdata/%s.conf", abs_srcdir, info->name);
+    outhostsfile = g_strdup_printf("%s/networkxml2confdata/%s.hostsfile", abs_srcdir, info->name);
 
-    result = testCompareXMLToConfFiles(inxml, outconf, info->caps);
+    result = testCompareXMLToConfFiles(inxml, outconf, outhostsfile, info->caps);
 
     VIR_FREE(inxml);
     VIR_FREE(outconf);
+    VIR_FREE(outhostsfile);
 
     return result;
 }
@@ -145,6 +163,10 @@ mymain(void)
     DO_TEST("dhcp6host-routed-network", dhcpv6);
     DO_TEST("ptr-domains-auto", dhcpv6);
     DO_TEST("dnsmasq-options", dhcpv6);
+    DO_TEST("leasetime-seconds", full);
+    DO_TEST("leasetime-minutes", full);
+    DO_TEST("leasetime-hours", full);
+    DO_TEST("leasetime-infinite", full);
 
     virObjectUnref(dhcpv6);
     virObjectUnref(full);
diff --git a/tests/networkxml2xmlin/leasetime-hours.xml b/tests/networkxml2xmlin/leasetime-hours.xml
new file mode 120000 (symlink)
index 0000000..5a6bed3
--- /dev/null
@@ -0,0 +1 @@
+../networkxml2confdata/leasetime-hours.xml
\ No newline at end of file
diff --git a/tests/networkxml2xmlin/leasetime-infinite.xml b/tests/networkxml2xmlin/leasetime-infinite.xml
new file mode 120000 (symlink)
index 0000000..706e4cd
--- /dev/null
@@ -0,0 +1 @@
+../networkxml2confdata/leasetime-infinite.xml
\ No newline at end of file
diff --git a/tests/networkxml2xmlin/leasetime-minutes.xml b/tests/networkxml2xmlin/leasetime-minutes.xml
new file mode 120000 (symlink)
index 0000000..2c19b06
--- /dev/null
@@ -0,0 +1 @@
+../networkxml2confdata/leasetime-minutes.xml
\ No newline at end of file
diff --git a/tests/networkxml2xmlin/leasetime-seconds.xml b/tests/networkxml2xmlin/leasetime-seconds.xml
new file mode 120000 (symlink)
index 0000000..f182cfa
--- /dev/null
@@ -0,0 +1 @@
+../networkxml2confdata/leasetime-seconds.xml
\ No newline at end of file
diff --git a/tests/networkxml2xmlout/leasetime-hours.xml b/tests/networkxml2xmlout/leasetime-hours.xml
new file mode 120000 (symlink)
index 0000000..d3cf0fb
--- /dev/null
@@ -0,0 +1 @@
+../networkxml2xmlin/leasetime-hours.xml
\ No newline at end of file
diff --git a/tests/networkxml2xmlout/leasetime-infinite.xml b/tests/networkxml2xmlout/leasetime-infinite.xml
new file mode 120000 (symlink)
index 0000000..2390f7a
--- /dev/null
@@ -0,0 +1 @@
+../networkxml2xmlin/leasetime-infinite.xml
\ No newline at end of file
diff --git a/tests/networkxml2xmlout/leasetime-minutes.xml b/tests/networkxml2xmlout/leasetime-minutes.xml
new file mode 120000 (symlink)
index 0000000..09ebdb9
--- /dev/null
@@ -0,0 +1 @@
+../networkxml2xmlin/leasetime-minutes.xml
\ No newline at end of file
diff --git a/tests/networkxml2xmlout/leasetime-seconds.xml b/tests/networkxml2xmlout/leasetime-seconds.xml
new file mode 120000 (symlink)
index 0000000..7036ca6
--- /dev/null
@@ -0,0 +1 @@
+../networkxml2xmlin/leasetime-seconds.xml
\ No newline at end of file
index ec679e72ee552ca15788b369e82874d9d87d6c36..700744785a74d85fea91f7831ccef4cf0bb70c89 100644 (file)
@@ -160,6 +160,10 @@ mymain(void)
     DO_TEST("metadata");
     DO_TEST("set-mtu");
     DO_TEST("dnsmasq-options");
+    DO_TEST("leasetime-seconds");
+    DO_TEST("leasetime-minutes");
+    DO_TEST("leasetime-hours");
+    DO_TEST("leasetime-infinite");
     DO_TEST("isolated-ports");
 
     return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;