Lines Matching refs:compute_client
46 self.compute_client = mock.MagicMock()
50 return_value=self.compute_client)
90 self.compute_client.GetInstanceIP.return_value = fake_ip
91 self.compute_client.GenerateImageName.return_value = fake_image
92 self.compute_client.GenerateInstanceName.return_value = fake_instance
93 self.compute_client.GetDataDiskName.return_value = disk_name
102 self.compute_client.CreateImage.assert_called_with(
104 self.compute_client.CreateInstance.assert_called_with(
106 self.compute_client.DeleteImage.assert_called_with(fake_image)
127 self.compute_client.DeleteInstances.return_value = (instance_names, [],
131 self.compute_client.DeleteInstances.assert_called_once_with(
201 self.compute_client.ListInstances.return_value = fake_instances
202 self.compute_client.ListImages.return_value = fake_images
203 self.compute_client.ListDisks.return_value = fake_disks
205 self.compute_client.DeleteInstances.return_value = (
207 self.compute_client.DeleteImages.return_value = (["fake_image_1"], [],
209 self.compute_client.DeleteDisks.return_value = (["fake_disk_1"], [],
230 self.compute_client.ListInstances.assert_called_once_with(
232 self.compute_client.DeleteInstances.assert_called_once_with(
235 self.compute_client.ListImages.assert_called_once_with()
236 self.compute_client.DeleteImages.assert_called_once_with(
239 self.compute_client.ListDisks.assert_called_once_with(zone=cfg.zone)
240 self.compute_client.DeleteDisks.assert_called_once_with(