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

Method testConnection

python/lib/cloudutils/db.py:59–66  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 pass
58
59 def testConnection(self):
60 try:
61 conn = self.connect()
62 conn.ping()
63 conn.close()
64 return True
65 except:
66 raise CloudRuntimeException("Failed to Connect to DB")
67
68 def executeFromFile(self, file):
69 if not os.path.exists(file):

Callers 1

configMethod · 0.95

Calls 4

connectMethod · 0.95
pingMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected