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
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