Lines Matching refs:compute_client
70 self.compute_client = mock.MagicMock()
74 return_value=self.compute_client)
95 self.compute_client.GetInstanceIP.return_value = fake_ip
96 self.compute_client.GenerateImageName.return_value = fake_image
97 self.compute_client.GenerateInstanceName.return_value = fake_instance
98 self.compute_client.GetDataDiskName.return_value = disk_name
107 self.compute_client.CreateImage.assert_called_with(
109 self.compute_client.CreateInstance.assert_called_with(
115 self.compute_client.DeleteImage.assert_called_with(fake_image)
141 self.compute_client.GetInstanceIP.return_value = fake_ip
142 self.compute_client.GenerateInstanceName.return_value = fake_instance
162 self.compute_client.DeleteInstances.return_value = (instance_names, [],
166 self.compute_client.DeleteInstances.assert_called_once_with(
237 self.compute_client.ListInstances.return_value = fake_instances
238 self.compute_client.ListImages.return_value = fake_images
239 self.compute_client.ListDisks.return_value = fake_disks
241 self.compute_client.DeleteInstances.return_value = (
243 self.compute_client.DeleteImages.return_value = (["fake_image_1"], [],
245 self.compute_client.DeleteDisks.return_value = (["fake_disk_1"], [],
266 self.compute_client.ListInstances.assert_called_once_with(
268 self.compute_client.DeleteInstances.assert_called_once_with(
271 self.compute_client.ListImages.assert_called_once_with()
272 self.compute_client.DeleteImages.assert_called_once_with(
275 self.compute_client.ListDisks.assert_called_once_with(zone=cfg.zone)
276 self.compute_client.DeleteDisks.assert_called_once_with(