1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00

tests: vmx: Add <name> element for all domain XMLs

<name> is mandatory for a domain XML. Add 'displayName' for all the test
cases which were missing them so that <name> is parsed correctly.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pino Toscano <ptoscano@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Peter Krempa 2020-10-07 19:00:04 +02:00
parent 6c7e6caf43
commit d504297993
91 changed files with 91 additions and 0 deletions

View File

@ -1,3 +1,4 @@
config.version = "8"
virtualHW.version = "4"
annotation = "Some |7Ctext|7C to test the |22escaping|22: |7C|7C|22|22|7C|7C|22|7C |45|73|63|61|70|65|64|21"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<description>Some |text| to test the &quot;escaping&quot;: ||&quot;&quot;||&quot;| Escaped!</description>
<memory unit='KiB'>32768</memory>

View File

@ -4,3 +4,4 @@ guestOS = "other"
ide0:0.present = "true"
ide0:0.deviceType = "atapi-cdrom"
ide0:0.fileName = "/dev/scd0"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -2,3 +2,4 @@ config.version = "8"
virtualHW.version = "4"
ide0:0.present = "true"
ide0:0.deviceType = "atapi-cdrom"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -3,3 +3,4 @@ virtualHW.version = "4"
ide0:0.present = "true"
ide0:0.deviceType = "cdrom-image"
ide0:0.fileName = "emptyBackingString"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -3,3 +3,4 @@ virtualHW.version = "4"
ide0:0.present = "true"
ide0:0.deviceType = "cdrom-image"
ide0:0.fileName = "cdrom.iso"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -3,3 +3,4 @@ virtualHW.version = "4"
ide0:0.present = "true"
ide0:0.deviceType = "cdrom-raw"
ide0:0.fileName = "auto detect"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -3,3 +3,4 @@ virtualHW.version = "4"
ide0:0.present = "true"
ide0:0.deviceType = "cdrom-raw"
ide0:0.fileName = "/dev/scd0"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -4,3 +4,4 @@ scsi0.present = "true"
scsi0:0.present = "true"
scsi0:0.deviceType = "atapi-cdrom"
scsi0:0.fileName = "/dev/scd0"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -4,3 +4,4 @@ scsi0.present = "true"
scsi0:0.present = "true"
scsi0:0.deviceType = "cdrom-image"
scsi0:0.fileName = "emptyBackingString"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -4,3 +4,4 @@ scsi0.present = "true"
scsi0:0.present = "true"
scsi0:0.deviceType = "cdrom-image"
scsi0:0.fileName = "cdrom.iso"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -4,3 +4,4 @@ scsi0.present = "true"
scsi0:0.present = "true"
scsi0:0.deviceType = "scsi-passthru"
scsi0:0.fileName = "/vmfs/devices/cdrom/mpx.vmhba32:C0:T0:L0"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -4,3 +4,4 @@ scsi0.present = "true"
scsi0:0.present = "true"
scsi0:0.deviceType = "cdrom-raw"
scsi0:0.fileName = "auto detect"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -4,3 +4,4 @@ scsi0.present = "true"
scsi0:0.present = "true"
scsi0:0.deviceType = "cdrom-raw"
scsi0:0.fileName = "/dev/scd0"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -1,2 +1,3 @@
config.version = "8"
virtualHW.version = "4"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware' xmlns:vmware='http://libvirt.org/schemas/domain/vmware/1.0'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -5,3 +5,4 @@ ethernet0.networkName = "VM Network"
ethernet0.connectionType = "bridged"
ethernet0.addressType = "static"
ethernet0.address = "00:50:56:11:22:33"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -6,3 +6,4 @@ ethernet0.connectionType = "custom"
ethernet0.vnet = "vmnet7"
ethernet0.addressType = "static"
ethernet0.address = "00:50:56:11:22:33"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -6,3 +6,4 @@ ethernet0.networkName = "VM Network"
ethernet0.connectionType = "bridged"
ethernet0.addressType = "static"
ethernet0.address = "00:50:56:11:22:33"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -6,3 +6,4 @@ ethernet0.connectionType = "bridged"
ethernet0.addressType = "generated"
ethernet0.generatedAddress = "00:0C:29:11:22:33"
ethernet0.generatedAddressOffset = "0"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -4,3 +4,4 @@ ethernet0.present = "true"
ethernet0.connectionType = "nat"
ethernet0.addressType = "static"
ethernet0.address = "00:50:56:11:22:33"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -6,3 +6,4 @@ ethernet0.connectionType = "bridged"
ethernet0.checkMACAddress = "false"
ethernet0.addressType = "static"
ethernet0.address = "00:12:34:56:78:90"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -5,3 +5,4 @@ ethernet0.networkName = "VM Network"
ethernet0.connectionType = "bridged"
ethernet0.addressType = "static"
ethernet0.address = "00:50:56:11:22:33"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -7,3 +7,4 @@ ethernet0.networkName = "VM Network"
ethernet0.connectionType = "bridged"
ethernet0.addressType = "static"
ethernet0.address = "00:50:56:11:22:33"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -5,3 +5,4 @@ ethernet0.networkName = "VM Network"
ethernet0.connectionType = "bridged"
ethernet0.addressType = "vpx"
ethernet0.generatedAddress = "00:50:56:87:65:43"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -1,3 +1,4 @@
config.version = "8"
virtualHW.version = "13"
firmware = "efi"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -3,3 +3,4 @@ virtualHW.version = "4"
floppy0.present = "true"
floppy0.fileType = "device"
floppy0.fileName = "/dev/fd0"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -6,3 +6,4 @@ floppy0.fileName = "floppy.flp"
floppy1.present = "true"
floppy1.fileType = "file"
floppy1.fileName = "floppy"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -4,3 +4,4 @@ RemoteDisplay.vnc.enabled = "true"
RemoteDisplay.vnc.port = "5903"
RemoteDisplay.vnc.keymap = "de"
RemoteDisplay.vnc.password = "password"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -3,3 +3,4 @@ virtualHW.version = "4"
ide0:0.present = "true"
ide0:0.deviceType = "ata-hardDisk"
ide0:0.fileName = "harddisk.vmdk"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -4,3 +4,4 @@ scsi0.present = "true"
scsi0:0.present = "true"
scsi0:0.deviceType = "scsi-hardDisk"
scsi0:0.fileName = "harddisk.vmdk"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -4,3 +4,4 @@ ide0:0.present = "true"
ide0:0.deviceType = "ata-hardDisk"
ide0:0.fileName = "harddisk.vmdk"
ide0:0.mode = "independent-nonpersistent"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -1,3 +1,4 @@
config.version = "8"
virtualHW.version = "4"
guestOS = "other-64"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -1,2 +1,3 @@
config.version = "8"
virtualHW.version = "4"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -3,3 +3,4 @@ virtualHW.version = "4"
parallel0.present = "true"
parallel0.fileType = "device"
parallel0.fileName = "/dev/parallel0"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -3,3 +3,4 @@ virtualHW.version = "4"
parallel0.present = "true"
parallel0.fileType = "file"
parallel0.fileName = "parallel0.file"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -20,3 +20,4 @@ scsi2:0.fileName = "harddisk3.vmdk"
scsi3:0.present = "true"
scsi3:0.deviceType = "scsi-hardDisk"
scsi3:0.fileName = "harddisk4.vmdk"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -6,3 +6,4 @@ scsi0:0.present = "true"
scsi0:0.deviceType = "scsi-hardDisk"
scsi0:0.fileName = "harddisk.vmdk"
scsi0:0.writeThrough = "true"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -5,3 +5,4 @@ serial0.fileType = "device"
serial0.fileName = "/dev/ttyS0"
serial1.present = "true"
serial1.fileName = "/dev/ttyS1"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -3,3 +3,4 @@ virtualHW.version = "4"
serial0.present = "true"
serial0.fileType = "file"
serial0.fileName = "serial0.file"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -4,3 +4,4 @@ serial0.present = "true"
serial0.fileType = "network"
serial0.fileName = "tcp://192.168.0.17:42001"
serial0.network.endPoint = "client"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -4,3 +4,4 @@ serial0.present = "true"
serial0.fileType = "network"
serial0.fileName = "telnets://0.0.0.0:42001"
serial0.network.endPoint = "server"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -5,3 +5,4 @@ serial0.fileType = "pipe"
serial0.fileName = "serial0.pipe"
serial0.pipe.endPoint = "client"
serial0.tryNoRxLoss = "true"
displayName = "test"

View File

@ -4,3 +4,4 @@ serial0.present = "true"
serial0.fileType = "pipe"
serial0.fileName = "serial0.pipe"
serial0.pipe.endPoint = "client"
displayName = "test"

View File

@ -5,3 +5,4 @@ serial0.fileType = "pipe"
serial0.fileName = "serial0.pipe"
serial0.pipe.endPoint = "server"
serial0.tryNoRxLoss = "true"
displayName = "test"

View File

@ -4,3 +4,4 @@ serial0.present = "true"
serial0.fileType = "pipe"
serial0.fileName = "serial0.pipe"
serial0.pipe.endPoint = "server"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -7,3 +7,4 @@ sharedFolder0.enabled = "true"
sharedFolder0.hostPath = "/path/to/shared"
sharedFolder0.guestName = "shared"
sharedFolder0.writeAccess = "true"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -1,3 +1,4 @@
config.version = "8"
virtualHW.version = "4"
smbios.reflecthost = "true"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>

View File

@ -1,3 +1,4 @@
config.version = "8"
virtualHW.version = "4"
svga.vramSize = "8388608"
displayName = "test"

View File

@ -1,4 +1,5 @@
<domain type='vmware'>
<name>test</name>
<uuid>00000000-0000-0000-0000-000000000000</uuid>
<memory unit='KiB'>32768</memory>
<currentMemory unit='KiB'>32768</currentMemory>