virt-manager/tests/data/cli/compare/virt-xml-multi-edit-device-backcompat.xml
Cole Robinson 2da4884962 tests: Cover some weird virt-xml corner case behaviors
Examples:

`virt-xml MYVM --add-device --sound FOO1 --sound FOO2` is not rejected
and will add 2 devices.

`virt-xml MYVM --remove-device --sound opt1=FOO1 --sound opt2=FOO2`
is not rejected, only the final `--sound` option is used.

`virt-xml MYVM --edit --sound FOO1 --sound address.type=BAR` is not
rejected. The commandlines will effectively be squashed

`--sound` can be any XML option, but trying to mix and match
options like `--sound` and `--disk` is always rejected.

These bits are unexpected and undocument, but have been around since
the beginning of virt-xml.

I can see us breaking compat on these in the future (particularly the
--remove-device bit), but that would need to be an explicit decision,
and announced appropriately. In the mean time, we should be testing
this so it doesn't accidentally regress.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-08-28 21:09:31 +02:00

13 lines
397 B
XML

<mac address="22:22:33:54:32:10"/>
<source network="default"/>
<target dev="testnet0"/>
- <model type="e1000"/>
+ <model type="virtio"/>
+ <boot order="7"/>
</interface>
<interface type="bridge">
<mac address="22:00:00:44:aa:bf"/>
Domain 'test-for-virtxml' defined successfully.
Changes will take effect after the domain is fully powered off.