Skip to content

Commit

Permalink
Merge pull request #4969 from chunfuwen/add_scsi_hostdev_case
Browse files Browse the repository at this point in the history
Add scsi hostdev and controller cases
  • Loading branch information
chunfuwen authored Jul 25, 2023
2 parents d65360b + f868e01 commit 02aae6c
Show file tree
Hide file tree
Showing 2 changed files with 555 additions and 0 deletions.
45 changes: 45 additions & 0 deletions libvirt/tests/cfg/scsi/scsi_device.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
- scsi_device_manipulate:
type = scsi_device
status_error = "no"
start_vm = "no"
variants scsi_type:
- scsi_hostdev:
variants:
- positive:
variants test_scenario:
- alias:
only coldplug
alias_name = "ua-alias_test"
- boot_order:
only coldplug
boot_order_1 ='2'
alias_name_1 = "ua-alias_hostdev1"
boot_order_2 ='3'
alias_name_2 = "ua-alias_hostdev2"
- same_hostdev_address:
only hotplug
- tap_library:
only hotplug
- vdisk_hostdev_without_address:
only coldplug
target_device = "sda"
- unplug_scsi_controller:
only hotplug
controller_type = "scsi"
controller_model = "virtio-scsi"
controller_index = "0"
- negative:
variants test_scenario:
- max_sectors_controller:
only coldplug
controller_type = "scsi"
controller_model = "virtio-scsi"
controller_index = "0"
max_sectors = "12345678676754"
define_error = "yes"
error_msg = "Invalid value for attribute 'max_sectors' in element 'driver': '12345678676754'"
variants plug_mode:
- coldplug:
coldplug = "yes"
- hotplug:
coldplug = "no"
Loading

0 comments on commit 02aae6c

Please sign in to comment.