summaryrefslogtreecommitdiff
path: root/tests/test_capabilities.py
Commit message (Collapse)AuthorAgeFilesLines
* tests: Add domcaps coverage for usb-redir/spicevmc channel checksLin Ma2022-12-141-0/+2
| | | | Signed-off-by: Lin Ma <lma@suse.com>
* domain: launch_security: simplify defaults and validationCole Robinson2022-02-281-0/+4
| | | | | | | | | | | * libvirt fills in cbitpos and reducedPhysBits for us * libvirt errors if type is missing * libvirt errors if host/qemu doesn't support sev So drop it all. This simplifies testing because we don't need sev domcaps in place just to generate the XML Signed-off-by: Cole Robinson <crobinso@redhat.com>
* tests: more capabilities data cleanupCole Robinson2022-02-161-8/+6
| | | | | | | | * Merge kvm-x86_64-domcaps{-q35} variants * Add -oldfirmware for explicitly testing secboot fallback setup * Use consistent kvm-x86_64-domcaps-* prefix Signed-off-by: Cole Robinson <crobinso@redhat.com>
* capabilities: Remove some XML parsing we don't useCole Robinson2022-02-161-15/+1
| | | | | | | These have been used in the past, but no current code touches them, so drop the parsing infrastructure Signed-off-by: Cole Robinson <crobinso@redhat.com>
* details: Add os.firmware=efi in the firmware selector UICole Robinson2022-01-261-1/+1
| | | | | | | | Let users choose libvirt's os.firmware=efi setting in the UI, putting it about the firmware path list, since it's the preferred default these days. Signed-off-by: Cole Robinson <crobinso@redhat.com>
* tests: Add domcaps coverage for filesystem checksCole Robinson2022-01-251-0/+6
| | | | Signed-off-by: Cole Robinson <crobinso@redhat.com>
* tests: update x86 capabilities dataCole Robinson2022-01-251-2/+2
| | | | | | Using qemu 6.1.0 and libvirt 7.6.0 on Fedora 35 Signed-off-by: Cole Robinson <crobinso@redhat.com>
* domcaps: Fix error if enum not foundCole Robinson2020-09-281-0/+1
| | | | | | | | | | | https://bugzilla.redhat.com/show_bug.cgi?id=1883008 In the example above this is because the VM XML has an invalid machine type, so domcaps fetching entirely fails, and a get_enum() call then fails. But this could happen if using virt-manager against an older libvirt that doesn't advertise the enum Signed-off-by: Cole Robinson <crobinso@redhat.com>
* tests: Drop most unittest usage from virtinst testsCole Robinson2020-09-191-91/+95
| | | | | | | Kill usage of the TestCase class, move more to pytest standard style Signed-off-by: Cole Robinson <crobinso@redhat.com>
* tests: Convert to use pytest style 'assert'Cole Robinson2020-09-191-24/+22
| | | | Signed-off-by: Cole Robinson <crobinso@redhat.com>
* tests: capabilities: Fix coverage after string changesCole Robinson2020-09-171-1/+5
| | | | Signed-off-by: Cole Robinson <crobinso@redhat.com>
* createvm: Fix checking for empty KVM capsCole Robinson2020-08-301-1/+1
| | | | | | | This code path was never hit because it came after caps.guest_lookup which errors in this case. We need to check things earlier Signed-off-by: Cole Robinson <crobinso@redhat.com>
* tests: Add *DIR helper variablesCole Robinson2020-08-301-1/+1
| | | | Signed-off-by: Cole Robinson <crobinso@redhat.com>
* virtinst: cpu: Move topology elements to their own classCole Robinson2020-08-271-3/+3
| | | | | | This is a no-op but will help with a future bug fix Signed-off-by: Cole Robinson <crobinso@redhat.com>
* domaincapabilities: Finish test coverageCole Robinson2020-01-271-0/+14
| | | | Signed-off-by: Cole Robinson <crobinso@redhat.com>
* tests: Rename all test files to have test_ prefixCole Robinson2020-01-271-0/+93
This will help for a possible future conversion to pytest Signed-off-by: Cole Robinson <crobinso@redhat.com>