From 326f6d04ea90ded84ea3989fcaa2fdb9323ec987 Mon Sep 17 00:00:00 2001 From: Gaurav Aradhye Date: Tue, 20 May 2014 20:30:48 +0530 Subject: [PATCH] Fixing issues in regression test suite test_accounts.py --- test/integration/component/test_accounts.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/integration/component/test_accounts.py b/test/integration/component/test_accounts.py index 98a1aa10c3a..9b9ae753729 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"])