On 4/22/20 10:05 PM, Julio Faracco wrote:
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(a)gmail.com>
---
.../dhcp6-nat-network.hostsfile | 7 +++++
.../dhcp6-network.hostsfile | 5 ++++
.../dhcp6host-routed-network.hostsfile | 7 +++++
.../networkxml2confdata/leasetime-hours.conf | 16 +++++++++++
.../leasetime-hours.hostsfile | 2 ++
tests/networkxml2confdata/leasetime-hours.xml | 19 +++++++++++++
.../leasetime-infinite.conf | 16 +++++++++++
.../leasetime-infinite.hostsfile | 2 ++
.../leasetime-infinite.xml | 19 +++++++++++++
.../leasetime-minutes.conf | 16 +++++++++++
.../leasetime-minutes.hostsfile | 2 ++
.../networkxml2confdata/leasetime-minutes.xml | 19 +++++++++++++
.../leasetime-seconds.conf | 16 +++++++++++
.../leasetime-seconds.hostsfile | 2 ++
.../networkxml2confdata/leasetime-seconds.xml | 19 +++++++++++++
...t-network-dns-srv-record-minimal.hostsfile | 2 ++
.../nat-network-dns-srv-record.hostsfile | 2 ++
.../nat-network-dns-txt-record.hostsfile | 2 ++
.../nat-network-mtu.hostsfile | 2 ++
.../nat-network-name-with-quotes.hostsfile | 2 ++
.../networkxml2confdata/nat-network.hostsfile | 2 ++
.../ptr-domains-auto.hostsfile | 2 ++
tests/networkxml2conftest.c | 27 +++++++++++++++++--
tests/networkxml2xmlin/leasetime-hours.xml | 19 +++++++++++++
tests/networkxml2xmlin/leasetime-infinite.xml | 19 +++++++++++++
tests/networkxml2xmlin/leasetime-minutes.xml | 19 +++++++++++++
tests/networkxml2xmlin/leasetime-seconds.xml | 19 +++++++++++++
tests/networkxml2xmlout/leasetime-hours.xml | 21 +++++++++++++++
.../networkxml2xmlout/leasetime-infinite.xml | 21 +++++++++++++++
tests/networkxml2xmlout/leasetime-minutes.xml | 21 +++++++++++++++
tests/networkxml2xmlout/leasetime-seconds.xml | 21 +++++++++++++++
tests/networkxml2xmltest.c | 4 +++
32 files changed, 370 insertions(+), 2 deletions(-)
create mode 100644 tests/networkxml2confdata/dhcp6-nat-network.hostsfile
create mode 100644 tests/networkxml2confdata/dhcp6-network.hostsfile
create mode 100644 tests/networkxml2confdata/dhcp6host-routed-network.hostsfile
create mode 100644 tests/networkxml2confdata/leasetime-hours.conf
create mode 100644 tests/networkxml2confdata/leasetime-hours.hostsfile
create mode 100644 tests/networkxml2confdata/leasetime-hours.xml
create mode 100644 tests/networkxml2confdata/leasetime-infinite.conf
create mode 100644 tests/networkxml2confdata/leasetime-infinite.hostsfile
create mode 100644 tests/networkxml2confdata/leasetime-infinite.xml
create mode 100644 tests/networkxml2confdata/leasetime-minutes.conf
create mode 100644 tests/networkxml2confdata/leasetime-minutes.hostsfile
create mode 100644 tests/networkxml2confdata/leasetime-minutes.xml
create mode 100644 tests/networkxml2confdata/leasetime-seconds.conf
create mode 100644 tests/networkxml2confdata/leasetime-seconds.hostsfile
create mode 100644 tests/networkxml2confdata/leasetime-seconds.xml
create mode 100644
tests/networkxml2confdata/nat-network-dns-srv-record-minimal.hostsfile
create mode 100644 tests/networkxml2confdata/nat-network-dns-srv-record.hostsfile
create mode 100644 tests/networkxml2confdata/nat-network-dns-txt-record.hostsfile
create mode 100644 tests/networkxml2confdata/nat-network-mtu.hostsfile
create mode 100644 tests/networkxml2confdata/nat-network-name-with-quotes.hostsfile
create mode 100644 tests/networkxml2confdata/nat-network.hostsfile
create mode 100644 tests/networkxml2confdata/ptr-domains-auto.hostsfile
create mode 100644 tests/networkxml2xmlin/leasetime-hours.xml
create mode 100644 tests/networkxml2xmlin/leasetime-infinite.xml
create mode 100644 tests/networkxml2xmlin/leasetime-minutes.xml
create mode 100644 tests/networkxml2xmlin/leasetime-seconds.xml
create mode 100644 tests/networkxml2xmlout/leasetime-hours.xml
create mode 100644 tests/networkxml2xmlout/leasetime-infinite.xml
create mode 100644 tests/networkxml2xmlout/leasetime-minutes.xml
create mode 100644 tests/networkxml2xmlout/leasetime-seconds.xml
I've turned some of these files into symlinks since they are the same.
Michal