libvirt/tests/vmx2xmldata
Martin Kletzander 23c4794488 vmx: Check serialX.vspc before serialX.fileName
When using vSPC (Virtual Serial Port Concentrator) in vSphere the actual
address for it is saved in serialX.vspc in which case the
serialX.fileName is most probably something we can't get any useful
information from and we also fail during the parsing rendering any
dumpxml and similar tries unsuccessful.

Instead of parsing the vspc URL with something along the lines of
`virURIParse(vspc ? vspc : fileName)`, which could lead to us reporting
information that is very prune to misuse (the vSPC seemingly has a
protocol on top of the telnet connection; redefining the domain would
change the behaviour; the URL might have a fragment we are not saving;
etc.) or adding more XML knobs to indicate vSPC usage (which we would
not be able to configure; we'd have to properly error out everywhere;
etc.) let's just report dummy serial port that leads to nowhere (i.e.
type="null").

Resolves: https://issues.redhat.com/browse/RHEL-32182
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2024-05-02 17:22:37 +02:00
..
annotation.vmx
annotation.xml
case-insensitive-1.vmx
case-insensitive-1.xml
case-insensitive-2.vmx
case-insensitive-2.xml
cdrom-ide-device.vmx
cdrom-ide-device.xml
cdrom-ide-empty-2.vmx
cdrom-ide-empty-2.xml
cdrom-ide-empty.vmx
cdrom-ide-empty.xml
cdrom-ide-file-missing-datastore.vmx
cdrom-ide-file-missing-datastore.xml
cdrom-ide-file-missing-file.vmx
cdrom-ide-file-missing-file.xml
cdrom-ide-file.vmx
cdrom-ide-file.xml
cdrom-ide-raw-auto-detect.vmx
cdrom-ide-raw-auto-detect.xml
cdrom-ide-raw-device.vmx
cdrom-ide-raw-device.xml
cdrom-scsi-device.vmx
cdrom-scsi-device.xml
cdrom-scsi-empty.vmx
cdrom-scsi-empty.xml
cdrom-scsi-file.vmx
cdrom-scsi-file.xml
cdrom-scsi-passthru.vmx
cdrom-scsi-passthru.xml
cdrom-scsi-raw-auto-detect.vmx
cdrom-scsi-raw-auto-detect.xml
cdrom-scsi-raw-device.vmx
cdrom-scsi-raw-device.xml
datacenterpath.vmx
datacenterpath.xml
esx-in-the-wild-1.vmx tests: Drop vmx2xml- prefix for vmx2xml test cases 2021-08-19 13:28:03 +02:00
esx-in-the-wild-1.xml
esx-in-the-wild-2.vmx
esx-in-the-wild-2.xml
esx-in-the-wild-3.vmx
esx-in-the-wild-3.xml
esx-in-the-wild-4.vmx
esx-in-the-wild-4.xml
esx-in-the-wild-5.vmx
esx-in-the-wild-5.xml
esx-in-the-wild-6.vmx
esx-in-the-wild-6.xml
esx-in-the-wild-7.vmx
esx-in-the-wild-7.xml
esx-in-the-wild-8.vmx
esx-in-the-wild-8.xml
esx-in-the-wild-9.vmx
esx-in-the-wild-9.xml
esx-in-the-wild-10.vmx
esx-in-the-wild-10.xml
esx-in-the-wild-11.vmx
esx-in-the-wild-11.xml
esx-in-the-wild-12.vmx
esx-in-the-wild-12.xml
esx-in-the-wild-13.vmx vmx: Check serialX.vspc before serialX.fileName 2024-05-02 17:22:37 +02:00
esx-in-the-wild-13.xml vmx: Check serialX.vspc before serialX.fileName 2024-05-02 17:22:37 +02:00
ethernet-bridged.vmx
ethernet-bridged.xml
ethernet-custom.vmx
ethernet-custom.xml
ethernet-e1000.vmx
ethernet-e1000.xml
ethernet-generated.vmx
ethernet-generated.xml
ethernet-nat.vmx
ethernet-nat.xml
ethernet-null.vmx
ethernet-null.xml
ethernet-other.vmx
ethernet-other.xml
ethernet-static.vmx
ethernet-static.xml
ethernet-vds.vmx
ethernet-vds.xml
ethernet-vmxnet2.vmx
ethernet-vmxnet2.xml
ethernet-vpx.vmx
ethernet-vpx.xml
firmware-efi.vmx tests: Drop vmx2xml- prefix for vmx2xml test cases 2021-08-19 13:28:03 +02:00
firmware-efi.xml
floppy-device.vmx
floppy-device.xml
floppy-file.vmx
floppy-file.xml
fusion-in-the-wild-1.vmx
fusion-in-the-wild-1.xml
graphics-vnc.vmx
graphics-vnc.xml
gsx-in-the-wild-1.vmx
gsx-in-the-wild-1.xml
gsx-in-the-wild-2.vmx
gsx-in-the-wild-2.xml
gsx-in-the-wild-3.vmx
gsx-in-the-wild-3.xml
gsx-in-the-wild-4.vmx
gsx-in-the-wild-4.xml
harddisk-ide-file-missing-datastore.vmx
harddisk-ide-file.vmx
harddisk-ide-file.xml
harddisk-scsi-file-missing-file.vmx
harddisk-scsi-file.vmx
harddisk-scsi-file.xml
harddisk-transient.vmx
harddisk-transient.xml tests: Drop vmx2xml- prefix for vmx2xml test cases 2021-08-19 13:28:03 +02:00
minimal-64bit.vmx
minimal-64bit.xml
minimal.vmx
minimal.xml
parallel-device.vmx
parallel-device.xml
parallel-file.vmx
parallel-file.xml
scsi-driver.vmx
scsi-driver.xml
scsi-writethrough.vmx
scsi-writethrough.xml
serial-device.vmx
serial-device.xml
serial-file.vmx
serial-file.xml
serial-network-client.vmx
serial-network-client.xml
serial-network-server.vmx
serial-network-server.xml
serial-pipe-client-app.vmx
serial-pipe-client-app.xml
serial-pipe-client-vm.vmx
serial-pipe-client-vm.xml
serial-pipe-server-app.vmx
serial-pipe-server-app.xml
serial-pipe-server-vm.vmx
serial-pipe-server-vm.xml
serial-pipe.xml
sharedfolder.vmx
sharedfolder.xml
smbios.vmx
smbios.xml
svga.vmx
svga.xml
ws-in-the-wild-1.vmx
ws-in-the-wild-1.xml
ws-in-the-wild-2.vmx
ws-in-the-wild-2.xml