Commit b46cdd37 authored by Christian Kandeler's avatar Christian Kandeler

SSH: Adapt test to an earlier change.

Change-Id: I67504abe9b32443667497c29fb27b555cf5419fc
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@nokia.com>
parent 1958fd82
......@@ -59,12 +59,13 @@ public:
if (m_connection->createSftpChannel())
qDebug("Error: Unconnected SSH connection creates SFTP channel.");
SshConnectionParameters noHost=SshConnectionParameters(SshConnectionParameters::DefaultProxy);
SshConnectionParameters noHost = SshConnectionParameters(SshConnectionParameters::DefaultProxy);
noHost.host = QLatin1String("hgdfxgfhgxfhxgfchxgcf");
noHost.port = 12345;
noHost.timeout = 10;
noHost.authenticationType = SshConnectionParameters::AuthenticationByPassword;
SshConnectionParameters noUser=SshConnectionParameters(SshConnectionParameters::DefaultProxy);
SshConnectionParameters noUser = SshConnectionParameters(SshConnectionParameters::DefaultProxy);
noUser.host = QLatin1String("localhost");
noUser.port = 22;
noUser.timeout = 30;
......@@ -72,7 +73,7 @@ public:
noUser.userName = QLatin1String("dumdidumpuffpuff");
noUser.password = QLatin1String("whatever");
SshConnectionParameters wrongPwd=SshConnectionParameters(SshConnectionParameters::DefaultProxy);
SshConnectionParameters wrongPwd = SshConnectionParameters(SshConnectionParameters::DefaultProxy);
wrongPwd.host = QLatin1String("localhost");
wrongPwd.port = 22;
wrongPwd.timeout = 30;
......@@ -80,7 +81,7 @@ public:
wrongPwd.userName = QLatin1String("root");
noUser.password = QLatin1String("thiscantpossiblybeapasswordcanit");
SshConnectionParameters invalidKeyFile=SshConnectionParameters(SshConnectionParameters::DefaultProxy);
SshConnectionParameters invalidKeyFile = SshConnectionParameters(SshConnectionParameters::DefaultProxy);
invalidKeyFile.host = QLatin1String("localhost");
invalidKeyFile.port = 22;
invalidKeyFile.timeout = 30;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment