예제 #1
0
파일: OCCI.py 프로젝트: 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
예제 #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