mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
esx: Map the .vmx annotation to the domain XML description
Take care of escaping '"' and '|' (the escape character). Add tests for this.
This commit is contained in:
10
tests/xml2vmxdata/xml2vmx-annotation.vmx
Normal file
10
tests/xml2vmxdata/xml2vmx-annotation.vmx
Normal file
@@ -0,0 +1,10 @@
|
||||
config.version = "8"
|
||||
virtualHW.version = "4"
|
||||
guestOS = "other"
|
||||
uuid.bios = "56 4d 9b ef ac d9 b4 e0-c8 f0 ae a8 b9 10 35 15"
|
||||
displayName = "annotation"
|
||||
annotation = "Some |7Ctext|7C to test the |22escaping|22: |7C|7C|22|22|7C|7C|22|7C Unescaped!"
|
||||
memsize = "4"
|
||||
numvcpus = "1"
|
||||
floppy0.present = "false"
|
||||
floppy1.present = "false"
|
||||
9
tests/xml2vmxdata/xml2vmx-annotation.xml
Normal file
9
tests/xml2vmxdata/xml2vmx-annotation.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<domain type='vmware'>
|
||||
<name>annotation</name>
|
||||
<uuid>564d9bef-acd9-b4e0-c8f0-aea8b9103515</uuid>
|
||||
<description>Some |text| to test the "escaping": ||""||"| Unescaped!</description>
|
||||
<memory>4096</memory>
|
||||
<os>
|
||||
<type>hvm</type>
|
||||
</os>
|
||||
</domain>
|
||||
Reference in New Issue
Block a user