summaryrefslogtreecommitdiff
path: root/tests/genericxml2xmloutdata
Commit message (Collapse)AuthorAgeFilesLines
* genericxml2xmltest: Modify cachetune test to include idKristina Hanicova2021-07-201-34/+0
| | | | | | | | | | | I changed DO_TEST_DIFFERENT to DO_TEST, which allows us to remove the duplicate out file. I also added id attribute for domain element in order to parse it as a live XML ('cachetune id' is in the output of only live XMLs). Lastly I added id of cachetune to test its output value. Signed-off-by: Kristina Hanicova <khanicov@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
* schema: add support for Windows file paths and device namesMatt Coleman2020-11-242-0/+46
| | | | | Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Matt Coleman <matt@datto.com>
* tests: cover disk, interface <backenddomain>Cole Robinson2020-10-051-0/+1
| | | | | | | | There is present no XML test coverage for this. Add genericxml parse + formatting coverage. Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Cole Robinson <crobinso@redhat.com>
* tests: fix typo in emulator arch name i686 -> i386Daniel P. Berrangé2019-12-131-1/+1
| | | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* conf: create memory bandwidth monitor.Huaqiang2019-12-131-0/+42
| | | | | | | | | | | | | | | | | | | | | | | Following domain configuration changes create two memory bandwidth monitors: one is monitoring the bandwidth consumed by vCPU 0, another is for vCPU 5. ``` <cputune> <memorytune vcpus='0-4'> <node id='0' bandwidth='20'/> <node id='1' bandwidth='30'/> + <monitor vcpus='0'/> </memorytune> + <memorytune vcpus='5'> + <monitor vcpus='5'/> + </memorytune> </cputune> ``` Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Huaqiang <huaqiang.wang@intel.com>
* cachetune schema: a looser check for the order of <cache> and <monitor> elementHuaqiang2019-12-131-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Originally, inside <cputune/cachetune>, it requires the <cache> element to be in the position before <monitor>, and following configuration is not permitted by schema, but it is better to let it be valid. <cputune> <cachetune vcpus='0-1'> <monitor level='3' vcpus='0-1'/> ^ |__ Not permitted originally because it is in the place before <cache> element. <cache id='0' level='3' type='both' size='3' unit='MiB'/> <cache id='1' level='3' type='both' size='3' unit='MiB'/> </cachetune> ... </cputune> And, let schema do more strict check by identifying following configuration to be invalid, due to <cachetune> should contain at least one <cache> or <monitor> element. <cputune> <cachetune vcpus='0-1'> ^ |__ a <cachetune> SHOULD contain at least one <cache> or <monitor> </cachetune> ... </cputune> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Huaqiang <huaqiang.wang@intel.com>
* tests: fix name of 32-bit x86 QEMU binaryDaniel P. Berrangé2019-12-0316-16/+16
| | | | | | | | | | The 32-bit x86 binary is called qemu-system-i386, not qemu-system-i686. This mistake across many test XML files was not noticed because the mistake was also made in testutilsqemu.c when mocking the capabilities. Reviewed-by: Erik Skultety <eskultet@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* conf: Add support for emulatorschedMartin Kletzander2019-04-161-0/+40
| | | | | Signed-off-by: Martin Kletzander <mkletzan@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
* tests: Add test for properly removing cachetune entriesMartin Kletzander2018-02-021-0/+30
| | | | | | | Cachetune for unavailable vCPUs should be cleared the same way vcpupin and other things do, so let's add tests for it. Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
* test: Drop useless prefix for genericxml2xml test dataMichal Privoznik2017-12-0515-0/+0
| | | | | | | | There's no reason for the files to have generic- prefix since they all live under genericxml2xmlindata and genericxml2xmloutdata directories. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
* conf: fix formatting of udp chardev attributesJán Tomko2017-09-261-1/+1
| | | | | | | | | | | | It is possible (although possibly not very useful) to leave out the service attribute when using <source mode='bind'/> Fix the formatter bug introduced by commit 4a0da34 and format the host when its present (checked for non-NULL inside virBufferEscapeString) instead of basing it on the presence of the service attribute. https://bugzilla.redhat.com/show_bug.cgi?id=1455825
* tests: add generic xml chardev source reconnect testsPavel Hrdina2017-08-291-0/+33
| | | | Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* tests: introduce genericxml test for UNIX chardevPavel Hrdina2017-08-221-0/+44
| | | | Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* tests: introduce genericxml test for UDP chardevPavel Hrdina2017-08-221-0/+47
| | | | Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* tests: introduce genericxml test for TCP chardevPavel Hrdina2017-08-221-0/+35
| | | | Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* tests: unify qemu binary paths for all qemu related testsPavel Hrdina2017-04-1111-11/+11
| | | | | | | | | | Our test data used a lot of different qemu binary paths and some of them were based on downstream systems. Note that there is one file where I had to add "accel=kvm" because the qemuargv2xml code parses "/usr/bin/kvm" as virt type="kvm". Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* vnc: add support for listen type 'socket'Pavel Hrdina2016-06-094-2/+66
| | | | | | | | | | | | | | | | VNC graphics already supports sockets but only via 'socket' attribute. This patch coverts that attribute into listen type 'socket'. For backward compatibility we need to handle listen type 'socket' and 'socket' attribute properly to support old XMLs and new XMLs. If both are provided they have to match, if only one of them is provided we need to be able to parse that configuration too. To not break migration back to old libvirt if the socket is provided by user we need to generate migratable XML without the listen element and use only 'socket' attribute. Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* graphics: make address attribute for listen type='address' optionalPavel Hrdina2016-05-172-2/+6
| | | | | | | | | We support omitting listen attribute of graphics element so we should also support omitting address attribute of listen element. This patch also updates libvirt to always add a listen element into domain XML except for VNC graphics if socket attribute is specified. Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* graphics: don't parse listens if socket attribute is presentPavel Hrdina2016-05-171-3/+1
| | | | | | | | If socket attribute is present we start VNC that listens only on that unix socket. This makes the parser behave the same way as we actually use the socket attribute. Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* genericxml2xml: add several graphics testsPavel Hrdina2016-05-067-0/+204
| | | | Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
* test: genericxml2xml: test graphics listen= compatCole Robinson2016-04-141-0/+30
| | | | | | | | * Add a test for listen=XXX and <listen address=YYY/> collision error * Add an explicit test for listen=XXX duplicated to <listen address=XXX/> We implicitly test it elsewhere but I figure it's better to be explicit, and this test case can be extended in the future for additional listen back compat if/when we support <listen type='socket'/> syntax
* tests: add genericxml2xmltestCole Robinson2016-01-081-0/+45
For testing hypervisor independent XML handling. Right now it's just populated with an example test case.