Skip to content

Commit 2addc57

Browse files
Gaurav AradhyeDaanHoogland
authored andcommitted
Fixing issues in regression test suite test_accounts.py
(cherry picked from commit 02f769c)
1 parent a40f231 commit 2addc57

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(
@@ -1686,15 +1687,13 @@ def test_forceDeleteDomain(self):
16861687
%s" % (ERROR_CODE_530, str(response)))
16871688

16881689
self.debug("Checking if the resources in domain are deleted")
1689-
response = Account.list(
1690+
with self.assertRaises(Exception):
1691+
response = Account.list(
16901692
self.apiclient,
16911693
name=self.account_1.name,
16921694
domainid=self.account_1.domainid,
16931695
listall=True
16941696
)
1695-
self.assertEqual(response.errorcode, ERROR_CODE_530, "Job should \
1696-
have failed with error code %s, instead got response \
1697-
%s" % (ERROR_CODE_530, str(response)))
16981697
return
16991698

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

0 commit comments

Comments
 (0)