Fixing issues in regression test suite test_accounts.py

This commit is contained in:
Gaurav Aradhye 2014-05-20 20:30:48 +05:30 committed by Girish Shilamkar
parent 6f2a193b7c
commit 326f6d04ea
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(
@ -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"])