Skip to content

Commit 326f6d0

Browse files
Gaurav AradhyeGirish Shilamkar
authored andcommitted
Fixing issues in regression test suite test_accounts.py
1 parent 6f2a193 commit 326f6d0

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

test/integration/component/test_accounts.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,8 @@ def test_01_non_root_admin_Privileges(self):
476476

477477
accounts_response = list_accounts(
478478
self.apiclient,
479-
domainid=self.domain.id
479+
domainid=self.domain.id,
480+
listall=True
480481
)
481482

482483
self.assertEqual(
@@ -1681,15 +1682,13 @@ def test_forceDeleteDomain(self):
16811682
%s" % (ERROR_CODE_530, str(response)))
16821683

16831684
self.debug("Checking if the resources in domain are deleted")
1684-
response = Account.list(
1685+
with self.assertRaises(Exception):
1686+
response = Account.list(
16851687
self.apiclient,
16861688
name=self.account_1.name,
16871689
domainid=self.account_1.domainid,
16881690
listall=True
16891691
)
1690-
self.assertEqual(response.errorcode, ERROR_CODE_530, "Job should \
1691-
have failed with error code %s, instead got response \
1692-
%s" % (ERROR_CODE_530, str(response)))
16931692
return
16941693

16951694
@attr(tags=["domains", "advanced", "advancedns", "simulator", "selfservice"])

0 commit comments

Comments
 (0)