Searched refs:mock_cvd_utils (Results 1 – 4 of 4) sorted by relevance
/tools/acloud/public/actions/ |
D | remote_host_cf_device_factory_test.py | 87 def testCreateInstanceWithImageDir(self, mock_pull, mock_cvd_utils, argument 101 mock_cvd_utils.GetRemoteHostBaseDir.return_value = "acloud_cf_2" 102 mock_cvd_utils.FormatRemoteHostInstanceName.return_value = "inst" 103 mock_cvd_utils.AreTargetFilesRequired.return_value = True 104 mock_cvd_utils.UploadExtraImages.return_value = [("-extra", "image")] 105 mock_cvd_utils.ExecuteRemoteLaunchCvd.return_value = "failure" 106 mock_cvd_utils.FindRemoteLogs.return_value = [log] 110 mock_cvd_utils.CleanUpRemoteCvd.assert_called_once_with( 112 mock_cvd_utils.GetRemoteHostBaseDir.assert_called_with(2) 116 mock_cvd_utils.UploadArtifacts.assert_called_with( [all …]
|
D | remote_instance_cf_device_factory_test.py | 59 def testProcessArtifacts(mock_cvd_utils, mock_uploadca): argument 70 mock_cvd_utils.AreTargetFilesRequired.return_value = False 81 mock_cvd_utils.UploadArtifacts.assert_called_once_with( 82 mock.ANY, mock_cvd_utils.GCE_BASE_DIR, fake_image_name, 84 mock_cvd_utils.UploadExtraImages.assert_called_once() 189 def testGetBuildInfoDict(self, mock_cvd_utils): argument 208 mock_cvd_utils.GetRemoteBuildInfoDict.assert_not_called() 221 mock_cvd_utils.GetRemoteBuildInfoDict.assert_called() 228 def testLocalImageCreateInstance(self, mock_cvd_utils, mock_pull, argument 243 mock_cvd_utils.AreTargetFilesRequired.return_value = False [all …]
|
/tools/acloud/delete/ |
D | delete_test.py | 212 def testCleanUpRemoteHost(self, mock_cvd_utils, mock_ssh): argument 229 mock_cvd_utils.CleanUpRemoteCvd.assert_called_with( 243 mock_cvd_utils.reset_mock() 244 mock_cvd_utils.CleanUpRemoteCvd.side_effect = ( 255 mock_cvd_utils.CleanUpRemoteCvd.assert_called_with(
|
/tools/acloud/create/ |
D | local_image_local_instance_test.py | 243 def testCreateInstance(self, mock_instance, mock_cvd_utils, argument 255 mock_cvd_utils.FindLocalLogs.return_value = [ 300 mock_cvd_utils.FindLocalLogs.assert_called_with( 315 mock_cvd_utils.reset_mock() 324 mock_cvd_utils.FindLocalLogs.assert_called_with(
|