From 8567701f07a3bf43a4f7532745e967d029229589 Mon Sep 17 00:00:00 2001 From: sanjeev Date: Tue, 16 Sep 2014 11:56:01 +0530 Subject: [PATCH] CLOUDSTACK-7552: In hyper-v additional data disks will be mapped to /dev/sdb Made changes to test_volumes.py accordingly --- test/integration/smoke/test_volumes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/integration/smoke/test_volumes.py b/test/integration/smoke/test_volumes.py index 1e429ec6b4b..a63879967e3 100644 --- a/test/integration/smoke/test_volumes.py +++ b/test/integration/smoke/test_volumes.py @@ -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]))