Home
last modified time | relevance | path

Searched refs:compute_client (Results 1 – 15 of 15) sorted by relevance

/tools/acloud/internal/lib/
Dgcompute_client_test.py81 self.compute_client = gcompute_client.ComputeClient(
83 self.compute_client._service = mock.MagicMock()
103 self.compute_client._service.globalOperations = mock.MagicMock(
106 self.compute_client._service.zoneOperations = mock.MagicMock(
109 self.compute_client._service.regionOperations = mock.MagicMock(
119 status = self.compute_client._GetOperationStatus(
130 status = self.compute_client._GetOperationStatus(
143 self.compute_client._GetOperationStatus(
157 self.compute_client._GetOperationStatus,
167 self.compute_client.WaitOnOperation(
[all …]
/tools/acloud/public/
Ddevice_driver_test.py67 self.compute_client = mock.MagicMock()
71 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
[all …]
Ddevice_driver.py312 def _FetchSerialLogsFromDevices(compute_client, instance_names, output_file, argument
326 serial_log = compute_client.GetSerialPortOutput(
374 compute_client = android_compute_client.AndroidComputeClient(cfg,
426 compute_client,
454 compute_client = android_compute_client.AndroidComputeClient(cfg,
456 zone_instances = compute_client.GetZonesByInstances(instance_names)
460 deleted_ins, failed_ins, error_ins = compute_client.DeleteInstances(
484 compute_client = android_compute_client.AndroidComputeClient(
487 if not compute_client.CheckAccess():
/tools/acloud/public/actions/
Dcreate_cuttlefish_action_test.py68 self.compute_client = mock.MagicMock()
72 return_value=self.compute_client)
76 return_value=self.compute_client)
80 return_value=self.compute_client)
110 self.compute_client.GetInstanceIP.return_value = self.IP
111 self.compute_client.GenerateImageName.return_value = self.IMAGE
112 self.compute_client.GenerateInstanceName.return_value = self.INSTANCE
113 self.compute_client.GetHostImageName.return_value = self.STABLE_HOST_IMAGE_NAME
141 self.compute_client.CreateInstance.assert_called_with(
Dcreate_goldfish_action_test.py62 self.compute_client = mock.MagicMock()
66 return_value=self.compute_client)
70 return_value=self.compute_client)
108 self.compute_client.GetInstanceIP.return_value = self.IP
109 self.compute_client.GenerateImageName.return_value = self.IMAGE
110 self.compute_client.GenerateInstanceName.return_value = self.INSTANCE
135 self.compute_client.CreateInstance.assert_called_with(
192 self.compute_client.CreateInstance.assert_called_with(
220 self.compute_client.GetInstanceIP.return_value = self.IP
221 self.compute_client.GenerateImageName.return_value = self.IMAGE
[all …]
Dbase_device_factory.py29 def __init__(self, compute_client): argument
31 self._compute_client = compute_client
Dcommon_operations_test.py57 self.compute_client = mock.MagicMock()
61 return_value=self.compute_client)
63 self.Patch(self.compute_client, "GetInstanceIP", return_value=self.IP)
69 return_value=self.compute_client)
Dcreate_cuttlefish_action.py65 compute_client = cvd_compute_client_multi_stage.CvdComputeClient(
69 compute_client = cvd_compute_client.CvdComputeClient(
71 super(CuttlefishDeviceFactory, self).__init__(compute_client)
Dgce_device_factory.py44 compute_client = cvd_compute_client_multi_stage.CvdComputeClient(
50 super(GCEDeviceFactory, self).__init__(compute_client)
Dcreate_goldfish_action.py95 compute_client = goldfish_compute_client.GoldfishComputeClient(
97 super(GoldfishDeviceFactory, self).__init__(compute_client)
/tools/acloud/public/acloud_kernel/
Dkernel_swapper_test.py40 self.compute_client = mock.MagicMock()
44 return_value=self.compute_client)
49 self.compute_client.GetInstanceIP.return_value = self.fake_ip
77 self.compute_client.WaitForBoot.assert_called_once_with(
/tools/acloud/create/
Dcheeps_remote_image_remote_instance.py90 compute_client = cheeps_compute_client.CheepsComputeClient(
92 super(CheepsDeviceFactory, self).__init__(compute_client)
/tools/acloud/list/
Dlist.py120 compute_client = gcompute_client.ComputeClient(cfg, credentials)
122 all_instances = compute_client.ListInstances(instance_filter=filter_item)
/tools/acloud/reconnect/
Dreconnect.py133 compute_client = android_compute_client.AndroidComputeClient(
135 compute_client.AddSshRsaInstanceMetadata(
/tools/acloud/delete/
Ddelete.py238 compute_client = cvd_compute_client_multi_stage.CvdComputeClient(
247 compute_client.InitRemoteHost(ssh, remote_host, host_user)