def get_ost_cloud(): cloud_info = CloudInfo() cloud_info.type = "OpenStack" cloud_info.protocol = "https" cloud_info.server = "server.com" cloud_info.port = 5000 one_cloud = OpenStackCloudConnector(cloud_info) return one_cloud
def get_ost_cloud(): cloud_info = CloudInfo() cloud_info.type = "OpenStack" cloud_info.protocol = "https" cloud_info.server = "server.com" cloud_info.port = 5000 inf = MagicMock() inf.id = "1" one_cloud = OpenStackCloudConnector(cloud_info, inf) return one_cloud