MCPcopy Create free account
hub / github.com/apache/cloudstack / __createTestClient

Method __createTestClient

tools/marvin/marvin/marvinInit.py:192–215  ·  view source on GitHub ↗

@Name : __createTestClient @Desc : Creates the TestClient during init based upon the parameters provided @Output: Returns SUCCESS or FAILED

(self)

Source from the content-addressed store, hash-verified

190 return FAILED
191
192 def __createTestClient(self):
193 '''
194 @Name : __createTestClient
195 @Desc : Creates the TestClient during init
196 based upon the parameters provided
197 @Output: Returns SUCCESS or FAILED
198 '''
199 try:
200 mgt_details = self.__parsedConfig.mgtSvr[0]
201 dbsvr_details = self.__parsedConfig.dbSvr
202 self.__testClient = CSTestClient(
203 mgt_details,
204 dbsvr_details,
205 logger=self.__tcRunLogger,
206 test_data_filepath=self.__testDataFilePath,
207 zone=self.__zoneForTests,
208 hypervisor_type=self.__hypervisorType)
209 if self.__testClient:
210 return self.__testClient.createTestClient()
211 return FAILED
212 except Exception as e:
213 print("\n Exception Occurred Under __createTestClient : %s" % \
214 GetDetailExceptionInfo(e))
215 return FAILED
216
217 def __setTestDataPath(self):
218 '''

Callers 1

initMethod · 0.95

Calls 3

CSTestClientClass · 0.90
GetDetailExceptionInfoFunction · 0.90
createTestClientMethod · 0.80

Tested by

no test coverage detected