On 04/01/2013 08:37 AM, [email protected] wrote:
From: whuang <[email protected]>
Signed-off-by: whuang <[email protected]>
---
libvirt/tests/cfg/virsh_change_media.cfg | 71 ++++++++++++++++++++++++++++++++
1 file changed, 71 insertions(+)
create mode 100755 libvirt/tests/cfg/virsh_change_media.cfg
diff --git a/libvirt/tests/cfg/virsh_change_media.cfg
b/libvirt/tests/cfg/virsh_change_media.cfg
new file mode 100755
index 0000000..20af908
--- /dev/null
+++ b/libvirt/tests/cfg/virsh_change_media.cfg
@@ -0,0 +1,71 @@
+- virsh_change_media:
+ type = virsh_change_media
+ old_iso = "change_media_old.iso"
+ new_iso = "change_media_new.iso"
+ update_iso_xml = "update_iso.xml"
+ disk_device = "hdc"
+ vm_ref = "name"
+ init_cdrom = "''"
+ libvirtd = "on"
+ init_iso = "change_media_old.iso"
+ change_media_source =
+ variants:
+ - positive_test:
+ status_error = "no"
+ variants:
+ - running_guest:
+ start_vm = "yes"
+ - shutoff_guest:
+ start_vm = "no"
+ variants:
+ - options:
+ variants:
+ - none:
+ options = " "
+ - current:
+ options = "--current"
+ - live:
+ no shutoff_guest
+ options = "--live"
+ - force:
+ options = "--force"
+ - config:
+ options = "--config"
+ variants:
+ - eject:
+ action = "--eject "
+ check_file =
+ - insert:
+ change_media_source = "change_media_old.iso"
+ action = "--insert "
+ check_file = "old"
+ init_iso =
+ - update:
+ change_media_source = "change_media_new.iso"
+ action = "--update "
+ check_file = "new"
+ - negative_test:
+ status_error = "yes"
+ start_vm = "no"
+ options = "--current"
+ variants:
+ - no_option:
+ only insert
+ options = " "
+ - no_name:
+ vm_ref = " "
+ - unexpect_option:
+ vm_ref = "\#"
+ - invalid_option:
+ options = "--xyz"
+ - with_libvirtd_stop:
+ libvirtd = "off"
^ This will need "requires_root = yes", since I'd like to not require
root for all those libvirt tests anymore. I've fixed it.
_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel