Example #1
0
File: OCCI.py Project: amcaar/im
 def get_occi_cloud():
     cloud_info = CloudInfo()
     cloud_info.type = "OCCI"
     cloud_info.protocol = "https"
     cloud_info.server = "server.com"
     cloud_info.port = 11443
     cloud = OCCICloudConnector(cloud_info)
     return cloud
Example #2
0
 def get_occi_cloud():
     cloud_info = CloudInfo()
     cloud_info.type = "OCCI"
     cloud_info.protocol = "https"
     cloud_info.server = "server.com"
     cloud_info.port = 11443
     inf = MagicMock()
     inf.id = "1"
     cloud = OCCICloudConnector(cloud_info, inf)
     return cloud