From 5304b13365d12070cab3464b19f08854e5e0845d Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 19 Jun 2008 00:18:58 +0000 Subject: [PATCH] Added SSH failure test cases 628-632 --- CHANGES | 3 +++ tests/data/Makefile.am | 2 +- tests/data/test628 | 33 +++++++++++++++++++++++++++++++++ tests/data/test629 | 33 +++++++++++++++++++++++++++++++++ tests/data/test630 | 34 ++++++++++++++++++++++++++++++++++ tests/data/test631 | 34 ++++++++++++++++++++++++++++++++++ tests/data/test632 | 34 ++++++++++++++++++++++++++++++++++ 7 files changed, 172 insertions(+), 1 deletion(-) create mode 100644 tests/data/test628 create mode 100644 tests/data/test629 create mode 100644 tests/data/test630 create mode 100644 tests/data/test631 create mode 100644 tests/data/test632 diff --git a/CHANGES b/CHANGES index b61afe8..0491327 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,9 @@ Changelog +Daniel Fandrich (18 Jun 2008) +- Added SSH failure test cases 628-632 + Daniel Stenberg (18 Jun 2008) - Rob Crittenden brought a fix for the NSS layer that makes libcurl no longer always fire up a new connection rather than using the existing one when the diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index bc78cb2..7ea9b3b 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -51,7 +51,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test1021 test1022 test1023 test309 test616 test617 test618 test619 \ test620 test621 test622 test623 test624 test625 test626 test627 test554 \ test1024 test1025 test555 test1026 test1027 test1028 test1029 test1030 \ - test556 test1031 + test556 test1031 test628 test629 test630 test631 test632 filecheck: @mkdir test-place; \ diff --git a/tests/data/test628 b/tests/data/test628 new file mode 100644 index 0000000..f24fe05 --- /dev/null +++ b/tests/data/test628 @@ -0,0 +1,33 @@ + + + +SFTP +FAILURE + + + +# +# Client-side + + +sftp + + +SFTP invalid user login (password authentication) + + +-u not-a-valid-user: sftp://%HOSTIP:%SSHPORT%PWD/irrelevant-file + + + +# +# Verify data after the test has been "shot" + + +67 + + +disable + + + diff --git a/tests/data/test629 b/tests/data/test629 new file mode 100644 index 0000000..621f741 --- /dev/null +++ b/tests/data/test629 @@ -0,0 +1,33 @@ + + + +SCP +FAILURE + + + +# +# Client-side + + +scp + + +SCP invalid user login (password authentication) + + +-u not-a-valid-user: scp://%HOSTIP:%SSHPORT%PWD/irrelevant-file + + + +# +# Verify data after the test has been "shot" + + +67 + + +disable + + + diff --git a/tests/data/test630 b/tests/data/test630 new file mode 100644 index 0000000..90d364b --- /dev/null +++ b/tests/data/test630 @@ -0,0 +1,34 @@ + + + +SFTP +FAILURE +server key check + + + +# +# Client-side + + +sftp + + +SFTP incorrect host key + + +--hostpubmd5 00000000000000000000000000000000 --key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/log/irrelevant-file + + + +# +# Verify data after the test has been "shot" + + +51 + + +disable + + + diff --git a/tests/data/test631 b/tests/data/test631 new file mode 100644 index 0000000..f3d8146 --- /dev/null +++ b/tests/data/test631 @@ -0,0 +1,34 @@ + + + +SCP +FAILURE +server key check + + + +# +# Client-side + + +scp + + +SCP incorrect host key + + +--hostpubmd5 00000000000000000000000000000000 --key curl_client_key --pubkey curl_client_key.pub -u %USER: scp://%HOSTIP:%SSHPORT%PWD/log/irrelevant-file + + + +# +# Verify data after the test has been "shot" + + +51 + + +disable + + + diff --git a/tests/data/test632 b/tests/data/test632 new file mode 100644 index 0000000..1b2ad31 --- /dev/null +++ b/tests/data/test632 @@ -0,0 +1,34 @@ + + + +SFTP +FAILURE +server key check + + + +# +# Client-side + + +none + + +sftp + + +SFTP syntactically invalid host key + + +--hostpubmd5 00 --key curl_client_key --pubkey curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%PWD/log/irrelevant-file + + + +# +# Verify data after the test has been "shot" + + +2 + + + -- 2.7.4