Lines Matching refs:ssh_object
63 ssh_object = ssh.Ssh(ip=self.FAKE_IP,
69 self.assertEqual(ssh_object.GetBaseCmd(constants.SSH_BIN), expected_ssh_cmd)
73 ssh_object = ssh.Ssh(self.FAKE_IP, self.FAKE_SSH_USER, self.FAKE_SSH_PRIVATE_KEY_PATH)
76 self.assertEqual(ssh_object.GetBaseCmd(constants.SSH_BIN), expected_ssh_cmd)
80 self.assertEqual(ssh_object.GetBaseCmd(constants.SCP_BIN), expected_scp_cmd)
86 ssh_object = ssh.Ssh(self.FAKE_IP, self.FAKE_SSH_USER, self.FAKE_SSH_PRIVATE_KEY_PATH)
87 ssh_object.Run("command")
99 ssh_object = ssh.Ssh(self.FAKE_IP,
103 ssh_object.Run("command")
117 ssh_object = ssh.Ssh(self.FAKE_IP, self.FAKE_SSH_USER, self.FAKE_SSH_PRIVATE_KEY_PATH)
118 ssh_object.ScpPullFile("/tmp/test", "/tmp/test_1.log")
130 ssh_object = ssh.Ssh(self.FAKE_IP,
134 ssh_object.ScpPullFile("/tmp/test", "/tmp/test_1.log")
148 ssh_object = ssh.Ssh(self.FAKE_IP, self.FAKE_SSH_USER, self.FAKE_SSH_PRIVATE_KEY_PATH)
149 ssh_object.ScpPushFile("/tmp/test", "/tmp/test_1.log")
161 ssh_object = ssh.Ssh(self.FAKE_IP,
165 ssh_object.ScpPushFile("/tmp/test", "/tmp/test_1.log")
180 ssh_object = ssh.Ssh(ip=ssh.IP(external="1.1.1.1", internal="10.1.1.1"),
185 self.assertEqual(ssh_object._ip, expected_ip)
188 ssh_object = ssh.Ssh(ip=ssh.IP(external="1.1.1.1", internal="10.1.1.1"),
192 self.assertEqual(ssh_object._ip, expected_ip)
195 ssh_object = ssh.Ssh(ip=ssh.IP(ip="1.1.1.1"),
199 self.assertEqual(ssh_object._ip, expected_ip)
203 ssh_object = ssh.Ssh(ip=self.FAKE_IP,
209 ssh_object.WaitForSsh,