mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-3618: When project account does not exist, API now throws exception
API call listprojectaccounts failed, and test case test_projects.py:test_08_cleanup_after_project_delete failed due to this Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
parent
8cd3a9725a
commit
52fa8532bb
|
|
@ -1431,13 +1431,10 @@ class TestProjectResources(cloudstackTestCase):
|
|||
"Resources (volume) should be deleted as part of cleanup"
|
||||
)
|
||||
|
||||
accounts = Project.listAccounts(self.apiclient, projectid=project.id)
|
||||
|
||||
self.assertEqual(
|
||||
accounts,
|
||||
None,
|
||||
"Accounts should be un-assigned from project"
|
||||
)
|
||||
# Accounts should be un-assigned from project,
|
||||
# so this call will raise an exception: Unable to find the project id=
|
||||
with self.assertRaises(Exception):
|
||||
Project.listAccounts(self.apiclient, projectid=project.id)
|
||||
return
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue