CLOUDSTACK-5347: Resolved issue related to snapshot state

This commit is contained in:
Gaurav Aradhye 2013-12-04 11:32:36 +05:30 committed by Girish Shilamkar
parent 6b955958c6
commit 291eafadae
1 changed files with 4 additions and 2 deletions

View File

@ -905,10 +905,12 @@ class TestSnapshots(cloudstackTestCase):
self.assertEqual(
snapshot.state in [
'BackedUp',
'CreatedOnPrimary'
'CreatedOnPrimary',
'Allocated'
],
True,
"Check Snapshot state is Running or not"
"Check Snapshot state is in one of the mentioned possible states, \
It is currently: %s" % snapshot.state
)
snapshots = Snapshot.list(