mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-8636: Verify failure of creation of Custom disk offering with disksize parameter -Modified list validation of volume list
This closes #590
This commit is contained in:
parent
837486a43c
commit
faaf6b1f98
@ -31,6 +31,7 @@ from marvin.lib.common import (get_domain,
|
|||||||
get_template,
|
get_template,
|
||||||
list_volumes,
|
list_volumes,
|
||||||
)
|
)
|
||||||
|
from marvin.codes import PASS
|
||||||
|
|
||||||
class TestUnableToRevertSnapshot(cloudstackTestCase):
|
class TestUnableToRevertSnapshot(cloudstackTestCase):
|
||||||
|
|
||||||
@ -118,7 +119,6 @@ class TestUnableToRevertSnapshot(cloudstackTestCase):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
# Step 1
|
# Step 1
|
||||||
# Create VM on cluster wide
|
|
||||||
vm = VirtualMachine.create(
|
vm = VirtualMachine.create(
|
||||||
self.userapiclient,
|
self.userapiclient,
|
||||||
self.testdata["small"],
|
self.testdata["small"],
|
||||||
@ -137,11 +137,13 @@ class TestUnableToRevertSnapshot(cloudstackTestCase):
|
|||||||
|
|
||||||
volume_list_validation = validateList(volumes_cluster_list)
|
volume_list_validation = validateList(volumes_cluster_list)
|
||||||
|
|
||||||
self.assertNotEqual(
|
self.assertEqual(
|
||||||
len(volume_list_validation),
|
volume_list_validation[0],
|
||||||
0,
|
PASS,
|
||||||
"Check if volume gets attached properly"
|
"Event list validation failed due to %s" %
|
||||||
|
volume_list_validation[2]
|
||||||
)
|
)
|
||||||
|
|
||||||
root_volume = volumes_cluster_list[0]
|
root_volume = volumes_cluster_list[0]
|
||||||
|
|
||||||
#Step 2
|
#Step 2
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user