cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gir...@apache.org
Subject git commit: updated refs/heads/4.3 to e504714
Date Wed, 04 Dec 2013 06:01:24 GMT
Updated Branches:
  refs/heads/4.3 171c7e950 -> e5047141a


CLOUDSTACK-5333: Code changes related to snapshots listing

Signed-off-by: Girish Shilamkar <girish@clogeny.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/e5047141
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/e5047141
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/e5047141

Branch: refs/heads/4.3
Commit: e5047141a9fd305be186fc303f7cfdfc68a4bfd3
Parents: 171c7e9
Author: Gaurav Aradhye <gaurav.aradhye@clogeny.com>
Authored: Wed Dec 4 11:29:50 2013 +0530
Committer: Girish Shilamkar <girish@clogeny.com>
Committed: Wed Dec 4 11:31:18 2013 +0530

----------------------------------------------------------------------
 test/integration/component/test_project_limits.py | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e5047141/test/integration/component/test_project_limits.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_project_limits.py b/test/integration/component/test_project_limits.py
index c497311..7cb29b7 100644
--- a/test/integration/component/test_project_limits.py
+++ b/test/integration/component/test_project_limits.py
@@ -24,6 +24,7 @@ from marvin.cloudstackAPI import *
 from marvin.integration.lib.utils import *
 from marvin.integration.lib.base import *
 from marvin.integration.lib.common import *
+from marvin.codes import PASS
 import datetime
 
 
@@ -781,15 +782,14 @@ class TestResourceLimitsProject(cloudstackTestCase):
                             projectid=self.project.id
                             )
         self.cleanup.append(snapshot_1)
-        # Verify Snapshot state
-        self.assertEqual(
-                            snapshot_1.state in [
-                                                 'BackedUp',
-                                                 'CreatedOnPrimary'
-                                                 ],
-                            True,
-                            "Check Snapshot state is Running or not"
-                        )
+
+        #list snapshots
+        snapshots = list_snapshots(self.apiclient, projectid=self.project.id)
+
+        self.debug("snapshots list: %s" % snapshots)
+
+        self.assertEqual(validateList(snapshots)[0], PASS, "Snapshots list validation failed")
+        self.assertEqual(len(snapshots), 1, "Snapshots list should have exactly one entity")
 
         # Exception should be raised for second snapshot
         with self.assertRaises(Exception):


Mime
View raw message