Skip to content

Commit

Permalink
Add blockcopy xml test cases
Browse files Browse the repository at this point in the history
Cover different backend storage such as file,block,iscsi,rbd,nbd,ceph and gluster

Signed-off-by: chunfuwen <[email protected]>
  • Loading branch information
chunfuwen committed Aug 13, 2020
1 parent 1190a69 commit 62eea85
Show file tree
Hide file tree
Showing 2 changed files with 410 additions and 0 deletions.
73 changes: 73 additions & 0 deletions libvirt/tests/cfg/virsh_cmd/domain/virsh_blockcopy_xml.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
- virsh.blockcopy_xml:
type = virsh_blockcopy_xml
take_regular_screendumps = "no"
start_vm = "no"
virt_disk_vm_ref = "name"
virt_disk_device = "disk"
storage_size = "1G"
virt_disk_device_target = "vdb"
virt_disk_device_format = "raw"
virt_disk_device_bus = "virtio"
variants blockcopy_option:
- pivot:
options = "--pivot --transient-job --verbose --wait"
- finish:
options = "--finish --transient-job --verbose --wait"
- reuse_external:
options = "--finish --transient-job --reuse-external --verbose --wait"
variants:
- file_test:
backend_storage_type = "file"
virt_disk_device_type = "file"
image_filename = "disk.img"
virt_disk_device_format = "qcow2"
- block_test:
backend_storage_type = "iscsi"
virt_disk_device_source = ""
virt_disk_device_type = "block"
virt_disk_check_partitions = "yes"
emulated_image = "iscsi"
iscsi_host = "127.0.0.1"
iscsi_port = "3260"
- iscsi_test:
backend_storage_type = "iscsi"
virt_disk_device_type = "network"
emulated_image = "iscsi"
iscsi_host = "127.0.0.1"
iscsi_port = "3260"
enable_auth = "yes"
auth_sec_usage_target = "libvirtiscsi"
auth_sec_usage_type = "iscsi"
chap_user = "redhat"
chap_passwd = "password"
use_auth_usage = "yes"
auth_in_source = "yes"
- gluster_test:
backend_storage_type = "gluster"
virt_disk_device_type = "network"
gluster_vol_name = "vol_virtual_disks_blockcopy"
gluster_pool_name = "brick1"
gluster_img_name = "gluster1.img"
- ceph_test:
backend_storage_type = "ceph"
virt_disk_device_type = "network"
ceph_host_port = "6789"
ceph_disk_name = "avocado-vt-pool/blockcopyxml.img"
storage_size = "200M"
enable_auth = "yes"
ceph_host_ip = "EXAMPLE_HOSTS_AUTHX"
ceph_mon_ip = "EXAMPLE_MON_HOST_AUTHX"
ceph_client_name = "EXAMPLE_CLIENT_NAME"
ceph_client_key = "EXAMPLE_CLIENT_KEY"
ceph_auth_user = "EXAMPLE_AUTH_USER"
ceph_auth_key = "EXAMPLE_AUTH_KEY"
auth_sec_usage_type = "ceph"
use_auth_uuid = "yes"
auth_in_source = "yes"
only pivot, finish
- nbd_test:
backend_storage_type = "nbd"
virt_disk_device_type = "network"
nbd_server_port = "10001"
variants:
- positive_test:
Loading

0 comments on commit 62eea85

Please sign in to comment.