From 0786edf8a3802a73291a1dc938b29a4067467801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 3 Dec 2017 03:22:28 +0100 Subject: [PATCH] tests: add IPv6-related unit tests Check produced libvirt XML, and QubesDB entries QubesOS/qubes-issues#718 --- qubes/tests/vm/qubesvm.py | 93 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 91 insertions(+), 2 deletions(-) diff --git a/qubes/tests/vm/qubesvm.py b/qubes/tests/vm/qubesvm.py index 3288a507..524c9222 100644 --- a/qubes/tests/vm/qubesvm.py +++ b/qubes/tests/vm/qubesvm.py @@ -714,6 +714,77 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase): self.assertXMLEqual(lxml.etree.XML(libvirt_xml), lxml.etree.XML(expected)) + def test_610_libvirt_xml_network(self): + expected = ''' + test-inst-test + 7db78950-c467-4863-94d1-af59806384ea + 500 + 400 + 2 + + + + + + + + + hvm + + hvmloader + + + + root=/dev/mapper/dmroot ro nomodeset console=hvc0 rd_NO_PLYMOUTH rd.plymouth.enable=0 plymouth.enable=0 nopat + + + + + + + + + destroy + destroy + destroy + + + + + {extra_ip} + +