libvirt/tests
Michal Privoznik a36318be9d conf: Reject invalid device's <seclabel relabel='yes'/> with no <label/>
We allow (some) domain devices to have a different <seclabel/>
than the top level domain one (this is mostly to allow access to
a resource for multiple domains). Now, we do couple of sanity
checks for such <seclabel/>, e.g. when the <label/> is specified,
but '@relabel' is set to no. But what we are missing is the
opposite: when '@relabel' is set, but no <label/> was provided.

Our schema already denies such combination. Make our parser
behave the same.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2160356
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2023-06-01 13:53:09 +02:00
..
bhyveargv2xmldata
bhyvefirmwaredata
bhyvexml2argvdata
bhyvexml2xmloutdata
capabilityschemadata tests: add better QEMU capabilities example 2022-09-21 12:02:40 +01:00
chxml2xmlin test: Introduce chxml2xmltest 2023-02-14 13:59:45 +01:00
chxml2xmlout test: Introduce chxml2xmltest 2023-02-14 13:59:45 +01:00
commanddata commandtest: Test virCommandSetSendBuffer() with virCommandDoAsyncIO() 2022-12-01 14:22:39 +01:00
cputestdata cpu_map: Add missing feature "flush-l1d" 2023-05-26 08:43:06 +02:00
domainbackupxml2xmlin schemas: backup: Allow missing 'type' attribute for backup disk 2023-05-16 10:26:33 +02:00
domainbackupxml2xmlout schemas: backup: Allow missing 'type' attribute for backup disk 2023-05-16 10:26:33 +02:00
domaincapsdata cpu_map: Add SapphireRapids CPU model 2023-05-24 12:48:09 +02:00
domainconfdata
domainschemadata tests: qemu: Move testing of default cache and disk source with space to 'sata-device' 2023-03-06 20:55:49 +01:00
fchostdata/fc_host
genericxml2xmlindata conf: Add support for specifying CPU max physical address size 2022-08-04 09:04:07 +02:00
genericxml2xmloutdata
interfaceschemadata
libxlxml2domconfigdata libxl: Support specifying a custom firmware path 2023-03-10 11:01:42 -07:00
lxcconf2xmldata
lxcxml2xmldata
lxcxml2xmloutdata
networkxml2confdata
networkxml2firewalldata
networkxml2xmlin
networkxml2xmlout
networkxml2xmlupdatein
networkxml2xmlupdateout
nodedevmdevctldata
nodedevschemadata virNodeDeviceCapPCIDefFormat: Use %u for unsigned values 2022-11-01 13:07:20 +01:00
nodedevxml2xmlout nodedevschematest: Add example file for a HBA with 'vport_ops' capability 2022-09-01 13:11:09 +02:00
nssdata
nwfilterxml2firewalldata
nwfilterxml2xmlin
nwfilterxml2xmlout
qemuagentdata
qemublocktestdata qemublocktest: Mark 'network-ssh-qcow2' input XML as invalid 2022-11-02 09:26:03 +01:00
qemucapabilitiesdata Revert "qemu:: Introduce QEMU_CAPS_MACHINE_VIRT_MTE capability" 2023-05-22 15:13:18 +02:00
qemucaps2xmloutdata qemucapabilitiesdata: Add (fake) '+hvf' variant of aarch64 data 2023-04-03 09:19:06 +02:00
qemudomaincheckpointxml2xmlin
qemudomaincheckpointxml2xmlout
qemudomainsnapshotxml2xmlin
qemudomainsnapshotxml2xmlout qemudomainsnapshotxml2xmltest: Add test case for a snapshot with 'inactiveDomain' element 2022-09-01 13:11:09 +02:00
qemufirmwaredata tests: Fix firmware descriptor masking test 2023-03-22 13:49:53 +01:00
qemuhotplugtestcpus qemuhotplugtest: Use real 'latest' capabilities for hotplug testing 2023-04-03 09:19:07 +02:00
qemuhotplugtestdevices qemu: Validate watchdog action compatibility per-device 2023-04-20 10:17:35 +02:00
qemuhotplugtestdomains qemuhotplugtest: Verify domain XML on UPDATE 2023-04-25 08:46:27 +02:00
qemumemlockdata qemu_domain: Increase memlock limit for NVMe disks 2023-04-20 08:37:22 +02:00
qemumigparamsdata
qemumigrationcookiexmldata
qemumonitorjsondata qemu: block: Remove 'qemuBlockNodeNamesDetect' and related infrastructure 2022-08-11 15:13:55 +02:00
qemusecuritydata
qemustatusxml2xmldata qemu: add multi-secret support in _qemuDomainStorageSourcePrivate 2023-03-16 15:19:36 +01:00
qemuvhostuserdata
qemuxml2argvdata conf: Reject invalid device's <seclabel relabel='yes'/> with no <label/> 2023-06-01 13:53:09 +02:00
qemuxml2xmloutdata Revert "conf: Introduce MTE domain feature" 2023-05-22 15:13:19 +02:00
schemas virschematest: Add infrastructure for testing single devices 2022-11-03 09:19:54 +01:00
secretxml2xmlin
securityselinuxhelperdata
securityselinuxlabeldata
storagepoolcapsschemadata
storagepoolschemadata
storagepoolxml2argvdata
storagepoolxml2xmlin tests: Remove storage pool/vol tests for sheepdog 2022-09-01 13:11:09 +02:00
storagepoolxml2xmlout tests: Remove storage pool/vol tests for sheepdog 2022-09-01 13:11:09 +02:00
storagevolschemadata
storagevolxml2argvdata
storagevolxml2xmlin tests: Remove storage pool/vol tests for sheepdog 2022-09-01 13:11:09 +02:00
storagevolxml2xmlout tests: Remove storage pool/vol tests for sheepdog 2022-09-01 13:11:09 +02:00
sysinfodata
vboxsnapshotxmldata
viracpidata tests: Introduce viracpitest 2023-04-06 12:48:22 +02:00
vircaps2xmldata virnumamock: Introduce virNumaGetNodeOfCPU() mock 2023-03-15 12:46:21 +01:00
vircgroupdata
virconfdata
virfilecachedata
virfiledata
virhostcpudata
virjsondata
virmacmaptestdata
virnetdaemondata rpc: Fix error message in virNetServerSetClientLimits 2023-01-02 20:39:09 +01:00
virnetdevopenvswitchdata
virnetdevtestdata/sys/class/net
virnetworkportxml2xmldata
virnwfilterbindingxml2xmldata
virpcitestdata
virprocessstatdata
virresctrldata
virscsidata
virstoragetestdata
virstorageutildata
virusbtestdata/sys_bus_usb/devices
vmwareverdata
vmx2xmldata Rename iterface type='dummy' to type='null' 2022-08-25 13:27:04 +02:00
xlconfigdata libxl: Add support for custom firmware path in config converter 2023-03-10 11:02:02 -07:00
xmconfigdata
xml2vmxdata Rename iterface type='dummy' to type='null' 2022-08-25 13:27:04 +02:00
.valgrind.supp
bhyveargv2xmlmock.c
bhyveargv2xmltest.c conf: extend xmlopt with job config & add job object into domain object 2022-09-07 12:06:18 +02:00
bhyvexml2argvmock.c maint: fix "mixing declarations and code" errors 2022-11-09 18:22:47 +01:00
bhyvexml2argvtest.c
bhyvexml2xmltest.c
chxml2xmltest.c test: Introduce chxml2xmltest 2023-02-14 13:59:45 +01:00
commandhelper.c
commandtest.c commandtest: Comply with FreeBSD poll() 2022-12-01 17:24:31 +01:00
cputest.c qemu: capabilities: Don't make callers check return of virQEMUCapsNew(Binary) 2023-03-06 20:55:50 +01:00
domaincapsmock.c tests: Mock virQEMUCapsProbeHVF directly in qemucapabilitiestest 2023-04-03 09:19:06 +02:00
domaincapstest.c domaincapstest: Skip unknown variants instead of the default variant 2023-04-03 10:51:17 +02:00
domainconftest.c
esxutilstest.c tests: Use virTestCompareToString() more 2022-12-01 14:22:39 +01:00
eventtest.c
fchosttest.c
fdstreamtest.c
genericxml2xmltest.c conf: Add support for specifying CPU max physical address size 2022-08-04 09:04:07 +02:00
interfacexml2xmltest.c
libvirtd-fail
libvirtd-pool
libxlmock.c tests: Fix libxlxml2domconfigtest 2022-11-11 08:10:34 -07:00
libxlxml2domconfigtest.c libxl: Support specifying a custom firmware path 2023-03-10 11:01:42 -07:00
lxcconf2xmltest.c
lxcxml2xmltest.c
meson.build tests: viracpitest only works on little endian 2023-04-18 12:55:47 +02:00
metadatatest.c
networkxml2conftest.c maint: fix "mixing declarations and code" errors 2022-11-09 18:22:47 +01:00
networkxml2firewalltest.c conf: network: Provide only virNetworkDefParse 2022-10-06 10:54:25 +02:00
networkxml2xmltest.c conf: network: Provide only virNetworkDefParse 2022-10-06 10:54:25 +02:00
networkxml2xmlupdatetest.c conf: network: Provide only virNetworkDefParse 2022-10-06 10:54:25 +02:00
nodedevmdevctltest.c conf: node_device: Add 'validate' argument to virNodeDeviceDefParse 2022-11-01 13:07:20 +01:00
nodedevxml2xmltest.c conf: node_device: Add 'validate' argument to virNodeDeviceDefParse 2022-11-01 13:07:20 +01:00
nsslinktest.c
nssmock.c
nsstest.c
nwfilterebiptablestest.c tests: Use virTestCompareToString() more 2022-12-01 14:22:39 +01:00
nwfilterxml2firewalltest.c conf: nwfilter: Provide only virNWFilterDefParse 2022-10-06 10:54:25 +02:00
nwfilterxml2xmltest.c src/tests: use g_autoptr for virNWFilterDef and virNWFilterRuleDef 2023-01-20 22:09:34 +01:00
objecteventtest.c
openvzutilstest.c tests: Use virTestCompareToString() more 2022-12-01 14:22:39 +01:00
openvzutilstest.conf
permitted_file_access.txt
pkix_asn1_tab.c
qemuagenttest.c tests: Make qemuAgent single sync 2022-11-08 12:10:50 +01:00
qemublocktest.c tests: qemublocktest: fix memory leak 2023-03-17 15:36:36 +01:00
qemucapabilitiesnumbering.c tests: Add support for multiple variants of data for the same qemu version+architecture 2023-04-03 09:19:06 +02:00
qemucapabilitiestest.c qemucapabilitiestest: Add support for '+hvf' variant 2023-04-03 09:19:06 +02:00
qemucaps2xmlmock.c
qemucaps2xmltest.c virQEMUCapsInitGuestFromBinary: Remove return value 2023-04-03 09:19:07 +02:00
qemucapsprobe.c
qemucapsprobemock.c
qemucommandutiltest.c
qemucpumock.c
qemudomaincheckpointxml2xmltest.c
qemudomainsnapshotxml2xmltest.c qemudomainsnapshotxml2xmltest: Add test case for a snapshot with 'inactiveDomain' element 2022-09-01 13:11:09 +02:00
qemufirmwaretest.c tests: Fix firmware descriptor masking test 2023-03-22 13:49:53 +01:00
qemuhotplugmock.c
qemuhotplugtest.c qemuhotplugtest: Verify domain XML on UPDATE 2023-04-25 08:46:27 +02:00
qemumemlocktest.c qemu: Drop @forceVFIO argument of qemuDomainGetMemLockLimitBytes() 2023-05-16 14:43:43 +02:00
qemumigparamstest.c
qemumigrationcookiexmltest.c qemumigrationcookiexmltest: Don't fetch latest caps files without using them 2023-04-03 09:19:06 +02:00
qemumonitorjsontest.c qemu_monitor_json: allow configuring autofinalize for block commit 2023-01-09 13:32:44 +01:00
qemumonitortestutils.c qemumonitortestutils: Fix line counting in qemuMonitorTestProcessFileEntries() 2022-12-23 14:48:31 +01:00
qemumonitortestutils.h
qemusecuritymock.c
qemusecuritytest.c qemuTestCapsCacheInsert*: Drop the file cache rather than poisoning it 2023-03-06 20:55:50 +01:00
qemusecuritytest.h
qemustatusxml2xmltest.c qemuTestCapsCacheInsert*: Drop the file cache rather than poisoning it 2023-03-06 20:55:50 +01:00
qemuvhostusertest.c
qemuxml2argvmock.c qemu: Move <hostdev> SCSI path generation into qemuDomainPrepareHostdev() 2023-04-25 12:36:30 +02:00
qemuxml2argvtest.c conf: Reject invalid device's <seclabel relabel='yes'/> with no <label/> 2023-06-01 13:53:09 +02:00
qemuxml2xmltest.c conf: numa: Allow formatting 'none' values for 'associativity' and 'policy' of cache 2023-05-17 10:07:18 +02:00
scsihosttest.c tests: Move fakerootdir handling to common logic 2023-03-03 13:52:37 +01:00
seclabeltest.c
secretxml2xmltest.c conf: secret: Provide only virSecretDefParse 2022-10-06 10:54:24 +02:00
securityselinuxhelper.c meson: remove obsolete check for linux/magic.h 2022-12-12 10:36:13 +00:00
securityselinuxlabeltest.c qemu: capabilities: Don't make callers check return of virQEMUCapsNew(Binary) 2023-03-06 20:55:50 +01:00
securityselinuxtest.c
shunloadhelper.c
shunloadtest.c
sockettest.c tests: Use virTestCompareToString() more 2022-12-01 14:22:39 +01:00
ssh.c
storagepoolcapstest.c
storagepoolxml2argvtest.c conf: storage: Provide only virStoragePoolDefParse 2022-10-06 10:54:24 +02:00
storagepoolxml2xmltest.c conf: storage: Provide only virStoragePoolDefParse 2022-10-06 10:54:24 +02:00
storagevolxml2argvtest.c conf: storage: Provide only virStorageVolDefParse 2022-10-06 10:54:24 +02:00
storagevolxml2xmltest.c conf: storage: Provide only virStorageVolDefParse 2022-10-06 10:54:24 +02:00
sysinfotest.c
test-lib.sh
testutils.c tests: Poison more XDG variables 2023-03-06 14:35:35 +01:00
testutils.h tests: Introduce helpers for fakerootdir handling 2023-03-03 13:52:37 +01:00
testutilshostcpus.h tests: qemu: Add 'ppc' machine caps based on 'qemu-system-ppc' on fedora 2023-03-06 20:55:50 +01:00
testutilslxc.c
testutilslxc.h
testutilsqemu.c testutilsqemu: Drop fake capability testing infrastructure for 'aarch64' 2023-04-11 10:08:33 +02:00
testutilsqemu.h testQemuGetRealCaps: Integrate fetching of QMP schema 2023-04-03 09:19:07 +02:00
testutilsqemuschema.c
testutilsqemuschema.h
testutilsxen.c virCapabilitiesAllocMachines: Use NULL-terminated list as argument and return count 2023-04-03 09:19:07 +02:00
testutilsxen.h
utiltest.c virStringParseVersion: Parse into 'unsigned long long' 2023-04-03 09:19:06 +02:00
vboxsnapshotxmltest.c tests: Use virTestCompareToString() more 2022-12-01 14:22:39 +01:00
viracpitest.c tests: Introduce viracpitest 2023-04-06 12:48:22 +02:00
viralloctest.c
virauthconfigtest.c
virbitmaptest.c Use G_N_ELEMENTS() more 2023-03-13 13:29:07 +01:00
virbuftest.c tests: Use virTestCompareToString() more 2022-12-01 14:22:39 +01:00
vircaps2xmltest.c
vircgroupmock.c vircgroupmock: fix cgroup v1 mocking 2022-10-19 16:32:14 +02:00
vircgrouptest.c tests: Adopt fakerootdir helpers 2023-03-03 13:52:37 +01:00
virconftest.c
vircryptotest.c vircryptotest: Fix cipher test typo aes265cbc -> aes256cbc 2023-04-03 08:21:27 +02:00
virdnsmasqmock.c
virdriverconnvalidatetest.c
virdrivermoduletest.c
virendiantest.c
virerrortest.c util: Update format strings in translated messages (part 1) 2023-04-01 11:40:35 +02:00
virfilecachemock.c
virfilecachetest.c
virfilemock.c meson: remove obsolete check for linux/magic.h 2022-12-12 10:36:13 +00:00
virfiletest.c
virfilewrapper.c
virfilewrapper.h
virfirewallmock.c virfirewallmock: Replace virFindFileInPath() with virFirewallDIsRegistered() 2023-05-10 14:44:22 +02:00
virfirewalltest.c tests: Drop dead code 2023-04-04 10:52:15 +02:00
virgdbusmock.c virgdbusmock: Mock g_dbus_connection_call_with_unix_fd_list_sync() only on UNIX-like systems 2022-09-30 15:38:47 +02:00
virhostcpumock.c
virhostcputest.c
virhostdevmock.c
virhostdevtest.c tests: Move fakerootdir handling to common logic 2023-03-03 13:52:37 +01:00
virhostidmock.c
viridentitytest.c
viriscsitest.c
virjsontest.c tests: Use virTestCompareToString() more 2022-12-01 14:22:39 +01:00
virkeycodetest.c
virkmodtest.c tests: Use virTestCompareToString() more 2022-12-01 14:22:39 +01:00
virlockspacetest.c
virlogtest.c
virmacmaptest.c
virmigtest.c
virmock.h
virmockstathelpers.c virmockstathelpers: Adapt to musl-1.2.4 2023-05-16 08:48:17 +02:00
virnetdaemonmock.c
virnetdaemontest.c rpc: Fix error message in virNetServerSetClientLimits 2023-01-02 20:39:09 +01:00
virnetdevbandwidthmock.c
virnetdevbandwidthtest.c tests: Use virTestCompareToString() more 2022-12-01 14:22:39 +01:00
virnetdevmock.c
virnetdevopenvswitchtest.c tests: Use virTestCompareToString() more 2022-12-01 14:22:39 +01:00
virnetdevtest.c Use G_N_ELEMENTS() more 2023-03-13 13:29:07 +01:00
virnetmessagetest.c
virnetserverclientmock.c
virnetserverclienttest.c
virnetsockettest.c tests: Use virTestCompareToString() more 2022-12-01 14:22:39 +01:00
virnettlscontexttest.c tests: Drop needless virrandom mock from two tests 2022-11-21 15:36:08 +01:00
virnettlshelpers.c
virnettlshelpers.h
virnettlssessiontest.c tests: Drop needless virrandom mock from two tests 2022-11-21 15:36:08 +01:00
virnetworkportxml2xmltest.c conf: networkportdef: Provide only virNetworkPortDefParse 2022-10-06 10:54:24 +02:00
virnumamock.c virnumamock: Introduce virNumaGetNodeOfCPU() mock 2023-03-15 12:46:21 +01:00
virnwfilterbindingxml2xmltest.c conf: nwfilterbinding: Provide only virNWFilterBindingDefParse 2022-10-06 10:54:24 +02:00
virpcimock.c
virpcitest.c tests: Move fakerootdir handling to common logic 2023-03-03 13:52:37 +01:00
virpcivpdtest.c
virpolkittest.c
virportallocatormock.c
virportallocatortest.c
virprocessmock.c
virprocessstattest.c
virrandommock.c
virresctrltest.c
virrotatingfiletest.c
virschematest.c virschematest: Add infrastructure for testing single devices 2022-11-03 09:19:54 +01:00
virscsitest.c
virsh-auth
virsh-auth.xml
virsh-checkpoint
virsh-cpuset
virsh-define-dev-segfault
virsh-int-overflow
virsh-optparse
virsh-output
virsh-output-commands
virsh-output.out
virsh-read-bufsiz
virsh-read-non-seekable
virsh-schedinfo
virsh-self-test
virsh-snapshot virsh: Add message to terminal when running snapshot-revert 2022-12-07 14:33:28 +01:00
virsh-start
virsh-undefine
virsh-uriprecedence
virsh-vcpupin
virshtest.c tests: Use virTestCompareToString() more 2022-12-01 14:22:39 +01:00
virstoragetest.c
virstorageutiltest.c
virstringtest.c
virsystemdtest.c
virt-aa-helper-test
virt-admin-self-test
virtestmock.c
virtimetest.c
virtypedparamtest.c
viruritest.c Drop checks for virURIFormat() retval 2023-02-08 16:50:45 +01:00
virusbmock.c
virusbtest.c
vmwarevertest.c
vmx2xmltest.c Rename iterface type='dummy' to type='null' 2022-08-25 13:27:04 +02:00
vshtabletest.c
xlconfigtest.c
xmconfigtest.c
xml2vmxtest.c Rename iterface type='dummy' to type='null' 2022-08-25 13:27:04 +02:00