Fixing issues in regression test suite test_accounts.py

(cherry picked from commit 02f769c4d5)
This commit is contained in:
Gaurav Aradhye 2014-05-20 20:30:48 +05:30 committed by Daan Hoogland
parent a40f2315fd
commit 2addc57d89
1 changed files with 4 additions and 5 deletions

View File

@ -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(
@ -1686,15 +1687,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"])