Browse code

Negative test for s3cmd put --follow-symlinks

git-svn-id: https://s3tools.svn.sourceforge.net/svnroot/s3tools/s3cmd/branches/amax-follow-symlinks@426 830e0280-6d2a-0410-9c65-932aecc39d9d

Aaron Maxwell authored on 2010/07/19 04:30:55
Showing 1 changed files
... ...
@@ -392,6 +392,10 @@ test_s3cmd("Recursive copy, set ACL", ['cp', '-r', '--acl-public', '%s/xyz/' % p
392 392
 	              "File %s/xyz/blahBlah/blah.txt copied to %s/copy/blahBlah/blah.txt" % (pbucket(1), pbucket(2)) ],
393 393
 	must_not_find = [ ".svn" ])
394 394
 
395
+## ====== Don't Put symbolic link
396
+test_s3cmd("Put symbolic links", ['put', 'testsuite/etc/linked1.png', 's3://%s/xyz/' % bucket(1),],
397
+	must_not_find_re = [ "linked1.png"])
398
+
395 399
 ## ====== Put symbolic link
396 400
 test_s3cmd("Put symbolic links", ['put', 'testsuite/etc/linked1.png', 's3://%s/xyz/' % bucket(1),'--follow-symlinks' ],
397 401
 	must_find_re = [ "linked1.png"])