[PATCH v3 0/2] Add tests for network update XML parsing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



v1: https://www.redhat.com/archives/libvir-list/2013-July/msg01971.html
v2: https://www.redhat.com/archives/libvir-list/2013-August/msg00035.html
remove the spaces from other elements instead of adding one
v3:
rebase because of 4f595ba adding forwardPlainNames

Ján Tomko (2):
  Remove the space before the slash in network XML
  Test network update XML parsing

 src/conf/network_conf.c                            |  26 +-
 src/conf/network_conf.h                            |   9 +
 src/libvirt_private.syms                           |   1 +
 src/network/default.xml                            |   4 +-
 src/test/test_driver.c                             |   4 +-
 tests/Makefile.am                                  |   9 +-
 tests/networkxml2confdata/dhcp6-nat-network.xml    |  20 +-
 tests/networkxml2confdata/dhcp6-network.xml        |  14 +-
 .../dhcp6host-routed-network.xml                   |  16 +-
 tests/networkxml2confdata/isolated-network.xml     |   4 +-
 .../networkxml2confdata/nat-network-dns-hosts.xml  |   2 +-
 .../nat-network-dns-srv-record-minimal.xml         |  10 +-
 .../nat-network-dns-srv-record.xml                 |  10 +-
 .../nat-network-dns-txt-record.xml                 |  10 +-
 tests/networkxml2confdata/nat-network.xml          |   8 +-
 tests/networkxml2confdata/netboot-network.xml      |   8 +-
 .../networkxml2confdata/netboot-proxy-network.xml  |   6 +-
 tests/networkxml2confdata/routed-network.xml       |   2 +-
 tests/networkxml2xmlin/bandwidth-network.xml       |   4 +-
 .../networkxml2xmlin/dhcp6host-routed-network.xml  |  16 +-
 tests/networkxml2xmlin/empty-allow-ipv6.xml        |   2 +-
 tests/networkxml2xmlin/isolated-network.xml        |   4 +-
 tests/networkxml2xmlin/nat-network-dns-hosts.xml   |   2 +-
 .../nat-network-dns-srv-record-minimal.xml         |  10 +-
 .../nat-network-dns-srv-record.xml                 |  10 +-
 .../nat-network-dns-srv-records.xml                |  27 ++
 .../nat-network-dns-txt-record.xml                 |  10 +-
 tests/networkxml2xmlin/nat-network.xml             |   8 +-
 tests/networkxml2xmlin/netboot-network.xml         |   6 +-
 tests/networkxml2xmlin/netboot-proxy-network.xml   |   4 +-
 tests/networkxml2xmlin/routed-network.xml          |   2 +-
 tests/networkxml2xmlout/bandwidth-network.xml      |   4 +-
 .../networkxml2xmlout/dhcp6host-routed-network.xml |  16 +-
 tests/networkxml2xmlout/empty-allow-ipv6.xml       |   2 +-
 tests/networkxml2xmlout/host-bridge-net.xml        |   2 +-
 tests/networkxml2xmlout/isolated-network.xml       |   4 +-
 .../nat-network-dns-forward-plain.xml              |   2 +-
 tests/networkxml2xmlout/nat-network-dns-hosts.xml  |   2 +-
 .../nat-network-dns-srv-record-minimal.xml         |  10 +-
 .../nat-network-dns-srv-record.xml                 |  10 +-
 .../nat-network-dns-srv-records.xml                |  27 ++
 .../nat-network-dns-txt-record.xml                 |  10 +-
 tests/networkxml2xmlout/nat-network.xml            |   8 +-
 tests/networkxml2xmlout/netboot-network.xml        |   8 +-
 tests/networkxml2xmlout/netboot-proxy-network.xml  |   6 +-
 tests/networkxml2xmlout/routed-network.xml         |   2 +-
 tests/networkxml2xmltest.c                         |   3 +
 .../networkxml2xmlupdatein/dhcp-range-existing.xml |   1 +
 tests/networkxml2xmlupdatein/dhcp-range.xml        |   1 +
 .../dns-host-gateway-incomplete.xml                |   3 +
 tests/networkxml2xmlupdatein/dns-host-pudding.xml  |   3 +
 .../dns-txt-record-example.xml                     |   1 +
 .../dns-txt-record-snowman.xml                     |   1 +
 tests/networkxml2xmlupdatein/host-existing.xml     |   1 +
 tests/networkxml2xmlupdatein/host-incomplete.xml   |   1 +
 .../networkxml2xmlupdatein/host-new-incomplete.xml |   1 +
 tests/networkxml2xmlupdatein/host-new.xml          |   1 +
 tests/networkxml2xmlupdatein/host-updated.xml      |   1 +
 tests/networkxml2xmlupdatein/interface-eth1.xml    |   1 +
 tests/networkxml2xmlupdatein/interface-eth47.xml   |   1 +
 .../networkxml2xmlupdatein/portgroup-alice-new.xml |  10 +
 tests/networkxml2xmlupdatein/portgroup-alison.xml  |  11 +
 tests/networkxml2xmlupdatein/srv-record-donkey.xml |   1 +
 .../networkxml2xmlupdatein/srv-record-invalid.xml  |   1 +
 .../networkxml2xmlupdatein/srv-record-protocol.xml |   1 +
 .../networkxml2xmlupdatein/srv-record-service.xml  |   1 +
 tests/networkxml2xmlupdatein/srv-record.xml        |   1 +
 .../networkxml2xmlupdatein/unparsable-dns-host.xml |   1 +
 .../dhcp6host-routed-network-another-range.xml     |  27 ++
 .../dhcp6host-routed-network-range.xml             |  27 ++
 .../nat-network-dns-more-hosts.xml                 |  19 ++
 .../nat-network-dns-srv-record.xml                 |  26 ++
 .../nat-network-dns-srv-records.xml                |  27 ++
 .../nat-network-dns-txt-none.xml                   |  23 ++
 .../nat-network-dns-txt-records.xml                |  27 ++
 .../nat-network-forward-ifaces.xml                 |  27 ++
 .../nat-network-host-updated.xml                   |  23 ++
 .../networkxml2xmlupdateout/nat-network-hosts.xml  |  24 ++
 .../nat-network-no-forward-ifaces.xml              |  24 ++
 .../nat-network-no-hosts.xml                       |  10 +
 .../nat-network-no-range.xml                       |  22 ++
 .../nat-network-one-host.xml                       |  22 ++
 tests/networkxml2xmlupdateout/nat-network.xml      |  23 ++
 .../openvswitch-net-modified.xml                   |  33 ++
 .../openvswitch-net-more-portgroups.xml            |  44 +++
 .../openvswitch-net-without-alice.xml              |  23 ++
 tests/networkxml2xmlupdatetest.c                   | 372 +++++++++++++++++++++
 87 files changed, 1096 insertions(+), 155 deletions(-)
 create mode 100644 tests/networkxml2xmlin/nat-network-dns-srv-records.xml
 create mode 100644 tests/networkxml2xmlout/nat-network-dns-srv-records.xml
 create mode 100644 tests/networkxml2xmlupdatein/dhcp-range-existing.xml
 create mode 100644 tests/networkxml2xmlupdatein/dhcp-range.xml
 create mode 100644 tests/networkxml2xmlupdatein/dns-host-gateway-incomplete.xml
 create mode 100644 tests/networkxml2xmlupdatein/dns-host-pudding.xml
 create mode 100644 tests/networkxml2xmlupdatein/dns-txt-record-example.xml
 create mode 100644 tests/networkxml2xmlupdatein/dns-txt-record-snowman.xml
 create mode 100644 tests/networkxml2xmlupdatein/host-existing.xml
 create mode 100644 tests/networkxml2xmlupdatein/host-incomplete.xml
 create mode 100644 tests/networkxml2xmlupdatein/host-new-incomplete.xml
 create mode 100644 tests/networkxml2xmlupdatein/host-new.xml
 create mode 100644 tests/networkxml2xmlupdatein/host-updated.xml
 create mode 100644 tests/networkxml2xmlupdatein/interface-eth1.xml
 create mode 100644 tests/networkxml2xmlupdatein/interface-eth47.xml
 create mode 100644 tests/networkxml2xmlupdatein/portgroup-alice-new.xml
 create mode 100644 tests/networkxml2xmlupdatein/portgroup-alison.xml
 create mode 100644 tests/networkxml2xmlupdatein/srv-record-donkey.xml
 create mode 100644 tests/networkxml2xmlupdatein/srv-record-invalid.xml
 create mode 100644 tests/networkxml2xmlupdatein/srv-record-protocol.xml
 create mode 100644 tests/networkxml2xmlupdatein/srv-record-service.xml
 create mode 100644 tests/networkxml2xmlupdatein/srv-record.xml
 create mode 100644 tests/networkxml2xmlupdatein/unparsable-dns-host.xml
 create mode 100644 tests/networkxml2xmlupdateout/dhcp6host-routed-network-another-range.xml
 create mode 100644 tests/networkxml2xmlupdateout/dhcp6host-routed-network-range.xml
 create mode 100644 tests/networkxml2xmlupdateout/nat-network-dns-more-hosts.xml
 create mode 100644 tests/networkxml2xmlupdateout/nat-network-dns-srv-record.xml
 create mode 100644 tests/networkxml2xmlupdateout/nat-network-dns-srv-records.xml
 create mode 100644 tests/networkxml2xmlupdateout/nat-network-dns-txt-none.xml
 create mode 100644 tests/networkxml2xmlupdateout/nat-network-dns-txt-records.xml
 create mode 100644 tests/networkxml2xmlupdateout/nat-network-forward-ifaces.xml
 create mode 100644 tests/networkxml2xmlupdateout/nat-network-host-updated.xml
 create mode 100644 tests/networkxml2xmlupdateout/nat-network-hosts.xml
 create mode 100644 tests/networkxml2xmlupdateout/nat-network-no-forward-ifaces.xml
 create mode 100644 tests/networkxml2xmlupdateout/nat-network-no-hosts.xml
 create mode 100644 tests/networkxml2xmlupdateout/nat-network-no-range.xml
 create mode 100644 tests/networkxml2xmlupdateout/nat-network-one-host.xml
 create mode 100644 tests/networkxml2xmlupdateout/nat-network.xml
 create mode 100644 tests/networkxml2xmlupdateout/openvswitch-net-modified.xml
 create mode 100644 tests/networkxml2xmlupdateout/openvswitch-net-more-portgroups.xml
 create mode 100644 tests/networkxml2xmlupdateout/openvswitch-net-without-alice.xml
 create mode 100644 tests/networkxml2xmlupdatetest.c

-- 
1.8.1.5

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]