Stephon Striplin
854dcc5b10
create additional parameterized bucket list tests
...
* Test on prefix and delimiter, including slash and non-slash
delimiters.
2011-08-08 15:16:15 -07:00
Stephon Striplin
a1102aaaad
add Authorization header tests
2011-07-28 16:46:53 -07:00
Stephon Striplin
1dedf26b95
refactor header update logic
2011-07-28 11:34:52 -07:00
Tommi Virtanen
82a645c625
Demonstrate rgw bucket listing bug.
...
Discovered by stumbling on the "deleted_cnt" workaround
in s3tests.common.
TODO: Add tests for rest of the functionality in
http://docs.amazonwebservices.com/AmazonS3/latest/API/index.html?RESTBucketGET.html
2011-07-28 11:00:47 -07:00
Stephon Striplin
832b297cec
support multiple boto versions for header writing
...
Depending on the version of boto, different methods are necessary for
manipulating headers. We now support 2.0rc1 and 2.0 by sub-classing
boto.s3.connection.S3Connection and overloading
boto.connection.HTTPRequest.authorize, respectfully.
2011-07-27 20:04:33 -07:00
Kyle Marsh
68c8f4b87c
s3-tests: Object download response code test
...
If a client specifies a range when requesting an object the server should
respond with 206 Partial Content when answering a request to get an object,
not 200 OK. It should also respond with only those bytes requested.
This commit introduces a test, test_ranged_request_response_code, that
checks those criteria.
2011-07-27 15:01:13 -07:00
Stephon Striplin
ade49565db
change utf8 -> unreadable on header tests
2011-07-27 11:49:18 -07:00
Stephon Striplin
3b15fc7547
add Date header tests
2011-07-27 10:31:00 -07:00
Stephon Striplin
28c4b432c4
add a Content-Type header test
2011-07-27 10:30:24 -07:00
Stephon Striplin
ab7b4eb03d
update Content-Length header tests
...
* Add more tests
* Add nose.with_setup on some tests
2011-07-27 10:30:00 -07:00
Stephon Striplin
73a2f8fd7f
add another Expect header test
2011-07-27 10:29:37 -07:00
Stephon Striplin
2b63bfc18d
update MD5 header tests
...
* Rename a test
* Add more tests
2011-07-27 10:29:06 -07:00
Stephon Striplin
405f33e10c
add User-Agent header tests
2011-07-27 10:28:03 -07:00
Stephon Striplin
82ac4f0138
subclass S3Connection class for headers
...
This makes it possible to overwrite all headers
2011-07-27 10:27:45 -07:00
Stephon Striplin
a775f5da04
add Content-Type object tests
2011-07-25 14:12:50 -07:00
Stephon Striplin
2e351e9eb8
add header-manipulation tests
...
These tests are based on explicitly modifying headers in some way.
2011-07-25 11:25:39 -07:00
Stephon Striplin
ee28900620
add test_object_create_unreadable
2011-07-25 11:25:39 -07:00
Yehuda Sadeh
9b3cdf753f
test consistency of bucket acls, exercises cache
2011-07-21 14:10:05 -07:00
Stephon Striplin
338728ecd2
add test_bucket_acl_no_grants
...
When the owner has no grants on their bucket, they should not be able to
write to it, but still read and write the ACL. Amazon allows users to
read the bucket, and our behavior is consistent with this.
2011-07-20 12:30:23 -07:00
Stephon Striplin
510b6e91d4
refactor and fix some acl_grant tests
2011-07-19 11:16:11 -07:00
Stephon Striplin
5136608e76
fix test_bucket_acl_grant_nonexist_user
...
* Change user_id to avoid name conflict
* Check for error_code
2011-07-15 14:57:46 -07:00
Stephon Striplin
03a80e6121
add acl grant userid tests
...
* Refactor some acl grant user_id code and run through the full suite of
acls
2011-07-15 14:34:08 -07:00
Yehuda Sadeh
3303b0f33b
fix 100-continue test to support https
2011-07-14 16:26:46 -07:00
Tommi Virtanen
91a39caf46
Fix bug where prefix was None.
...
Accessing a non-constant global from another module is tricky,
as the import binds to the original object. Rebinding the name
in the original module does not change it in importers. Use a
getter as a quick workaround.
2011-07-13 14:49:07 -07:00
Tommi Virtanen
33b25c577e
Move setup/teardown into s3tests.functional __init__, to share across modules.
2011-07-11 15:24:39 -07:00
Tommi Virtanen
e9ad6f7ee6
Move test_s3 into s3tests.functional, so it can be split to multiple files nicely.
2011-07-11 15:24:39 -07:00