diff options
author | Ingela Anderton Andin <[email protected]> | 2013-02-25 15:32:48 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2013-03-08 14:32:27 +0100 |
commit | 6555de9a5083aad4b56ba4dd6d70d05c41bc59b2 (patch) | |
tree | 660e8de5583bc6b65c5e6366fdf1aa39e069f19e /lib/ssh/test/ssh_to_openssh_SUITE.erl | |
parent | 1de4f9f6565438777dd461bd9fa1c9c560f69ed1 (diff) | |
download | otp-6555de9a5083aad4b56ba4dd6d70d05c41bc59b2.tar.gz otp-6555de9a5083aad4b56ba4dd6d70d05c41bc59b2.tar.bz2 otp-6555de9a5083aad4b56ba4dd6d70d05c41bc59b2.zip |
ssh: Test and enhance handling of nonexistent subsystem
Diffstat (limited to 'lib/ssh/test/ssh_to_openssh_SUITE.erl')
-rw-r--r-- | lib/ssh/test/ssh_to_openssh_SUITE.erl | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/ssh/test/ssh_to_openssh_SUITE.erl b/lib/ssh/test/ssh_to_openssh_SUITE.erl index 99dc76e12d..75e73712f1 100644 --- a/lib/ssh/test/ssh_to_openssh_SUITE.erl +++ b/lib/ssh/test/ssh_to_openssh_SUITE.erl @@ -49,7 +49,9 @@ groups() -> erlang_client_openssh_server_setenv, erlang_client_openssh_server_publickey_rsa, erlang_client_openssh_server_publickey_dsa, - erlang_client_openssh_server_password]}, + erlang_client_openssh_server_password, + erlang_client_openssh_server_nonexistent_subsystem + ]}, {erlang_server, [], [erlang_server_openssh_client_exec, erlang_server_openssh_client_exec_compressed, erlang_server_openssh_client_pulic_key_dsa]} @@ -402,6 +404,20 @@ erlang_client_openssh_server_password(Config) when is_list(Config) -> end. %%-------------------------------------------------------------------- + +erlang_client_openssh_server_nonexistent_subsystem() -> + [{doc, "Test client password option"}]. +erlang_client_openssh_server_nonexistent_subsystem(Config) when is_list(Config) -> + + ConnectionRef = ssh_test_lib:connect(?SSH_DEFAULT_PORT, + [{user_interaction, false}, + silently_accept_hosts]), + + {ok, ChannelId} = ssh_connection:session_channel(ConnectionRef, infinity), + + failure = ssh_connection:subsystem(ConnectionRef, ChannelId, "foo", infinity). + +%%-------------------------------------------------------------------- % %% Not possible to send password with openssh without user interaction %% |