Skip to content
Snippets Groups Projects
Commit b46cdd37 authored by Christian Kandeler's avatar Christian Kandeler
Browse files

SSH: Adapt test to an earlier change.


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