mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Smoke Tests: incorrect self reference in setUpClass
should be cls.apiClient and not self.apiClient
This commit is contained in:
parent
8466ff1e1f
commit
3ba8dc455f
@ -218,7 +218,7 @@ class TestISO(cloudstackTestCase):
|
||||
cls.services["account"] = cls.account.account.name
|
||||
# Finding the OsTypeId from Ostype
|
||||
ostypes = list_os_types(
|
||||
self.apiclient,
|
||||
cls.apiclient,
|
||||
description=self.services["ostype"]
|
||||
)
|
||||
if not isinstance(ostypes, list):
|
||||
|
||||
@ -137,7 +137,13 @@ class cloudstackTestClient(object):
|
||||
def getApiClient(self):
|
||||
return self.apiClient
|
||||
|
||||
def getUserApiClient(self):
|
||||
def getUserApiClient(self, account, domain, type=0):
|
||||
"""
|
||||
0 - user
|
||||
1 - admin
|
||||
2 - domain admin
|
||||
"""
|
||||
self.createUserApiClient(account, domain, type)
|
||||
if hasattr(self, "userApiClient"):
|
||||
return self.userApiClient
|
||||
return None
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user