Home
last modified time | relevance | path

Searched refs:mock_ssh (Results 1 – 4 of 4) sorted by relevance

/tools/acloud/internal/lib/
Dcvd_utils_test.py82 mock_ssh = mock.Mock()
83 cvd_utils.UploadArtifacts(mock_ssh, "dir", "/mock/img.zip",
85 mock_ssh.Run.assert_any_call("/usr/bin/install_zip.sh dir < "
87 mock_ssh.Run.assert_any_call("tar -xzf - -C dir < /mock/cvd.tar.gz")
95 mock_ssh = mock.Mock()
96 mock_ssh.GetBaseCmd.return_value = "/mock/ssh"
111 cvd_utils.UploadArtifacts(mock_ssh, "remote/dir","local/dir",
121 mock_ssh.reset_mock()
125 cvd_utils.UploadArtifacts(mock_ssh, "remote/dir","local/dir",
131 mock_ssh.Run.assert_called_with(expected_cvd_tar_ssh_cmd)
[all …]
Dutils_test.py503 mock_ssh = mock.Mock()
505 paths = utils.FindRemoteFiles(mock_ssh, [])
509 mock_ssh.GetBaseCmd.return_value = "mock_ssh"
512 paths = utils.FindRemoteFiles(mock_ssh, ["dir1", "dir2"])
520 paths = utils.FindRemoteFiles(mock_ssh, ["dir1", "dir2"])
526 utils.FindRemoteFiles(mock_ssh, ["dir1", "dir2"])
/tools/acloud/public/actions/
Dremote_host_cf_device_factory_test.py88 mock_ssh): argument
96 mock_ssh.Ssh.return_value = mock_ssh_obj
144 mock_ssh): argument
149 mock_ssh.Ssh.return_value = mock_ssh_obj
191 mock_ssh): argument
196 mock_ssh.Ssh.return_value = mock_ssh_obj
245 mock_ssh): argument
250 mock_ssh.Ssh.return_value = mock_ssh_obj
275 mock_ssh.ShellCmdWithRetry.assert_called_once()
276 self.assertRegex(mock_ssh.ShellCmdWithRetry.call_args[0][0],
[all …]
/tools/acloud/delete/
Ddelete_test.py212 def testCleanUpRemoteHost(self, mock_cvd_utils, mock_ssh): argument
215 mock_ssh.IP.return_value = mock_ssh_ip
217 mock_ssh.Ssh.return_value = mock_ssh_obj
224 mock_ssh.IP.assert_called_with(ip="192.0.2.1")
225 mock_ssh.Ssh.assert_called_with(
250 mock_ssh.IP.assert_called_with(ip="192.0.2.2")
251 mock_ssh.Ssh.assert_called_with(