Lines Matching refs:ssh_object
60 ssh_object = ssh.Ssh(ip=self.FAKE_IP,
66 self.assertEqual(ssh_object.GetBaseCmd(constants.SSH_BIN), expected_ssh_cmd)
70 ssh_object = ssh.Ssh(self.FAKE_IP, self.FAKE_SSH_USER, self.FAKE_SSH_PRIVATE_KEY_PATH)
73 self.assertEqual(ssh_object.GetBaseCmd(constants.SSH_BIN), expected_ssh_cmd)
77 self.assertEqual(ssh_object.GetBaseCmd(constants.SCP_BIN), expected_scp_cmd)
83 ssh_object = ssh.Ssh(self.FAKE_IP, self.FAKE_SSH_USER, self.FAKE_SSH_PRIVATE_KEY_PATH)
84 ssh_object.Run("command")
96 ssh_object = ssh.Ssh(self.FAKE_IP,
100 ssh_object.Run("command")
114 ssh_object = ssh.Ssh(self.FAKE_IP, self.FAKE_SSH_USER, self.FAKE_SSH_PRIVATE_KEY_PATH)
115 ssh_object.ScpPullFile("/tmp/test", "/tmp/test_1.log")
127 ssh_object = ssh.Ssh(self.FAKE_IP,
131 ssh_object.ScpPullFile("/tmp/test", "/tmp/test_1.log")
145 ssh_object = ssh.Ssh(self.FAKE_IP, self.FAKE_SSH_USER, self.FAKE_SSH_PRIVATE_KEY_PATH)
146 ssh_object.ScpPushFile("/tmp/test", "/tmp/test_1.log")
158 ssh_object = ssh.Ssh(self.FAKE_IP,
162 ssh_object.ScpPushFile("/tmp/test", "/tmp/test_1.log")
177 ssh_object = ssh.Ssh(ip=ssh.IP(external="1.1.1.1", internal="10.1.1.1"),
182 self.assertEqual(ssh_object._ip, expected_ip)
185 ssh_object = ssh.Ssh(ip=ssh.IP(external="1.1.1.1", internal="10.1.1.1"),
189 self.assertEqual(ssh_object._ip, expected_ip)
192 ssh_object = ssh.Ssh(ip=ssh.IP(ip="1.1.1.1"),
196 self.assertEqual(ssh_object._ip, expected_ip)
200 ssh_object = ssh.Ssh(ip=self.FAKE_IP,
206 ssh_object.WaitForSsh,