From c0db5ff678ecca068ca85b454517fb4585da85f1 Mon Sep 17 00:00:00 2001 From: Jonas Schnelli Date: Fri, 18 Nov 2011 20:30:46 +0100 Subject: test: SFTP quote commands with * prefix Related to the f64812ca63 commit --- tests/data/test638 | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ tests/data/test639 | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 tests/data/test638 create mode 100644 tests/data/test639 diff --git a/tests/data/test638 b/tests/data/test638 new file mode 100644 index 000000000..c72cf636a --- /dev/null +++ b/tests/data/test638 @@ -0,0 +1,49 @@ + + + +SFTP +post-quote +acceptfail +asterisk + + + +# +# Server-side + + +Dummy test file for rename test + + + +# +# Client-side + + +sftp + + +perl %SRCDIR/libtest/test610.pl mkdir %PWD/log/test638.dir + + +SFTP post-quote rename * asterisk accept-fail + + +--key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "-*rename %PWD/log/test638.dir %PWD/log/test638.new" sftp://%HOSTIP:%SSHPORT%PWD/log/file638.txt --insecure + + +perl %SRCDIR/libtest/test610.pl rmdir %PWD/log/test638.new + + +Dummy test file for rename test + + + +# +# Verify data after the test has been "shot" + + +disable + + + diff --git a/tests/data/test639 b/tests/data/test639 new file mode 100644 index 000000000..8dfe85975 --- /dev/null +++ b/tests/data/test639 @@ -0,0 +1,49 @@ + + + +SFTP +post-quote +acceptfail +asterisk + + + +# +# Server-side + + +Dummy test file for rename test + + + +# +# Client-side + + +sftp + + +perl %SRCDIR/libtest/test610.pl mkdir %PWD/log/test639.dir + + +SFTP post-quote rename * asterisk accept-fail + + +--key curl_client_key --pubkey curl_client_key.pub -u %USER: -Q "-*rename %PWD/log/test639-not-exists-dir %PWD/log/test639.new" sftp://%HOSTIP:%SSHPORT%PWD/log/file639.txt --insecure + + +perl %SRCDIR/libtest/test610.pl rmdir %PWD/log/test639.dir + + +Dummy test file for rename test + + + +# +# Verify data after the test has been "shot" + + +disable + + + -- cgit v1.2.3