mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Imparting changes mentioned by nitt10prashant
This commit is contained in:
parent
7bcf84803c
commit
a4829f4d44
@ -193,7 +193,7 @@ class TestMultipleVolumeAttach(cloudstackTestCase):
|
|||||||
str(e))
|
str(e))
|
||||||
return FAILED
|
return FAILED
|
||||||
|
|
||||||
@attr(tags = ["advanced", "advancedns", "basic","bpk"], required_hardware="true")
|
@attr(tags = ["advanced", "advancedns", "basic"], required_hardware="true")
|
||||||
def test_attach_multiple_volumes(self):
|
def test_attach_multiple_volumes(self):
|
||||||
"""Attach multiple Volumes simultaneously to a Running VM
|
"""Attach multiple Volumes simultaneously to a Running VM
|
||||||
"""
|
"""
|
||||||
@ -237,6 +237,7 @@ class TestMultipleVolumeAttach(cloudstackTestCase):
|
|||||||
list_volume_response = Volume.list(
|
list_volume_response = Volume.list(
|
||||||
self.apiClient,
|
self.apiClient,
|
||||||
virtualmachineid=self.virtual_machine.id,
|
virtualmachineid=self.virtual_machine.id,
|
||||||
|
type="DATADISK",
|
||||||
account=self.account.name,
|
account=self.account.name,
|
||||||
domainid=self.account.domainid
|
domainid=self.account.domainid
|
||||||
)
|
)
|
||||||
@ -246,17 +247,8 @@ class TestMultipleVolumeAttach(cloudstackTestCase):
|
|||||||
"Check list response returns a valid list"
|
"Check list response returns a valid list"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Extract only the data disks attached to the instance.
|
|
||||||
data_disks_list = [ disk for disk in list_volume_response if disk.type == 'DATADISK']
|
|
||||||
|
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
validateList(data_disks_list)[0],
|
len(list_volume_response),
|
||||||
PASS,
|
|
||||||
"Check data disk check returns a valid list"
|
|
||||||
)
|
|
||||||
|
|
||||||
self.assertEqual(
|
|
||||||
len(data_disks_list),
|
|
||||||
4,
|
4,
|
||||||
"All 4 data disks are not attached to VM Successfully"
|
"All 4 data disks are not attached to VM Successfully"
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user