You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by re...@apache.org on 2016/01/17 13:40:46 UTC

[1/2] git commit: updated refs/heads/master to 329c012

Repository: cloudstack
Updated Branches:
  refs/heads/master a4d0af213 -> 329c012b7


CLOUDSTACK-9001: Modifying snapshot results validation in testpath_uuid_event testpath


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

Branch: refs/heads/master
Commit: 0e01c7f357cd6596570fd966e0f2ac65c4bbedb1
Parents: 3ded3e9
Author: Priti Sarap <pr...@clogeny.com>
Authored: Wed Oct 28 11:19:36 2015 +0530
Committer: Priti Sarap <pr...@clogeny.com>
Committed: Wed Oct 28 11:19:36 2015 +0530

----------------------------------------------------------------------
 test/integration/testpaths/testpath_uuid_event.py | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/0e01c7f3/test/integration/testpaths/testpath_uuid_event.py
----------------------------------------------------------------------
diff --git a/test/integration/testpaths/testpath_uuid_event.py b/test/integration/testpaths/testpath_uuid_event.py
index 29ec449..71a5abc 100644
--- a/test/integration/testpaths/testpath_uuid_event.py
+++ b/test/integration/testpaths/testpath_uuid_event.py
@@ -167,9 +167,15 @@ class TestVerifyEventsTable(cloudstackTestCase):
             self.apiclient,
             root_volume.id)
 
-        self.assertNotEqual(
-            len(snapshot),
-            0,
+        snapshots_list = Snapshot.list(self.userapiclient,
+                                        id=snapshot.id)
+
+        status = validateList(snapshots_list)
+        self.assertEqual(status[0], PASS, "Snapshots List Validation Failed")
+
+        self.assertEqual(
+            snapshot.state,
+            "BackedUp",
             "Check if snapshot gets created properly"
         )
 


[2/2] git commit: updated refs/heads/master to 329c012

Posted by re...@apache.org.
Merge pull request #994 from pritisarap12/snapshot-has-no-attribute-len

CLOUDSTACK-9001: Modifying snapshot results validation Currently snapshots results validation is based on length of snapshot result but if snapshot creation fails then None type object will not have "len" attribute hence modifying the validation.

* pr/994:
  CLOUDSTACK-9001: Modifying snapshot results validation in testpath_uuid_event testpath

Signed-off-by: Remi Bergsma <gi...@remi.nl>


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

Branch: refs/heads/master
Commit: 329c012b7947bfbdeedcb608b2352c749203e458
Parents: a4d0af2 0e01c7f
Author: Remi Bergsma <gi...@remi.nl>
Authored: Sun Jan 17 13:40:30 2016 +0100
Committer: Remi Bergsma <gi...@remi.nl>
Committed: Sun Jan 17 13:40:31 2016 +0100

----------------------------------------------------------------------
 test/integration/testpaths/testpath_uuid_event.py | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------