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.py77 self.compute_client = gcompute_client.ComputeClient(
79 self.compute_client._service = mock.MagicMock()
99 self.compute_client._service.globalOperations = mock.MagicMock(
102 self.compute_client._service.zoneOperations = mock.MagicMock(
105 self.compute_client._service.regionOperations = mock.MagicMock(
115 status = self.compute_client._GetOperationStatus(
126 status = self.compute_client._GetOperationStatus(
139 self.compute_client._GetOperationStatus(
152 self.compute_client._GetOperationStatus,
162 self.compute_client.WaitOnOperation(
[all …]
/tools/acloud/public/
Ddevice_driver_test.py70 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
[all …]
Ddevice_driver.py314 def _FetchSerialLogsFromDevices(compute_client, instance_names, output_file, argument
328 serial_log = compute_client.GetSerialPortOutput(
378 compute_client = android_compute_client.AndroidComputeClient(cfg,
426 compute_client,
432 compute_client,
455 compute_client = android_compute_client.AndroidComputeClient(cfg,
458 deleted, failed, error_msgs = compute_client.DeleteInstances(
512 compute_client = android_compute_client.AndroidComputeClient(
517 items = compute_client.ListInstances(zone=cfg.zone)
524 result = compute_client.DeleteInstances(
[all …]
/tools/acloud/public/actions/
Dcreate_goldfish_action_test.py57 self.compute_client = mock.MagicMock()
61 return_value=self.compute_client)
65 return_value=self.compute_client)
102 self.compute_client.GetInstanceIP.return_value = self.IP
103 self.compute_client.GenerateImageName.return_value = self.IMAGE
104 self.compute_client.GenerateInstanceName.return_value = self.INSTANCE
119 self.compute_client.CreateInstance.assert_called_with(
156 self.compute_client.CreateInstance.assert_called_with(
179 self.compute_client.GetInstanceIP.return_value = self.IP
180 self.compute_client.GenerateImageName.return_value = self.IMAGE
[all …]
Dcreate_cuttlefish_action_test.py60 self.compute_client = mock.MagicMock()
64 return_value=self.compute_client)
68 return_value=self.compute_client)
97 self.compute_client.GetInstanceIP.return_value = self.IP
98 self.compute_client.GenerateImageName.return_value = self.IMAGE
99 self.compute_client.GenerateInstanceName.return_value = self.INSTANCE
113 self.compute_client.CreateInstance.assert_called_with(
Dcommon_operations_test.py63 self.compute_client = mock.MagicMock()
67 return_value=self.compute_client)
69 self.Patch(self.compute_client, "GetInstanceIP", return_value=self.IP)
75 return_value=self.compute_client)
Dbase_device_factory.py29 def __init__(self, compute_client): argument
31 self._compute_client = compute_client
Dcreate_cuttlefish_action.py59 compute_client = cvd_compute_client.CvdComputeClient(
61 super(CuttlefishDeviceFactory, self).__init__(compute_client)
Dcreate_goldfish_action.py84 compute_client = goldfish_compute_client.GoldfishComputeClient(
86 super(GoldfishDeviceFactory, self).__init__(compute_client)
/tools/acloud/create/
Dcheeps_remote_image_remote_instance_test.py36 self.compute_client = mock.MagicMock()
40 return_value=self.compute_client)
44 return_value=self.compute_client)
66 self.compute_client.GetInstanceIP.return_value = self.IP
67 self.compute_client.GenerateImageName.return_value = self.IMAGE
68 self.compute_client.GenerateInstanceName.return_value = self.INSTANCE
80 self.compute_client.CreateInstance.assert_called_with(
Dcheeps_remote_image_remote_instance.py89 compute_client = cheeps_compute_client.CheepsComputeClient(
91 super(CheepsDeviceFactory, self).__init__(compute_client)
Dlocal_image_remote_instance.py74 compute_client = cvd_compute_client.CvdComputeClient(
76 super(RemoteInstanceDeviceFactory, self).__init__(compute_client)
/tools/acloud/public/acloud_kernel/
Dkernel_swapper_test.py39 self.compute_client = mock.MagicMock()
43 return_value=self.compute_client)
48 self.compute_client.GetInstanceIP.return_value = self.fake_ip
76 self.compute_client.WaitForBoot.assert_called_once_with(
/tools/acloud/reconnect/
Dreconnect.py73 compute_client = android_compute_client.AndroidComputeClient(
75 compute_client.AddSshRsaInstanceMetadata(
/tools/acloud/list/
Dlist.py102 compute_client = gcompute_client.ComputeClient(cfg, credentials)
104 all_instances = compute_client.ListInstances(cfg.zone,