mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-7552: In hyper-v additional data disks will be mapped to /dev/sdb
Made changes to test_volumes.py accordingly
This commit is contained in:
parent
1b14fa6abe
commit
8567701f07
@ -31,7 +31,7 @@ from marvin.lib.base import (ServiceOffering,
|
||||
Volume,
|
||||
Host,
|
||||
DiskOffering,
|
||||
StoragePool)
|
||||
StoragePool,)
|
||||
from marvin.lib.common import (get_domain,
|
||||
get_zone,
|
||||
get_template)
|
||||
@ -228,6 +228,8 @@ class TestCreateVolume(cloudstackTestCase):
|
||||
volume_name = "/dev/vd" + chr(ord('a') + int(list_volume_response[0].deviceid))
|
||||
self.debug(" Using KVM volume_name: %s" % (volume_name))
|
||||
ret = checkVolumeSize(ssh_handle=ssh,volume_name=volume_name,size_to_verify=vol_sz)
|
||||
elif list_volume_response[0].hypervisor.lower() == "hyperv":
|
||||
ret = checkVolumeSize(ssh_handle=ssh,volume_name="/dev/sdb",size_to_verify=vol_sz)
|
||||
else:
|
||||
ret = checkVolumeSize(ssh_handle=ssh,size_to_verify=vol_sz)
|
||||
self.debug(" Volume Size Expected %s Actual :%s" %(vol_sz,ret[1]))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user