Lines Matching refs:compute_client
54 self.compute_client = gcompute_client.ComputeClient(fake_cfg,
56 self.compute_client._service = mock.MagicMock()
71 self.compute_client._service.globalOperations = mock.MagicMock(
74 self.compute_client._service.zoneOperations = mock.MagicMock(
77 self.compute_client._service.regionOperations = mock.MagicMock(
87 status = self.compute_client._GetOperationStatus(
98 status = self.compute_client._GetOperationStatus(
111 self.compute_client._GetOperationStatus(
126 self.compute_client._GetOperationStatus,
135 self.compute_client.WaitOnOperation(
140 func=self.compute_client._GetOperationStatus,
143 timeout_secs=self.compute_client.OPERATION_TIMEOUT_SECS,
144 sleep_interval_secs=self.compute_client.
154 self.compute_client._service.images = mock.MagicMock(
164 self.compute_client.CreateImage(
168 self.compute_client.WaitOnOperation.assert_called_with(
185 self.compute_client._service.images = mock.MagicMock(
198 self.compute_client.CreateImage,
203 self.compute_client.WaitOnOperation.assert_called_with(
206 self.compute_client.CheckImageExists.assert_called_with(self.IMAGE)
207 self.compute_client.DeleteImage.assert_called_with(self.IMAGE)
213 self.compute_client._service.images = mock.MagicMock(
217 self.assertTrue(self.compute_client.CheckImageExists(self.IMAGE))
223 self.compute_client._service.images = mock.MagicMock(
228 self.assertFalse(self.compute_client.CheckImageExists(self.IMAGE))
234 self.compute_client._service.images = mock.MagicMock(
237 self.compute_client.DeleteImage(self.IMAGE)
240 self.assertTrue(self.compute_client.WaitOnOperation.called)
267 self.compute_client._service.images = mock.MagicMock(
271 deleted, failed, error_msgs = self.compute_client.DeleteImages(
296 self.compute_client._service.images = mock.MagicMock(
299 images = self.compute_client.ListImages()
312 self.compute_client._service.instances = mock.MagicMock(
316 result = self.compute_client.GetInstance(self.INSTANCE, self.ZONE)
333 self.compute_client._service.instances = mock.MagicMock(
336 instances = self.compute_client.ListInstances(self.ZONE)
369 self.compute_client._service.instances = mock.MagicMock(
399 "scopes": self.compute_client.DEFAULT_INSTANCE_SCOPE}
407 self.compute_client.CreateInstance(
417 self.compute_client.WaitOnOperation.assert_called_with(
426 self.compute_client._service.instances = mock.MagicMock(
429 self.compute_client.DeleteInstance(
433 self.compute_client.WaitOnOperation.assert_called_with(
445 self.compute_client._service.instances = mock.MagicMock(
448 deleted, failed, error_msgs = self.compute_client.DeleteInstances(
471 done, failed, error_msgs = self.compute_client._BatchExecuteOnInstances(
486 self.compute_client._service.instances = mock.MagicMock(
489 self.compute_client.ResetInstance(
493 self.compute_client.WaitOnOperation.assert_called_with(
517 self.compute_client.CompareMachineSize, "name1",
520 result = self.compute_client.CompareMachineSize("name1", "name2",
524 self.compute_client.GetMachineType.assert_has_calls(
554 self.compute_client._service.machineTypes = mock.MagicMock(
559 result = self.compute_client.GetMachineType(self.MACHINE_TYPE,
575 self.compute_client._service.instances = mock.MagicMock(
582 result = self.compute_client.GetSerialPortOutput(
589 self.compute_client.GetSerialPortOutput,
623 ip_name_map = self.compute_client.GetInstanceNamesByIPs(
669 self.compute_client._service.projects = mock.MagicMock(
673 self.compute_client.AddSshRsa(fake_user, "/path/to/test_rsa.pub")
700 self.compute_client.AddSshRsa, fake_user,
710 self.compute_client._service.disks = mock.MagicMock(
714 deleted, failed, error_msgs = self.compute_client.DeleteDisks(