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/master to 326f6d0
Date Tue, 20 May 2014 15:06:21 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 6f2a193b7 -> 326f6d04e


Fixing issues in regression test suite test_accounts.py


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

Branch: refs/heads/master
Commit: 326f6d04ea90ded84ea3989fcaa2fdb9323ec987
Parents: 6f2a193
Author: Gaurav Aradhye <gaurav.aradhye@clogeny.com>
Authored: Tue May 20 20:30:48 2014 +0530
Committer: Girish Shilamkar <girish@clogeny.com>
Committed: Tue May 20 20:36:06 2014 +0530

----------------------------------------------------------------------
 test/integration/component/test_accounts.py | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/326f6d04/test/integration/component/test_accounts.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_accounts.py b/test/integration/component/test_accounts.py
index 98a1aa1..9b9ae75 100644
--- a/test/integration/component/test_accounts.py
+++ b/test/integration/component/test_accounts.py
@@ -476,7 +476,8 @@ class TestNonRootAdminsPrivileges(cloudstackTestCase):
 
         accounts_response = list_accounts(
                                           self.apiclient,
-                                          domainid=self.domain.id
+                                          domainid=self.domain.id,
+                                          listall=True
                                           )
 
         self.assertEqual(
@@ -1681,15 +1682,13 @@ class TestDomainForceRemove(cloudstackTestCase):
                          %s" % (ERROR_CODE_530, str(response)))
 
         self.debug("Checking if the resources in domain are deleted")
-        response = Account.list(
+        with self.assertRaises(Exception):
+            response = Account.list(
                         self.apiclient,
                         name=self.account_1.name,
                         domainid=self.account_1.domainid,
                         listall=True
                         )
-        self.assertEqual(response.errorcode, ERROR_CODE_530, "Job should \
-                         have failed with error code %s, instead got response \
-                         %s" % (ERROR_CODE_530, str(response)))
         return
 
     @attr(tags=["domains", "advanced", "advancedns", "simulator", "selfservice"])


Mime
View raw message