From: whuang <[email protected]> Signed-off-by: whuang <[email protected]> --- libvirt/tests/cfg/virsh_change_media.cfg | 126 +++++++++++++++++++++++++++++++ 1 file changed, 126 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..de4ac2d --- /dev/null +++ b/libvirt/tests/cfg/virsh_change_media.cfg @@ -0,0 +1,126 @@ +- 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: + - eject: + action = "--eject " + check_file = + variants: + - options: + variants: + - none: + options = " " + - current: + options = "--current" + - live: + no shutoff_guest + options = "--live" + - force: + options = "--force" + - config: + options = "--config" + + - insert: + change_media_source = "change_media_old.iso" + action = "--insert " + check_file = "old" + init_iso = + variants: + - options: + variants: + - none: + options = " " + - current: + options = "--current" + - live: + no shutoff_guest + options = "--live" + - force: + options = "--force" + - config: + options = "--config" + - update: + change_media_source = "change_media_new.iso" + action = "--update " + check_file = "new" + variants: + - options: + variants: + - none: + options = " " + - current: + options = "--current" + - live: + no shutoff_guest + options = "--live" + - force: + options = "--force" + - config: + options = "--config" + + - negative_test: + status_error = "yes" + start_vm = "no" + variants: + - eject: + action = "--eject " + options = "--current" + variants: + - no_name: + vm_ref = " " + - unexpect_option: + vm_ref = "\#" + - invalid_option: + options = "xyz" + - with_libvirtd_stop: + libvirtd = "off" + - shutoff_guest_with_live: + options = "--live" + + - insert: + action = "--insert " + options = "--current" + variants: + - no_option: + options = " " + - no_name: + vm_ref = " " + - unexpect_option: + vm_ref = "\#" + - invalid_option: + options = "xyz" + - with_libvirtd_stop: + libvirtd = "off" + - shutoff_guest_with_live: + options = "--live" + - update: + action = "--update " + options = "--current" + variants: + - no_name: + vm_ref = " " + - unexpect_option: + vm_ref = "\#" + - invalid_option: + options = "xyz" + - with_libvirtd_stop: + libvirtd = "off" + - shutoff_guest_with_live: + options = "--live" + -- 1.8.1.4 _______________________________________________ Virt-test-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/virt-test-devel
